Home > Community > Error using htseq-count: Could not retrieve index file
Upvote

26

Downvote
+ Bioinformatics
+ Rna-seq
Posted by
Mustafa Direk

Error using htseq-count: Could not retrieve index file

Andrew Forrest  Follow

The problem seems to be missing index files of the bam files (therefore the error message that the index file is missing). You should be able to generate those with samtools, e.g.

samtools index ./OVCA429_587680_1_1.rnaseq.fastqAligned.sortedByCoord.out.bam

More

Upvote

VOTE

Downvote
Eric Paige  Follow
. You probably created a bunch of files More
Upvote

VOTE

Downvote
Joshua Kabwe  Follow
that replaced each other.More
Upvote

VOTE

Downvote
John  Follow
Ah, I did not even think this could be a problem as samtools do not give you an option to give it a different name. GLad you resolved it!More
Upvote

VOTE

Downvote
E. Milton Wilson  Follow
I have created the index using what Kamil suggested but I am not able to generate the counts file. This is what I use: More
Upvote

VOTE

Downvote
Icy Pisces  Follow
As it happens I did have the index file as well, I just ended up naming it differently and so the application probably didn't recognise it. Once I changed the name to match the bam file, it worked out perfectly file. Nevertheless, thank you for your help! :)More
Upvote

VOTE

Downvote
more replies