Unable to find FASTA index entry for '1'
1
0
Entering edit mode
5.0 years ago
ja4123 ▴ 30

Hey, I have a sorted and indexed .bam file, and I am running it through freebayes, with the script :

freebayes -f ref.fa -@ in.vcf.gz aln.bam >var.vcf

very time I run this script I get the:

unable to find FASTA index entry for '1'

Even know I have the index files.

I have the correct Bam file (downloaded from here: https://www.internationalgenome.org/data-portal/sample/NA12878) and index files and it just continually throws the indexing error. What could be the problem here?

freebayes fasta vcf bam • 3.4k views
ADD COMMENT
2
Entering edit mode
5.0 years ago

I'm pretty sure your VCF contains chromosomes named 1, 2,3,4... while the fasta uses a chr prefix "chr1","chr2","chr3",...

ADD COMMENT
0
Entering edit mode

There is some quick way to change prefix in one of that two files?

ADD REPLY
2
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 1949 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