Utilities for variant allele frequency
Usage
make_vaf(graph, samples, mu)
make_longer_vaf(graph, samples, mu, threshold = 0.05)
longer_vaf(vaf)
filter_detectable(vaf, threshold)
sort_vaf(vaf, method = c("average", "ward.D2", "complete", "single"))
Arguments
- graph
igraph
- samples
list of integer IDs
- mu
mutation rate per cell division (ignored if segsites is given)
- threshold
minimum detectable frequency
- vaf
output of
make_vaf()
- method
passed to
stats::hclust