[faidx] Could not build fai index reference.fa.fai

when i use Samtools, it show this error , is anyone can help on this ? thanks a lot.

[faidx] Could not build fai index reference.fa.fai

Hi @linsen_hou

This means that the fasta could not be indexed for some reason. Meaning: there is likely some problem with the overall fasta formatting, and possibly the content of the sequences.

Maybe check the format against this FAQ? Those focus on custom genomes, but the same formatting rules apply for most fasta files.