WIG Output Functions {HMMcopy} | R Documentation |
Fast fixedStep WIG file formatting and output
rangedDataToWig(correctOutput, file, column = "copy", sample = "R", verbose = TRUE) rangedDataToSeg(correctOutput, file, column = "copy", sample = "R", verbose = TRUE)
correctOutput |
|
file |
Filepath to write output to. |
column |
Column in input object to export. Defaults to corrected copy number. |
sample |
Sample name of the exported dataset, defaults to “R” |
verbose |
Set to FALSE to suppress messages. |
Assumes that all ranges in data set are non-overlapping windows of fixed width covering the entire genome. Note that positions in WIG files are 1-based while those in SEG files are 0-based.
Daniel Lai
correctReadcount
output is the intended input
data(tumour) # Load tumour_copy rangedDataToWig(tumour_copy, file = "test.wig") rangedDataToSeg(tumour_copy, file = "test.seg")