Function to recode numeric CNA alteration values to factor values
Source:R/utils-exported-helpers.R
recode_cna.Rd
Function to recode numeric CNA alteration values to factor values
Details
CNA is coded to the following key based on key: values below
"neutral": "0", "neutral",
"deletion": "homozygous deletion", "-2",
"deletion": "loh", "-1.5",
"deletion": "hemizygous deletion", "-1",
"amplification": "gain", "1",
"amplification": high level amplification", "2",
Examples
recode_cna(gnomeR::cna$alteration[1:10])
#> [1] deletion amplification deletion amplification deletion
#> [6] deletion deletion deletion deletion amplification
#> Levels: deletion amplification