WIG Import Functions
Fast fixedStep WIG file reading and parsing
Filepath to fixedStep WIG format file
Set to FALSE to suppress messages
Reads the entire file into memory, then processes the file in rapid fashion, thus performance will be limited by memory capacity.
The WIG file is expected to conform to the minimal fixedStep WIG format (see References), where each chromsome is started by a “fixedStep” declaration line. The function assumes only a single track in the WIG file, and will ignore any lines before the first line starting with “fixedStep”.
wigToRangedData with chromosome and position information, sorted
in decreasing chromosal size and increasing position.
sorted in decreasing chromosal size and increasing position.
wigsToRangedData is a wrapper around these functions for easy
WIG file loading and structure formatting.
1 2 3
wigfile <- system.file("extdata", "tumour.wig", package = "HMMcopy") posAndValues <- wigToRangedData(wigfile) justValues <- wigToArray(wigfile)