readNarrowPeakFile(file_path, extractRegions = TRUE, extractPeaks = TRUE)
logical
indicating if the narrow regions must
be extracted. If TRUE
, a GRanges
containing the
narrow regions will be returned. Otherwise, NULL
is
returned. Default = TRUE
.logical
indicating if the peaks must
be extracted. If TRUE
, a GRanges
containing the peaks
will be returned. Otherwise, NULL
is
returned. Default = TRUE
.list
containing 2 entries:
GRanges
containing
the narrow regions extracted from the file. NULL
when
not needed by user.
GRanges
containing
the peaks extracted from the file. NULL
when not
## Set file information
test_narrowPeak <- system.file("extdata",
"A549_FOSL2_ENCSR000BQO_MZW_part_chr_1_and_12.narrowPeak",
package = "consensusSeekeR")
## Read file to extract peaks and regions
data <- readNarrowPeakFile(test_narrowPeak, extractRegions = TRUE,
extractPeaks = TRUE)
## To access peak data (GRanges format)
head(data$peak)
## To access region data (GRanges format)
head(data$narrowPeak)
Run the code above in your browser using DataLab