Description Usage Arguments Details Value Author(s) See Also Examples
Using output from fullCoverage, export the coverage from all the samples to BigWig files using createBwSample.
1 |
fullCov |
A list where each element is the result from
loadCoverage used with |
path |
The path where the BigWig files will be created. |
keepGR |
If |
... |
Arguments passed to createBwSample. |
Use at most one core per chromosome.
If keepGR = TRUE
, then a GRangesList
with the output for coerceGR for each of the samples.
Leonardo Collado-Torres
GRangesList, export, createBwSample, coerceGR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Create a small fullCov object with data only for chr21
fullCov <- list("chr21" = genomeDataRaw)
## Keep only 2 samples
fullCov$chr21$coverage <- fullCov$chr21$coverage[c(1, 31)]
## Create the BigWig files for all samples in a test dir
dir.create("createBw-example")
bws <- createBw(fullCov, "createBw-example")
## Explore the output
bws
## First sample
bws[[1]]
## Note that if a sample has no bases with coverage > 0, the GRanges object
## is empty and no BigWig file is created for that sample.
bws[[2]]
## Exports fullCoverage() output to BigWig files
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.