Description Usage Arguments Details Value Author(s) References Examples
Wrapper function for bwa aligner with MEM algorithm.
1 2 | bwaMem(reads1, output, ref, opt = "", mc.cores = getThreads(),
binaryBWA = "bwa", binarySamtools = "samtools")
|
reads1 |
The filename of first reads. |
output |
The filename of output bam files. |
ref |
The filename of bwa index prefix. |
opt |
Additional arguments passed to bwa-mem. |
mc.cores |
The number of threads to use. By default,
we use a internal function |
binaryBWA |
The name/filename of the binary "bwa" to call. |
binarySamtools |
The name/filename of the binary "samtools" to call. |
The BWA-MEM algorithm is suitable for aligning 70bp-1Mbp query sequences. The bam file will be sorted by coordinates. A idnex file will be created. A corresponding bigwig file will also be created.
The filename of output bam file.
Ge Tan
http://bio-bwa.sourceforge.net/bwa.shtml
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
## This example is not tested because it requires external software "bwa" and
## reads/reference
bwaMem(reads1=file.path(system.file("extdata", package="NGS"), "fastq",
"nanocage_ACAGAT_carp_embryo_R1.fastq"),
output="nanocage_ACAGAT_carp_embryo.bam",
ref=file.path(system.file("extdata", package="NGS"), "reference",
"BWAIndex", "genome.fa"),
opt = "", mc.cores=4)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.