I was sorting a hug BAM file using
While merging from temp files
it was killed 'cos lack of memory...
So I checked the temp files and found that I could not simply use samtools merge to merge those temp files 'cos they were not in order
What shall I do if I just don't wanna start over again...*
Code:
samtools sort -@ 5 -m 4G <in.bam> <out.prefix>
Code:
[bam_sort_core] merging from 630 files...
So I checked the temp files and found that I could not simply use samtools merge to merge those temp files 'cos they were not in order
What shall I do if I just don't wanna start over again...*
Comment