peak2Granges: File conversions

Description Usage Arguments Value Examples

Description

Function to convert a narrowPeak or broadPeak MACS2 file into a GRanges object

Function to convert a GRanges object to a dataframe

Function to convert a GRanges object to a SAF

Usage

1
2
3
4
5
peak2Granges(peakfile, broad = FALSE)

Granges2df(gr, ignore.strand = FALSE)

Granges2saf(gr)

Arguments

peakfile

Path to MACS2 peak file in narrowPeak or broadPeak format

broad

Logical specifying whether broad or narrowpeak

gr

GRanges object to convert

ignore.strand

Logical indicating whether strand information should be included

Value

GRanges object of peak regions

A dataframe created from the GRanges object

A SAF file created from the GRanges object

Examples

1
2
3
4
## Not run: 
peaks <- peak2Granges("peaks/sample.narrowPeak")

## End(Not run)

anilchalisey/chompR documentation built on May 9, 2019, 3:59 a.m.