readPeakFile {ChIPseeker} | R Documentation

## readPeakFile

### Description

read peak file and store in data.frame or GRanges object

### Usage

    readPeakFile(peakfile, as = "GRanges", ...)

### Arguments

`peakfile` | peak file
`as` | output format, one of GRanges or data.frame
`...` | additional parameter

### Value

peak information, in GRanges or data.frame object

### Author(s)

G Yu

### Examples

    peakfile <- system.file("extdata", "sample_peaks.txt", package="ChIPseeker")
    peak.gr <- readPeakFile(peakfile, as="GRanges")
    peak.gr

[Package ChIPseeker version 1.24.0 Index]