|
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_CONSENSUS_H_
2 #define GENESIS_SEQUENCE_FUNCTIONS_CONSENSUS_H_
85 SiteCounts
const& counts,
86 bool allow_gaps =
true,
105 SequenceSet
const& sequences,
106 std::string
const& characters,
107 bool allow_gaps =
true,
122 SequenceSet
const& sequences,
123 bool allow_gaps =
true
173 SiteCounts
const& counts,
174 double similarity_factor = 0.9,
175 bool allow_gaps =
true
187 SequenceSet
const& sequences,
188 double similarity_factor = 0.9,
189 bool allow_gaps =
true
249 SiteCounts
const& counts,
250 double frequency_threshold = 0.6,
251 bool allow_gaps =
true,
252 bool use_ambiguities =
true
264 SequenceSet
const& sequences,
265 double frequency_threshold = 0.6,
266 bool allow_gaps =
true,
267 bool use_ambiguities =
true
307 SiteCounts
const& counts,
308 bool allow_gaps =
true
320 SequenceSet
const& sequences,
321 bool allow_gaps =
true
328 #endif // include guard
std::string consensus_sequence_cavener(SiteCounts const &counts, bool allow_gaps)
Calculate a consensus sequence using the method by Cavener for nucleic acid codes ACGT and their ambi...
std::string consensus_sequence_with_majorities(SiteCounts const &counts, bool allow_gaps, char gap_char)
Calculate the majority rule consensus sequence by using the most frequent character at each site.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::string consensus_sequence_with_threshold(SiteCounts const &counts, double frequency_threshold, bool allow_gaps, bool use_ambiguities)
Calculate a consensus sequence where the character frequency needs to be above a given threshold,...
std::string consensus_sequence_with_ambiguities(SiteCounts const &counts, double similarity_factor, bool allow_gaps)
Calculate a consensus sequence by using the most frequent characters at each site,...