Skip to contents

Convert relative copy numbers to absolute copy numbers based on the given ploidy and cellularity. Copied from rascal.

Usage

RelativeToAbsoluteCopyNumber(relative_copy_numbers, ploidy, cellularity)

Arguments

relative_copy_numbers

a numeric vector containing relative copy numbers, i.e. ratios of copy numbers to the average copy number.

ploidy

the tumour ploidy.

cellularity

the cellularity, i.e. the fraction of cells that are from the tumour.

Value

a numeric vector of absolute copy numbers.

Examples

RelativeToAbsoluteCopyNumber(c(0.98, 1.6, 1.23), 4.01, 0.77)
#> [1] 3.917852 6.774442 5.069703