A library for working with phylogenetic and population genetic data.
v0.32.0
utils/math/twobit_vector/functions.cpp File Reference
#include "genesis/utils/math/twobit_vector/functions.hpp"
#include <algorithm>
#include <cassert>
#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::utils
 

Functions

std::string bitstring (TwobitVector const &vec)
 Return a string with a bit-representation of a TwobitVector. More...
 
std::string bitstring (TwobitVector::WordType const &vec)
 Return a string with a bit-representation of a TwobitVector::WordType. More...
 
TwobitVector from_nucleic_acids (std::string const &sequence)
 Turn a string of nucleic acids into a TwobitVector. More...
 
std::string to_nucleic_acids (TwobitVector const &vec)
 Turn a TwobitVector into its string representation of nucleic acids. More...
 
TwobitVector::ValueType translate_from_nucleic_acid (char site)
 Translate a char into TwobitVector::ValueType. More...
 
char translate_to_nucleic_acid (TwobitVector::ValueType value)
 Translate a TwobitVector::ValueType into its char representation. More...