This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Genome indexing with hisat2 and samtools

Hello, I found this code in Biostar handbook (RNA-Seq by Example) in section about genome indexing.

# The reference genome.
IDX=refs/genome.fa

# Build the genome index.
hisat2-build $IDX $IDX

# Index the reference genome with samtools.
samtools faidx $IDX

I was wondering about samtools indexing step. I've never seen anyone using it before. Isn't hisat2-build not enough to properly index genome?

samtools index hisat2 rna-seq genome

2 answers

Yes, the HISAT2 indexing step is enough :)

samtools index fasta is required for querying fasta files, extracting regions from fasta file.

Log in to answer this question.