Skip to contents

Bowtie 2 is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences. It is particularly good at aligning reads of about 50 up to 100s or 1,000s of characters, and particularly good at aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the genome with an FM Index to keep its memory footprint small: for the human genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports gapped, local, and paired-end alignment modes.

Usage

bowtie2(index, reads, ofile, ..., bowtie2 = NULL)

Arguments

index

Path to bowtie2 index prefix (without file extensions).

reads

A character vector of FASTQ files used as input to bowtie2.

ofile

A string of path to the output sam file.

...

<dynamic dots> Additional arguments passed to bowtie2 command. Empty arguments are automatically trimmed. If a single argument, such as a file path, contains spaces, it must be quoted, for example using shQuote(). Details see: cmd_help(bowtie2()).

bowtie2

A string of path to bowtie2 command.

Value

A command object.