Hi,
I'm having trouble sorting a bam file. I give the following command.
samtools sort -m 40G -o file.bam file.sorted
But I get lot of binary code displayed. I understand that it happens sometimes when you have insufficient memory. But I have given a memory of 40G and the bam file is only 250MB.
Can anyone tell what I'm doing wrong? Thanks!
have you just tried " samtools sort file.bam file.sort
Somehow I didn't think of that simple way of doing it! And it worked. Thanks!