loadPeakFile {FindIT2}R Documentation

loadPeakFile

Description

read peak file and transform it into GRanges object

Usage

loadPeakFile(filePath, fromMACS2 = FALSE, narrowPeak = TRUE)

Arguments

filePath

peak Path

fromMACS2

whether peak from MACS2.If it set TRUE, extra column in bed file will be named according to the content in MACS2 manual

narrowPeak

whether peak is narrowPeak or broadPeak.

Value

GRanges object with a column named feature_id, which is important for later analysis

Examples

peakfile <- system.file("extdata", "ChIP.bed.gz", package = "FindIT2")
loadPeakFile(peakfile)

[Package FindIT2 version 1.0.0 Index]