interpret_mapsce: interpret_mapsce

View source: R/interpret_mapsce.R

interpret_mapsceR Documentation

interpret_mapsce

Description

interpret_mapsce is a wrapper function for MAPSCE for interpretation of results for a particular mapping result

Usage

interpret_mapsce(
  data,
  tree,
  min_diff = 0.4,
  consensus_threshold = 0.1,
  format = "tibble",
  graph = 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.

min_diff

a numeric vector, minimum difference between before and after to consider clonality. default at 0.4

consensus_threshold

a numeric vector, the allowed threshold between the values to be considered "in agreement/consensus". default at 0.1

format

a character vector, "list" or "tibble" output format. default is tibble

graph

logical, graphical output

Value

returns interpretation of MAPSCE in the form of vector

Examples

data(example_data)

mapsce_result <- mapsce(
example_cn,
example_ccf,
example_mutational_ccf,
example_tree)

interpret_mapsce(mapsce_result, example_tree)
# returns an interpretation vector for this example mapsce result



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