Function to split compounded chromosome-position names into separate columns.
Distinct columns for chromosome number, start, and ending positions are the result.
Arguments
- x
dataframe containing the copy number segments in long format with columns:
chr sample_id segVal
Value
dataframe containing three separate columns for the chromosome number, sample_id and segVal
Details
A QDNAseq object generally contains the chromosome and position information as such:
chromosome:start-end.
This is inconvenient for plotting and other data wrangling.