Error while doing indexing of fasta file using SAMTOOL faidx
2
0
Entering edit mode
7.3 years ago
Bioinfonext ▴ 460

I am trying to do indexing of a CDS fasta file, I am geeting error:

[root@psgl BWA]# /home/yog/software/samtools-1.3.1/samtools faidx Radish_cds.fasta
[fai_build_core] different line length in sequence 'Rs276960'.
Could not build fai index Radish_cds.fasta.fai

Please suggest how I can resolve it.

Yogesh

RNA-Seq • 6.8k views
ADD COMMENT
0
Entering edit mode

Did you take a look at that sequence in question? It may be just a case of a broken fasta record.

ADD REPLY
3
Entering edit mode
7.3 years ago
Ram 43k

The error looks pretty clear - Your sequences may be of unequal length in different lines. Why an indexer does not auto-normalize (or at least provide an option for it), I do not know.

Try using NormalizeFasta on the file before indexing it.

ADD COMMENT
2
Entering edit mode
7.3 years ago

SeqKit

seqkit seq -w 70 s.fa > s2.fa
ADD COMMENT

Login before adding your answer.

Traffic: 2552 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6