|
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_MAP_BIM_READER_H_
2 #define GENESIS_POPULATION_FORMAT_MAP_BIM_READER_H_
47 namespace population {
139 std::vector<Feature>
read(
140 std::shared_ptr< utils::BaseInputSource > source
152 std::shared_ptr< utils::BaseInputSource > source
165 std::shared_ptr< utils::BaseInputSource > source,
175 std::shared_ptr< utils::BaseInputSource > source,
186 return skip_negative_coordinates_;
191 skip_negative_coordinates_ = value;
206 std::shared_ptr< utils::BaseInputSource > source,
207 std::function<
void(Feature&&)> callback
220 std::vector<std::string>& buffer
227 bool skip_negative_coordinates_ =
true;
234 #endif // include guard
MapBimReader & operator=(MapBimReader const &)=default
GenomeLocusSet read_as_genome_locus_set(std::shared_ptr< utils::BaseInputSource > source) const
Read an input source, and return its content as a GenomeLocusSet.
bool skip_negative_coordinates() const
SampleCounts merge(SampleCounts const &p1, SampleCounts const &p2)
Merge the counts of two SampleCountss.
GenomeRegionList read_as_genome_region_list(std::shared_ptr< utils::BaseInputSource > source, bool merge=true) const
Read a map/bim input source, and return its content as a GenomeRegionList.
std::vector< Feature > read(std::shared_ptr< utils::BaseInputSource > source) const
Read a map/bim input source, and return its content as a list of Feature structs.
List of positions/coordinates in a genome, for each chromosome.
Store all values that can typically appear in the columns of a map/bim file.
List of regions in a genome, for each chromosome.
Reader for map/bim files as used by PLINK.
MapBimReader & skip_negative_coordinates(bool value)
Container namespace for all symbols of genesis in order to keep them separate when used as a library.