This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Sorting BAM files never fully finished

I have some large BAM files that were created based on large indexes. I trying to sort and index them and threading the sort with 36 threads and 180GB of memory. For some of my files the sort keeps getting stuck (see image). Is there away without increasing the memory to sort, to move past this to sort?

enter image description here

mapping samtools

1 answer

That is all the same file. Once memory is full samtools starts spilling chunks to disk which eventually will be merged into the output file and then will be deleted. You'll simply need to wait until finished.

Log in to answer this question.