ezSortIndexBam | R Documentation |
Sorts and indexes a bam file.
ezSortIndexBam(inBam, bam, ram=2, removeBam=TRUE, cores=2,
method=c("sambamba", "samtools"))
inBam |
a character representing the file path of the input bam file to sort. |
bam |
a character representing the file path of the output bam file. |
ram |
max RAM to use in GB |
removeBam |
a logical indicating whether to remove the file specified in |
cores |
an integer specifying how many cores to use for the command. |
method |
|
Rehrauer, Hubert Schmid, Peter
bamFile <- system.file("extdata", "ex1.bam", package="Rsamtools",
mustWork=TRUE)
outBam <- tempfile(pattern="test-", fileext=".bam")
ezSortIndexBam(inBam=bamFile, bam=outBam, ram=0.5,
removeBam=FALSE, cores = ezThreads())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.