Size difference between Bam file and sort-bam file
1
0
Entering edit mode
3.2 years ago

Hi all,

My Bam Files Size is (33,831,754 kb), after sort Its size (24,478,862 kb). I want to know that it's right?

Thanks

Mostafa

SNP • 2.6k views
ADD COMMENT
0
Entering edit mode

Compression level is probably different. Check with this command on both files to see if you lost reads. Did you apply any filters in the sort command, please provide the full command.

samtools flagstat in.bam
ADD REPLY
0
Entering edit mode

code I use:

samtools sort /home/m.rafiepour222/SRR3112430.bam SRR3112430-sort.bam
ADD REPLY
0
Entering edit mode

As I said, simply use flagstat to see if you lost any reads. If not, you'll be fine.

ADD REPLY
2
Entering edit mode
3.2 years ago
Martombo ★ 2.7k

that's expected, a sorted bam file can be further compressed than an unsorted one

ADD COMMENT
0
Entering edit mode

Ok, So my sorted bam file do not have a problem?

ADD REPLY

Login before adding your answer.

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