calc_clonal_diversity | R Documentation |
clonal prevalence indicates, for each clone, what percentage of cells actually contain its precise genotype (i.e. do not also have any other additional mutations in subclones). Prevalence for all clones should sum 100
calc_clonal_diversity(CCF.data, tree, method = "shannon")
CCF.data |
a table of clone CCFs with column 1 (named 'clone') specifying clone names and column 2 (name 'CCF') specifying CCFs as either fractions or percentages |
tree |
a phylogenetic tree matrix with two column specifying 'parent' (column 1) and child (column 2) |
method |
which method of diversity calculation should be used. These are borrows from the 'diversity' function of the 'vegan' package and can be "shannon", "simpson" or "invsimpson" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.