Learn R Programming

genomation (version 1.4.2)

readNarrowPeak: A function to read the Encode formatted narrowPeak file into a GRanges object

Description

A function to read the Encode formatted narrowPeak file into a GRanges object

Usage

readNarrowPeak(file, track.line=FALSE)

Arguments

file
an absolute or relative path to a bed file formatted by the Encode narrowPeak standard. The file can end in .gz, .bz2, .xz, or .zip and/or start with http:// or ftp://. If the file is not compressed it can also start with https:// or ftps://.
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

Value

  • a GRanges object

Examples

Run this code
narrow.peak.file = system.file('extdata',"ex.narrowPeak", package='genomation')

narrow.peak = readBroadPeak(narrow.peak.file)
head(narrow.peak)

Run the code above in your browser using DataLab