|
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_GENOME_REGION_READER_H_
2 #define GENESIS_POPULATION_FORMAT_GENOME_REGION_READER_H_
47 namespace population {
97 std::shared_ptr< utils::BaseInputSource > source
111 std::shared_ptr< utils::BaseInputSource > source,
121 std::shared_ptr< utils::BaseInputSource > source,
143 return end_exclusive_;
148 end_exclusive_ = value;
163 std::shared_ptr< utils::BaseInputSource > source,
164 std::function<
void(
GenomeRegion const& region )> callback
171 bool zero_based_ =
false;
172 bool end_exclusive_ =
false;
178 #endif // include guard
GenomeRegionReader & zero_based(bool value)
SampleCounts merge(SampleCounts const &p1, SampleCounts const &p2)
Merge the counts of two SampleCountss.
List of positions/coordinates in a genome, for each chromosome.
GenomeLocusSet read_as_genome_locus_set(std::shared_ptr< utils::BaseInputSource > source) const
Read an input source, and return its content as a GenomeLocusSet.
List of regions in a genome, for each chromosome.
GenomeRegionReader()=default
Generic reader for inputs that contain a genomic region or locus per line, in different formats.
GenomeRegionReader & operator=(GenomeRegionReader const &)=default
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
bool end_exclusive() const
~GenomeRegionReader()=default
A region (between two positions) on a chromosome.
GenomeRegionList read_as_genome_region_list(std::shared_ptr< utils::BaseInputSource > source, bool merge=false) const
Read an input source, and return its content as a GenomeRegionList.
GenomeRegionReader & end_exclusive(bool value)