Convert segmentation GenomicRanges object to a data.table with standardized columns and format
Source:R/swissArmyKnife.R
gr_to_seg.RdConverts a segmentation GenomicRanges object into a data.table object then extracts the appropriate columns and renames the columns to match the expected format.
The input GenomicRanges is typically generated from get_fragcounter_segmentation() workflow
or other DNAcopy CBS algorithm runs.
Usage
gr_to_seg(input_gr, exp_colnames = c("ID", "num.mark", "seg.mean"))