inferMrca: inferMrca

View source: R/inferMrca.R

inferMrcaR Documentation

inferMrca

Description

From the consensus matrix it infers a Most Recent Common Ancestral (MRCA) across all groups.

Usage

inferMrca(scCNA, value = 1)

Arguments

scCNA

the scCNA object

value

A numeric value used to compare the profiles to infer the mrca, usually equal to the mean segment ratio of cells (value = 1) or the average copy number of the cells

Details

Calculates the MRCA by inferring, for every bin, the value across all groups that is closest to the number supplied in the argument value.

Value

Returns a numeric vector added to the metadata of the scCNA object named 'inferred_mrca'

Examples

copykit_obj <- copykit_example_filtered()[,1:300]
copykit_obj <- findClusters(copykit_obj)
copykit_obj <- calcConsensus(copykit_obj)
copykit_obj <- inferMrca(copykit_obj)

navinlabcode/copykit documentation built on Sept. 22, 2023, 9:16 a.m.