Using igvtools count with bam anf bam.bai files
1
0
Entering edit mode
3.5 years ago
Bella_p ▴ 60

Hi all,

I'm a beginner with using igv, and I have .bam file and it's .bam.bai file, that I created using samtools index. Is igvtools count accepts both files (bam and bam.bai)? according to the wesbite: "Supported input file formats are: .sam, .bam, .aligned, .psl, .pslx, and .bed." can't see anything about bam.bai...maybe I'm confusing with IGV visualization? Can someone please explain it to me? I think I'd like to use igvtools count to get the counting hits in my Chip-seq experiment and to use IGV visualization to visualize it. also, the output for igvtools count is .bed file? then I'll be able to use it for IGV visualization?

Appreciate any help!!!

ChIP-Seq igvtools sequencing • 1.3k views
3
Entering edit mode
3.5 years ago
h.mon 33k

The .bam file contains the mapping information (hence the information that will be used for counting and plotting), the .bam.bai is a index for the corresponding position-sorted .bam. The .bam.bai does not contain any information about read mapping, but it is often required so the .bam can be used by downstream tools.

0
Entering edit mode

Thanks! Is it needed for igvtools count? or IGV visualization? and how is it different from .bed file?

1
Entering edit mode

Yes, it is needed, but I believe if IGV does not find the .bam.bai, it will automatically index the .bam for you.