A library for working with phylogenetic and population genetic data.
v0.32.0
genome_region.cpp File Reference
#include "genesis/population/function/genome_region.hpp"
#include "genesis/utils/io/input_source.hpp"
#include "genesis/utils/io/input_stream.hpp"
#include "genesis/utils/io/scanner.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 operator!= (GenomeRegion const &a, GenomeRegion const &b)
 Inequality comparison (!=) for two GenomeRegions. More...
 
std::ostream & operator<< (std::ostream &os, GenomeRegion const &region)
 
bool operator== (GenomeRegion const &a, GenomeRegion const &b)
 Equality comparison (!=) for two GenomeRegions. More...
 
GenomeRegion parse_genome_region (std::string const &region, bool zero_based=false, bool end_exclusive=false)
 Parse a genomic region. More...
 
GenomeRegionList parse_genome_regions (std::string const &regions, bool zero_based=false, bool end_exclusive=false)
 Parse a set/list of genomic regions. More...
 
std::string to_string (GenomeRegion const &region)