STAR and HISAT2 both align RNA-seq reads across splice junctions, but they build and use their indexes differently. STAR constructs a full suffix-array index of the genome and searches it directly; HISAT2 uses a hierarchical graph index and an FM-index. Both produce alignments that feed quantification and junction analysis, and both need the same reference and annotation conventions.
What each approach is
STAR
STAR aligns reads to a genome index and can discover novel splice junctions as well as use known ones. It outputs SAM or BAM and is often used when a BAM file is needed for visualisation, junction counting or downstream tools. Building the index requires substantial memory and disk space, and the index is specific to the genome and read length settings.
HISAT2
HISAT2 uses a graph-based index that represents the genome and known transcripts, together with an FM-index for fast seeding. It aligns reads end-to-end or locally and reports alignments in SAM format. Its index is designed to be compact, which matters on shared or memory-limited machines.
How they differ
| Aspect | STAR | HISAT2 |
|---|---|---|
| What it is | A splice-aware aligner that searches a full genome index and can report novel junctions. | A splice-aware aligner that uses a graph index of the genome and known transcripts. |
| Typical use | RNA-seq alignment when BAM output, junction discovery or downstream BAM tools are needed. | RNA-seq alignment on machines where index size and memory are constrained. |
| Index | A large suffix-array index built from the genome and annotation. | A hierarchical graph index plus an FM-index, designed to be compact. |
| Splice handling | Uses annotated junctions and can detect novel ones; junction output is available. | Uses known splice sites and can report novel junctions, with settings that control discovery. |
| Limits | Index building is memory-hungry; parameters affect multimapping and junction discovery. | Alignment behaviour depends on the index and on choices such as end-to-end versus local mode. |
| When to choose | You need a BAM for visualisation, junction analysis or a BAM-based quantifier. | You need a compact index and a splice-aware alignment on limited hardware. |
In practice
Both aligners need a genome index, and index size and build time affect how easily a lab can move between references. STAR indexes are large and memory-hungry, which matters on shared compute, but the aligner is designed for splice-aware RNA-seq and can report novel junctions in a two-pass mode. HISAT2 uses a hierarchical index and generally needs less memory, which makes it attractive on modest hardware or when many samples are processed in parallel. The choice often comes down to the compute budget and whether the project needs a particular junction or fusion output.
Downstream steps are similar: both produce SAM/BAM files that can be quantified with featureCounts or another summariser. Check strandedness before quantification, because a stranded library analysed as unstranded will assign reads to the wrong feature. Also inspect alignment rates, mismatch and soft-clip profiles, and the number of reads assigned to genes. A high alignment rate is not proof of a good library; ribosomal contamination, degraded RNA and adapter read-through can all produce alignments that look plausible.
How to decide
1. Do you need a BAM file?
If downstream steps require a BAM, such as viewing alignments, counting junctions or running a BAM-based quantifier, choose an aligner that produces one and check that its output is accepted by those tools. Both can write SAM/BAM, but the alignment conventions differ.
2. How much memory and disk do you have?
Building and loading a full genome index can exceed the memory of a laptop or a small server. A compact graph index is easier to host. Check the index size before committing to a reference and read length.
3. Do you need novel junction discovery?
Both tools can report novel junctions, but the settings and output formats differ. If junction discovery is a primary aim, plan how you will filter and validate the calls rather than treating every novel junction as real.
4. Which reference and annotation will you use?
The aligner is only one part of the pipeline. The genome build, annotation release and whether the annotation is used to guide alignment all affect the result. Record them alongside the aligner and its parameters.
What this comparison does not settle
Alignment is not quantification. A high mapping rate does not prove that the library is good, and a low rate can reflect adapter read-through, contamination, the wrong reference or a genuinely novel sequence. Inspect the reads and the reference before changing aligner settings.
What to record
Record the genome build, annotation release, index type, aligner parameters, whether novel junctions were allowed, and the output format. Keep the index build command with the analysis, because an index rebuilt from different inputs is a different reference.
Sources
Related pages
Related reading
Last reviewed: . This is an editorial summary, not a benchmark. If a tool or method has changed, tell us and we will update the page.