|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_POPULATION_FORMAT_SAM_VARIANT_INPUT_STREAM_H_
2 #define GENESIS_POPULATION_FORMAT_SAM_VARIANT_INPUT_STREAM_H_
47 #include <unordered_map>
48 #include <unordered_set>
69 namespace population {
142 struct SamFileHandle;
195 return ¤t_variant_;
200 return ¤t_variant_;
205 return current_variant_;
210 return current_variant_;
239 return parent_ == it.parent_;
244 return !(*
this == it);
283 std::vector<std::string>
rg_tags(
bool all_header_tags =
false )
const;
309 void process_base_( bam_pileup1_t
const* p );
318 size_t get_sample_index_( bam_pileup1_t
const* p )
const;
329 std::shared_ptr<SamFileHandle> handle_;
382 throw std::runtime_error(
383 "Cannot open input sam/bam/cram file '" + input_file_ +
"': " + err_str
422 return flags_include_all_;
445 flags_include_all_ = value;
451 return flags_include_any_;
474 flags_include_any_ = value;
480 return flags_exclude_all_;
504 flags_exclude_all_ = value;
510 return flags_exclude_any_;
533 flags_exclude_any_ = value;
561 return min_map_qual_;
573 min_map_qual_ = value;
579 return min_base_qual_;
590 min_base_qual_ = value;
633 return max_acc_depth_;
648 max_acc_depth_ = value;
671 split_by_rg_ = value;
677 return with_unaccounted_rg_;
695 with_unaccounted_rg_ = value;
701 return rg_tag_filter_;
723 rg_tag_filter_ = value;
729 return inverse_rg_tag_filter_;
739 inverse_rg_tag_filter_ = value;
761 std::string input_file_;
766 uint32_t flags_include_all_ = 0;
767 uint32_t flags_include_any_ = 0;
768 uint32_t flags_exclude_all_ = 0;
769 uint32_t flags_exclude_any_ = 0;
772 std::shared_ptr<GenomeLocusSet> region_filter_;
775 int min_map_qual_ = 0;
776 int min_base_qual_ = 0;
781 int max_acc_depth_ = 0;
783 bool split_by_rg_ =
false;
784 bool with_unaccounted_rg_ =
false;
785 std::unordered_set<std::string> rg_tag_filter_;
786 bool inverse_rg_tag_filter_ =
false;
798 #endif // htslib guard
799 #endif // include guard
Provides functions for accessing the file system.
A single variant at a position in a chromosome, along with SampleCounts for a set of samples.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
bool file_is_readable(std::string const &filename)
Return whether a file is readable.