View source: R/get_consensus.R
get_consensus | R Documentation |
get_consensus
finds a consensus copy number results for a particular mapping result
get_consensus(data, tree, sens = 0.1, consensus = TRUE, consensus.only = F)
data |
a tibble with summarised mapping results, the output of using mapsce function |
tree |
a matrix listing all the branches in the tree, where the first column is the ancestral node and the second column is the descendant clone. By definition, the root node will only be present in the first column. The clone IDs must correspond to the cluster IDs in cluster_ccf and mutation_ccf. |
sens |
sensitivity of the comparison between the mapped values of different branches |
consensus |
printing of the consensus |
consensus.only |
limiting output to just the consensus, will output a vector instead of a data frame, only works with consensus = TRUE |
returns a matrix with consensus copy number states for every clone in a tree, labeling no consensus as NAs
data(example_data)
mapsce_result <- mapsce(
example_cn,
example_ccf,
example_mutational_ccf,
example_tree)
get_consensus(mapsce_result, example_tree)
# returns a consensus matrix for this example mapsce result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.