Description Usage Arguments Value Examples
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
1 2 3 4 5 | peak2Granges(peakfile, broad = FALSE)
Granges2df(gr, ignore.strand = FALSE)
Granges2saf(gr)
|
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 |
GRanges object of peak regions
A dataframe created from the GRanges object
A SAF file created from the GRanges object
1 2 3 4 | ## Not run:
peaks <- peak2Granges("peaks/sample.narrowPeak")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.