A toolkit for working with phylogenetic data.
ranks.cpp File Reference
#include "genesis/taxonomy/functions/ranks.hpp"
#include "genesis/utils/text/string.hpp"
#include <unordered_map>

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.


std::string rank_from_abbreviation (char r)
 Get the taxonomic rank name given its abbreviation. More...
std::string rank_to_abbreviation (std::string const &rank)
 Get the abbreviation of a taxonomic rank name. More...
std::pair< std::string, std::string > resolve_rank_abbreviation (std::string const &entry)
 Resolve a combined rank and name entry of the form "k_Bacteria" into the full rank and the name, i.e. "Kingdom" and "Bacteria". More...


static const std::unordered_map< char, std::string > rank_abbreviations
 Local helper data that stores the abbreviations and names of common taxonomic ranks. More...