Description Usage Arguments Value
MLE assignment of (low-depth) samples to a tree
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | add_lowpass_sampled(
tree,
phydata,
sample_data,
min_confidence = 0,
vaf_bkgr = 0.01,
purity_estimates = rep(0.75, length(sample_data)),
min_edge_length = 0,
return_details = TRUE,
optimize_values = TRUE,
max_vaf_bkgr = 0.1,
max_loss_frac = 0,
loss_frac_init = 0,
rescale_tree = TRUE,
control = NULL,
n_bootstraps = 0,
n_cores = 1,
...
)
|
tree |
A tree object (of class phylo). |
phydata |
Phylogenetic data used for the tree construction (of class phyDat). Note: The attribute attr(*, "id") containng mutation ids has to be added (e.g., c("chr1:5_A/T", ...) |
sample_data |
A list of mutation data of samples to add the the tree. Each element must contain a data frame with the following columns:
|
min_confidence |
(optional) minimum confidence in the the edge a sample is assigned to (default: 0). |
vaf_bkgr |
(optional) expected background mutation rate of unmutated sites (default 0.01). |
purity_estimates |
(optional) purity of the samples. Must be the same length as the sample_data list (default 1.0, pure samples). |
min_edge_length |
(optional) numeric value indicating the length of the edges to the added tips relative to the tree height (default: 0.01). |
return_details |
(optional) logical flag indicating if detailed information should be returned (default: false). |
optimize_values |
(optional) logical flag indicating if purity, background mutation rate, (and loss fraction) should be optimized (default: true). |
max_vaf_bkgr |
(optional) maximum background mutation rate (default: 0.1). |
max_loss_frac |
(optional) maximum loss fraction (default: 0). |
loss_frac_init |
(optional) initial value of loss fraction (default: 0). |
rescale_tree |
(optional) flag indicating if the tree should be rescaled (default: true). |
control |
(optional) control passed to optimizer (default: NULL). |
n_bootstraps |
(optional) Number of bootstraps to perform (default: 0). |
n_cores |
(optional) Number of cores to use for bootstrapping (default: 0). |
... |
unused arguments. |
A tree object with the samples in 'sample_data' added to it.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.