A library for working with phylogenetic data.
v0.25.0
functions/genome_region.cpp File Reference
#include "genesis/population/functions/genome_region.hpp"
#include "genesis/utils/text/convert.hpp"
#include "genesis/utils/text/string.hpp"
#include <algorithm>
#include <cassert>
#include <iostream>
#include <stdexcept>

Go to the source code of this file.

Namespaces

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

Functions

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...
 
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)