Takes a numeric vector of CNA data in wide format where each column is a sample and each row is a hugo symbol. Function will return a long format CNA data set of just events (neutral/diploid instances are filtered out) and will recode events from numeric to descriptive (-2/-1/-1.5 is deletion, 2/1 is amplification).
Examples
cna <- pivot_cna_longer(wide_cna = gnomeR::cna_wide)
#> ! Replacing all `.` to `-` in sample_id field (e.g. `P.0001930.T01.IM3` -> `P-0001930-T01-IM3`).
#> To prevent this, use argument `clean_sample_ids = FALSE`