|
A library for working with phylogenetic and population genetic data.
v0.27.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_POPULATION_FORMATS_BED_READER_H_
2 #define GENESIS_POPULATION_FORMATS_BED_READER_H_
45 namespace population {
141 std::vector<Feature>
read(
142 std::shared_ptr< utils::BaseInputSource > source
157 std::shared_ptr< utils::BaseInputSource > source,
167 std::shared_ptr< utils::BaseInputSource > source,
183 std::shared_ptr< utils::BaseInputSource > source,
184 std::function<
void(
Feature&&)> callback
218 #endif // include guard
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.
BaseCounts merge(BaseCounts const &p1, BaseCounts const &p2)
Merge the counts of two BaseCountss.
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
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.