How to Use Bowtie2: Mapping in RNA-Seq Analysis
Introduction
When quantifying gene expression levels using sequencing data obtained from RNA-Seq analysis, a mapping step is generally required. Mapping refers to the process of aligning read sequences (FASTQ files) to matching positions on a reference sequence.
Commonly used mapping software for RNA-Seq includes HISAT2, STAR, and Bowtie2. This page explains how to use Bowtie2.
Please refer to the RNA-Seq analysis workflow overview.
Installation
Bowtie2 can be installed using conda.
Let’s display the help message.
If you see output like the following, the installation was successful.
Index construction (build)
First, create an index for the reference sequence using the following command.
genome.fa is the reference sequence you want to map against, provided as a FASTA file. Compressed files (gzip) are also supported.
This command generates six index files:genome.1.bt2 to genome.4.bt2, genome.rev.1.bt2, and genome.rev.2.bt2. Index files are required for fast sequence searching and must be created in advance for almost all mapping software, not just Bowtie2.
Mapping
Next, map the read sequences to the reference sequence.
This command produces a SAM file. Since SAM files can be large, it is often convenient to convert them to BAM format and sort them as shown below.
You can visualize the mapping results using a genome browser such as IGV, as shown below.

RNA-Seq Data Analysis Software: Accelerate Your Publication
With our RNA-Seq data analysis software, you won't need to outsource or rely on collaborators. You can start analyzing the data yourself right away, without the need for high-spec computers or knowledge of Linux commands.

Users can perform gene expression quantification, identification of differentially expressed genes, gene ontology(GO) analysis, pathway analysis, as well as drawing volcano plots, MA plots, and heatmaps.
About the Author
BxINFO LLC
A research support company specializing in bioinformatics.
We provide tools and information to support life science research, with a focus on RNA-Seq analysis.