A library for working with phylogenetic data.
functions/genome_region.hpp File Reference
#include "genesis/population/genome_region.hpp"
#include "genesis/population/formats/vcf_record.hpp"
#include <iosfwd>
#include <string>
#include <vector>

Go to the source code of this file.


 Container namespace for all symbols of genesis in order to keep them separate when used as a library.


bool is_covered (GenomeRegion const &region, std::string const &chromosome, size_t position)
 Test whether the chromosome/position is within a given genomic region. More...
template<class T >
bool is_covered (GenomeRegion const &region, T const &variant)
 Test whether the chromosome/position of a variant is within a given genomic region. More...
bool is_covered (GenomeRegion const &region, VcfRecord const &variant)
std::ostream & operator<< (std::ostream &os, GenomeRegion const &region)
bool operator== (GenomeRegion const &a, GenomeRegion const &b)
GenomeRegion parse_genome_region (std::string const &region)
 Parse a genomic region. More...
GenomeRegionList parse_genome_regions (std::string const &regions)
 Parse a set/list of genomic regions. More...
std::string to_string (GenomeRegion const &region)