| 1 | #include <libgen.h> |
| 2 | #include <stdint.h> |
| 3 | #include <string.h> |
| 4 | |
| 5 | #include <algorithm> |
| 6 | #include <fstream> |
| 7 | #include <iostream> |
| 8 | #include <regex> |
| 9 | #include <sstream> |
| 10 | #include <string> |
| 11 | #include <vector> |
| 12 | |
| 13 | #include "allele_functions.h" |
| 14 | |
| 15 | #ifndef call_consensus_from_pileup |
| 16 | #define call_consensus_from_pileup |
| 17 | |
| 18 | struct ret_t { |
| 19 | std::string nuc; |
| 20 | std::string q; |
| 21 | }; |
| 22 | |
| 23 | void format_alleles(std::vector<allele> &ad); |
| 24 | int call_consensus_from_plup(std::istream &cin, std::string seq_id, |
| 25 | std::string out_file, uint8_t min_qual, |
| 26 | double threshold, uint32_t min_depth, char gap, |
| 27 | bool min_coverage_flag, |
| 28 | double min_insert_threshold); |
| 29 | ret_t get_consensus_allele(std::vector<allele> ad, uint8_t min_qual, |
| 30 | double threshold, char gap, |
| 31 | double min_insert_threshold); |
| 32 | |
| 33 | #endif |