| pivot_cna_longer | R Documentation | 
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).
pivot_cna_longer(wide_cna, clean_sample_ids = TRUE)
| wide_cna | a cna dataframe in wide format (e.g. gnomeR::cna) | 
| clean_sample_ids | 
 | 
A long data frame of CNA events
cna <- pivot_cna_longer(wide_cna = gnomeR::cna_wide)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.