Description Usage Arguments Value Author(s) Examples
Add the number of input reads as a comment to the header of bamFile.
1 | addInputReadCounts(bamFiles, reads1s, binary = "samtools")
|
bamFiles |
The filenames of input bam files. |
reads1s |
The filenames of the corresponding input fastq files. |
binary |
The name/filename of the binary "samtools" to call. |
The filenames of input bam files.
Ge Tan
1 2 3 4 5 6 7 8 9 10 11 |
## This example is not tested because it requires external software "samtools"
bamfile <- system.file("extdata", "ex1.bam", package="Rsamtools",
mustWork=TRUE)
tempBamFile <- tempfile(fileext=".bam")
file.copy(bamfile, tempBamFile)
reads1 <- file.path(system.file("extdata", package="NGS"), "fastq",
"nanocage_ACAGAT_carp_embryo_R1.fastq")
addInputReadCounts(bamFiles=tempBamFile, reads1s=reads1, binary="samtools")
file.remove(tempBamFile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.