Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
variant_utils.h
Go to the documentation of this file.
1 #ifndef gamgee__variant_utils__guard
2 #define gamgee__variant_utils__guard
3 
4 #include "hts_memory.h"
5 
6 #include "htslib/vcf.h"
7 
8 #include <string>
9 #include <vector>
10 
11 namespace gamgee {
12 
20 void subset_variant_samples(bcf_hdr_t* hdr_ptr, const std::vector<std::string>& samples, const bool include);
21 
23 
24 using AlleleMask = std::vector<AlleleType>;
25 
32 void merge_variant_headers(const std::shared_ptr<bcf_hdr_t>& dest_hdr_ptr, const std::shared_ptr<bcf_hdr_t>& src_hdr_ptr);
33 }
34 
35 #endif /* gamgee__variant_utils__guard */
void subset_variant_samples(bcf_hdr_t *hdr_ptr, const std::vector< std::string > &samples, const bool include)
allows the caller to include only selected samples in a Variant Reader. To create a sites only file...
Definition: variant_utils.cpp:15
AlleleType
Definition: variant_utils.h:22
Definition: exceptions.h:9
void merge_variant_headers(const std::shared_ptr< bcf_hdr_t > &dest_hdr_ptr, const std::shared_ptr< bcf_hdr_t > &src_hdr_ptr)
merges a variant header into another
Definition: variant_utils.cpp:32
Definition: vcf.h:100
std::vector< AlleleType > AlleleMask
Definition: variant_utils.h:24