get_consensus: get_consensus

View source: R/get_consensus.R

get_consensusR Documentation

get_consensus

Description

get_consensus finds a consensus copy number results for a particular mapping result

Usage

get_consensus(data, tree, sens = 0.1, consensus = TRUE, consensus.only = F)

Arguments

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

Value

returns a matrix with consensus copy number states for every clone in a tree, labeling no consensus as NAs

Examples

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



MarkTranHS/MAPSCE documentation built on Jan. 28, 2024, 6:29 p.m.