importPeaks | R Documentation |
Import peaks in narrowPeak, broadPeak or bed format
importPeaks(
x,
type = c("narrow", "broad", "bed"),
blacklist,
seqinfo,
pruning.mode = c("coarse", "error"),
sort = TRUE,
setNames = TRUE,
glueNames = "{basename(x)}",
centre = FALSE,
nameRanges = TRUE,
...
)
x |
One or more files to be imported. All files must be of the same type, i.e. narrow or broad |
type |
The type of peaks to be imported |
blacklist |
A set of ranges to be excluded |
seqinfo |
A seqinfo object to be applied to the GRanges objects |
pruning.mode |
How to handle conflicts if supplying a seqinfo object.
Defaults to |
sort |
logical. Should the ranges be sorted during import |
setNames |
logical Set basename(x) as the name for each element of the GRangesList |
glueNames |
glue syntax for naming list elements |
centre |
Add the estimated peak centre. Ignored unless type = "narrow" |
nameRanges |
Place any values in the name column as range names within each file. |
... |
passed to |
Peaks are imported from narrowPeak, broadPeak or bed format as GenomicRanges objects.
If importing bed files, only the default 3-6 columns will imported.
A GRangesList
fl <- system.file(
c("extdata/ER_1.narrowPeak", "extdata/ER_2.narrowPeak"),
package = "extraChIPs"
)
peaks <- importPeaks(fl)
peaks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.