Description Usage Arguments Value Author(s) See Also Examples
sortIndexBam sort the bam file by coordinates and index it.
1 2 | sortIndexBam(inputs, outputs, maxMem="4096M", removeBam=TRUE,
mc.cores=getThreads(), binary="samtools")
|
inputs |
The filenames of input bam files. |
outputs |
The filenames of output bam files. |
maxMem |
The maximal memory per thread to use. |
removeBam |
Remove the input bam files or not after sorting and idnexing. |
mc.cores |
The number of threads to use. By default,
we use a internal function |
binary |
The name/filename of the binary "samtools" to call. |
The output is returned.
Ge Tan
indexBam and sortBam, asBam from Rsamtools
1 2 3 4 5 6 7 |
## This example is not tested because it requires external software "samtools"
library(Rsamtools)
bamfile <- system.file("extdata", "ex1.bam", package="Rsamtools",
mustWork=TRUE)
sortIndexBam(inputs=bamfile, outputs="ex1_sorted.bam", removeBam=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.