Debian Codegraph @

src/ref_seq.h

raw symbols SCIP
1 #include <htslib/faidx.h>
2
3 #include <fstream>
4 #include <iostream>
5 #include <sstream>
6
7 #include "allele_functions.h"
8 #include "parse_gff.h"
9
10 #ifndef ref_seq
11 #define ref_seq
12
13 const char UNKNOWN_BASE = 'N';
14 extern const unsigned char comp_base[256];
15
16 class ref_antd {
17 public:
18 ref_antd(std::string ref_path);
19 ref_antd(std::string ref_path, std::string gff_path);
20 ~ref_antd();
21 char get_base(int64_t pos, std::string region);
22 void reverse_complement_codon(char* codon);
23 int add_gff(std::string path);
24 int add_seq(std::string path);
25 int codon_aa_stream(std::string region, std::ostringstream &line_stream,
26 std::ofstream &fout, int64_t pos, char alt);
27 char *get_codon(int64_t pos, std::string region, gff3_feature feature);
28 char *get_codon(int64_t pos, std::string region, gff3_feature feature,
29 char alt);
30 std::vector<gff3_feature> get_gff_features();
31
32 private:
33 char *seq;
34 gff3 gff;
35 faidx_t *fai;
36 std::string region;
37 };
38
39 #endif