Tophat & IGV viewing
0
1
Entering edit mode
9.0 years ago
aleka ▴ 110

Hi, I got the accepted_hits.bam from tophat, I created the index with samtools and then I created in IGV a genome using the reference fasta and gtf file for my species (staphylococcus aureus) and once I load the accepted_hits.bam file, IGV gives me an error.

Any idea why?

next-gen-sequencing rna-seq alignment • 3.1k views
ADD COMMENT
2
Entering edit mode

It certainly wouldn't hurt to post the error message.

ADD REPLY
0
Entering edit mode

I got exactly the same kind of error, which is the standard "Could not load index file for: /media/gigiux/float_ngs/mtb/samp1/accepted_hits.bam An index file is required for SAM & BAM files". Aleka, did you get any feedback on this issue?

ADD REPLY
0
Entering edit mode

A reason why IGV does not open the accepted_hits.bam might be that it has to be indexed with samtools first, as I have found out in this link. What are the command lines to do that I don't know yet...

ADD REPLY
0
Entering edit mode

The way I did is goes like this. Mapping on IGV requires the creation of sorted and indexed files with samtools (sort gives the .bam extension automatically; index creates a .bam.bai file that works as reference for the .bam; both .bam and .bam.bai need to have the same root name; IGV loads the .bam but then uses the .bam.bai internally):

samtools sort <accepted_hits.bam> <sort>
samtools index <sort.bam>
ADD REPLY
0
Entering edit mode

Hi Aleka, Where to download GTF file for Staphylococcus aureus? Thanks.

ADD REPLY

Login before adding your answer.

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