readNarrowPeak {genomation} | R Documentation |
A function to read the Encode formatted narrowPeak file into a GRanges object
readNarrowPeak(file, track.line=FALSE, zero.based=TRUE)
file |
an absolute or relative path to a bed file formatted by the Encode
narrowPeak standard. The file can end in |
track.line |
the number of track lines to skip, "auto" to detect them automatically or FALSE(default) if the bed file doesn't have track lines |
zero.based |
a boolean which tells whether the ranges in the bed file are 0 or 1 base encoded. (Default: TRUE) |
a GRanges object
narrow.peak.file = system.file('extdata',"ex.narrowPeak", package='genomation') narrow.peak = readBroadPeak(narrow.peak.file) head(narrow.peak)