|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_POPULATION_FUNCTION_SUBSAMPLE_H_
2 #define GENESIS_POPULATION_FUNCTION_SUBSAMPLE_H_
38 namespace population {
123 SampleCounts& sample,
151 SampleCounts& sample,
185 SampleCounts& sample,
202 #endif // include guard
void resample_counts(SampleCounts &sample, size_t target_depth)
Resample all counts in a SampleCounts sample to a new target_depth.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
void subsample_counts_with_replacement(SampleCounts &sample, size_t max_depth)
Transform a SampleCounts sample by subsampling the nucleotide counts (A, C, G, T, as well as N and D)...
void subsample_counts_without_replacement(SampleCounts &sample, size_t max_depth)
Transform a SampleCounts sample by subsampling the nucleotide counts (A, C, G, T, as well as N and D)...
void subscale_counts(SampleCounts &sample, size_t max_depth)
Transform a SampleCounts sample by sub-scaling the base counts (A, C, G, T, as well as N and D) to su...
void rescale_counts(SampleCounts &sample, size_t target_depth)
Transform a SampleCounts sample by re-scaling the base counts (A, C, G, T, as well as N and D) to sum...