coerceGR {derfinder} | R Documentation |
Given the output of fullCoverage, coerce the coverage to a GRanges object.
coerceGR(sample, fullCov, ...)
sample |
The name or integer index of the sample of interest to coerce
to a |
fullCov |
A list where each element is the result from
loadCoverage used with |
... |
Arguments passed to other methods and/or advanced arguments. Advanced arguments:
Passed to define_cluster. |
A GRanges object with score
metadata
vector containing the coverage information for the specified sample. The
ranges reported are only those for regions of the genome with coverage
greater than zero.
Leonardo Collado-Torres
## Create a small fullCov object with data only for chr21 fullCov <- list("chr21" = genomeDataRaw) ## Coerce to a GRanges the first sample gr <- createBwSample("ERR009101", fullCov = fullCov, seqlengths = c("chr21" = 48129895) ) ## Explore the output gr ## Coerces fullCoverage() output to GRanges for a given sample