bam2bw | R Documentation |
Create bigwig file from bam file.
bam2bw(file, destination = sub("\.bam$", ".bw", ignore.case = TRUE),
paired = FALSE, method = c("deepTools", "Bioconductor"),
cores = ezThreads())
file |
|
destination |
|
paired |
|
method |
|
cores |
|
The “bamCoverage” tool from “deepTools” is faster, more memory efficient. By default, we export a bigwig file with bin size of 10.
The “Bioconductor” approach is more self-contained, slower and consuming much more memory. It output single-base resolution.
An invisible destination
.
Ge Tan
http://deeptools.readthedocs.io/en/latest/index.html
ezBam2bigwig
file <- system.file("extdata", "ex1.bam", package="Rsamtools",
mustWork=TRUE)
destination <- tempfile(pattern="test-", fileext=".bw")
bam2bw(file, destination, paired=FALSE, method="Bioconductor")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.