|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_SEQUENCE_FUNCTIONS_STATS_H_
2 #define GENESIS_SEQUENCE_FUNCTIONS_STATS_H_
79 std::map<char, double>
base_frequencies( Sequence
const& seq, std::string
const& plain_chars );
86 std::map<char, double>
base_frequencies( SequenceSet
const& set, std::string
const& plain_chars );
98 size_t count_chars( SequenceSet
const& set, std::string
const& chars );
111 double gapyness( SequenceSet
const& set, std::string
const& gap_chars );
118 #endif // include guard
size_t gap_site_count(SiteCounts const &counts)
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::map< char, double > base_frequencies(Sequence const &seq, std::string const &plain_chars)
Get the base frequencies of the sites in a Sequence given the base chars.
size_t count_chars(SequenceSet const &set, std::string const &chars)
Count the number of occurrences of the given chars within the sites of the SequenceSet.
double gapyness(SequenceSet const &set, std::string const &gap_chars)
Return the "gapyness" of the Sequences, i.e., the proportion of gap chars and other completely undete...
std::map< char, size_t > site_histogram(Sequence const &seq)
Get a histogram of the occurrences of particular sites, given a Sequence.