|
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_BED_READER_H_
2 #define GENESIS_POPULATION_FORMAT_BED_READER_H_
46 namespace population {
142 std::vector<Feature>
read(
143 std::shared_ptr< utils::BaseInputSource > source
156 std::shared_ptr< utils::BaseInputSource > source
171 std::shared_ptr< utils::BaseInputSource > source,
181 std::shared_ptr< utils::BaseInputSource > source,
197 std::shared_ptr< utils::BaseInputSource > source,
198 std::function<
void(
Feature&&)> callback
232 #endif // include guard
SampleCounts merge(SampleCounts const &p1, SampleCounts const &p2)
Merge the counts of two SampleCountss.
List of positions/coordinates in a genome, for each chromosome.
BedReader & operator=(BedReader const &)=default
List of regions in a genome, for each chromosome.
Store all values that can typically appear in the columns of a BED file.
std::vector< Feature > read(std::shared_ptr< utils::BaseInputSource > source) const
Read a BED input source, and return its content as a list of Feature structs.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::vector< size_t > block_starts
GenomeLocusSet read_as_genome_locus_set(std::shared_ptr< utils::BaseInputSource > source) const
Read an input source, and return its content as a GenomeLocusSet.
std::vector< size_t > block_sizes
Reader for BED (Browser Extensible Data) files.
GenomeRegionList read_as_genome_region_list(std::shared_ptr< utils::BaseInputSource > source, bool merge=false) const
Read a BED input source, and return its content as a GenomeRegionList.