BWA is a software package that aligns low-divergence sequences to a large reference genome, such as the human genome
Arguments
- subcmd
Sub-Command of BWA (e.g., "index", "mem").
- ...
<dynamic dots> Additional arguments passed to
bwacommand. Empty arguments are automatically trimmed. If a single argument, such as a file path, contains spaces, it must be quoted, for example usingshQuote(). Details see:cmd_help(bwa()).- bwa
A string of path to
bwacommand.
See also
Other commands:
allele_counter(),
bcftools(),
bedtools(),
bowtie2(),
cellranger(),
conda(),
fastp(),
fastq_pair(),
gistic2(),
kraken2(),
kraken_tools(),
perl(),
pyscenic(),
python(),
samtools(),
seqkit(),
snpEff(),
trust4(),
varscan()
Examples
if (FALSE) { # \dontrun{
# Index reference genome
bwa("index", "-a", "bwtsw", "reference.fa") |>
cmd_run()
# Paired-end sequence alignment
bwa("mem", "-t", "4", "reference.fa", "read1.fq", "read2.fq") |>
cmd_run(stdout = "output.sam")
# Single-end alignment (generate sai file)
bwa("aln", "-t", "4", "reference.fa", "read.fq") |>
cmd_run(stdout = "read.sai")
} # }
