Hi, I'm new in bioinformatics and have a childish question about samtools~
I have 2 BAM files of the same specie, File1.bam is 286.0 MB, File2.bam is 674.8 MB.
samtools merge File_1p2.bam -c File1.bam File2.bam
After running this, File_1p2.bam is 983.0 MB bigger than the SUM of File1 and File2.
WHY??
Thank you in advance~
The size of BAM file doesn't necessarily need to be consistent with the number of reads, you should use command like samtools flagstat to see whether the number of reads in merged file = sum of those in File1/2
Thanks for this clarification!
Try sorting
File_1p2.bam
. That should reduce the size.