read_narrowPeak: Read a narrowPeak format BED file.

View source: R/file_format_io.R

read_narrowPeakR Documentation

Read a narrowPeak format BED file.

Description

NarrowPeak is a sub-format of the BED file format used as the output format of some peak callers. rtracklayer::import.bed() often throws an error when reading these files, so a separate function is needed.

Usage

read_narrowPeak(file, ...)

Arguments

file

The file name to read from.

...

Additional arguments are passed to read.table().

Value

A GRanges object containing the ranges from file.


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.