BAM Index process
1
1
Entering edit mode
6.1 years ago

Hi there,

Just wondering, is there somebody can explain how the BAM Index made? I tried to read the samtools code so I can understand how samtools create the index for the BAM file but still don't understand. How actually the creation process of the *.bai file from BAM file?

Cheers!

BAM Index samtools • 1.5k views
ADD COMMENT
1
Entering edit mode
6.1 years ago
h.mon 35k

The SAM/BAM format specification describes the BAM format in detail. About the index. it has sections titled "5.1 Algorithm", "5.1.1 Basic binning index", "5.2 The BAI index format for BAM files" and "5.3 C source code for computing bin number and overlapping bins".

Probably it easier to read and understand than SAMtools code.

ADD COMMENT
0
Entering edit mode

Hi, yeah I read that part. But what about the chunk in each bin? I mean how they are formed? Or based on what the chunk is formed? For example I tried to look on the index file I found 1 bin has 8 chunks but some of them are overlap each other. Just wondering how they were formed

ADD REPLY

Login before adding your answer.

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