Debian Codegraph @

src/allele_functions.h

raw symbols SCIP
1 #include <stdint.h>
2
3 #include <string>
4 #include <vector>
5
6 #ifndef allele_functions
7 #define allele_functions
8
9 struct allele {
10 std::string nuc;
11 uint32_t depth;
12 uint32_t reverse;
13 uint8_t mean_qual;
14 uint32_t beg;
15 uint32_t end;
16 float tmp_mean_qual;
17 bool operator<(const allele& a) const {
18 return (nuc.compare(a.nuc) > 0) ? true : false;
19 }
20 bool operator==(const allele& a) const {
21 return (nuc.compare(a.nuc) == 0) ? true : false;
22 }
23 };
24
25 int check_allele_exists(std::string n, std::vector<allele> ad);
26 std::vector<allele> update_allele_depth(char ref, std::string bases,
27 std::string qualities,
28 uint8_t min_qual);
29 void print_allele_depths(std::vector<allele> ad);
30 int find_ref_in_allele(std::vector<allele> ad, char ref);
31 char gt2iupac(char a, char b);
32 char codon2aa(char n1, char n2, char n3);
33
34 #endif