9#include <unordered_map>
42uint32_t
getSVCount(
const std::vector<SVCall>& sv_calls);
45void mergeSVs(std::vector<SVCall> &sv_calls,
double epsilon,
int min_pts,
bool keep_noise,
const std::string& json_filepath =
"");
48void saveClustersToJSON(
const std::string& filename,
const std::map<
int, std::vector<SVCall>>& clusters);
SVType
Definition sv_types.h:16
std::bitset< 10 > SVEvidenceFlags
Definition sv_types.h:79
Genotype
Definition sv_types.h:50
Definition sv_object.h:16
SVEvidenceFlags aln_type
Definition sv_object.h:22
SVCall(uint32_t start, uint32_t end, SVType sv_type, const std::string &alt_allele, SVEvidenceFlags aln_type, Genotype genotype, double hmm_likelihood, int cn_state, int aln_offset, int cluster_size)
Definition sv_object.h:33
Genotype genotype
Definition sv_object.h:23
bool operator<(const SVCall &other) const
Definition sv_object.cpp:17
uint32_t end
Definition sv_object.h:18
uint32_t start
Definition sv_object.h:17
int aln_offset
Definition sv_object.h:26
double hmm_likelihood
Definition sv_object.h:24
SVType sv_type
Definition sv_object.h:19
int cn_state
Definition sv_object.h:25
std::string alt_allele
Definition sv_object.h:20
int cluster_size
Definition sv_object.h:27
uint32_t getSVCount(const std::vector< SVCall > &sv_calls)
Definition sv_object.cpp:35
void mergeDuplicateSVs(std::vector< SVCall > &sv_calls)
Definition sv_object.cpp:324
void mergeSVs(std::vector< SVCall > &sv_calls, double epsilon, int min_pts, bool keep_noise, const std::string &json_filepath="")
Definition sv_object.cpp:45
void saveClustersToJSON(const std::string &filename, const std::map< int, std::vector< SVCall > > &clusters)
Definition sv_object.cpp:271
void addSVCall(std::vector< SVCall > &sv_calls, SVCall &sv_call)
Definition sv_object.cpp:22