relative_to_absolute_copy_number: Convert relative copy numbers to absolute copy numbers

Description Usage Arguments Value Examples

View source: R/utils.R

Description

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

Usage

1
relative_to_absolute_copy_number(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

1
relative_to_absolute_copy_number(c(0.98, 1.6, 1.23), 4.01, 0.77)

crukci-bioinformatics/rascal documentation built on Dec. 19, 2021, 6:21 p.m.