Usage Arguments Value Author(s) Examples
1 2 | convertBamToBigWig(bamFiles, NH.weight = FALSE, output.dir = NULL,
cores=1L, singleEnded=TRUE)
|
bamFiles |
Vector of charactor strings of the bam files. |
NH.weight |
Logical indicating whether to weight the coverage by the NH tab. |
output.dir |
Character string indicating the location of the output bigWig files. |
cores |
The number of precessors to use. |
singleEnded |
Logical indicated whether the reads are single ended. |
List of coverage.
Chao-Jen Wong <cwon2@fredhutch.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
ngsDir <- "/shared/ngs/illumina/acampbel/150408_SN367_0511_BHJ33TADXX"
bamDir <- file.path(ngsDir, "tophat")
tmp <- list.files(file.path(bamDir, "bam"), pattern="\.bam$",
all.files=FALSE,
include.dirs=TRUE)
bamFiles <- file.path(bamDir, "bam", tmp)[1]
## convert Bam files to bw files
res <- UCSCTrackTools::convertBamToBigWig(bamFiles, NH.weight=FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.