sample_tree_SNV: Down sample number of SNVs in the tree

View source: R/reads_simulator.R

sample_tree_SNVR Documentation

Down sample number of SNVs in the tree

Description

Down sample number of SNVs in the tree

Usage

sample_tree_SNV(tree, n_SNV = NULL)

Arguments

tree

A tree object from Canopy

n_SNV

A integer, the number of SNVs to keep in the output tree

Value

a phylo tree with down sampled variants

Examples

data(simulation_input)
tree_lite <- sample_tree_SNV(tree_4clone, n_SNV = 10)

davismcc/cardelino documentation built on Nov. 19, 2022, 2:44 a.m.