I am trying to use samtools sort function to sort a bam file (named as PT2) (size 180 megabite), which is not large. The sorting never end and no error message appeared. I have checked the memory of the VM Ubunto using (meminfo file in the proc folder on the home account). Also I have around 80 gig disc space
First code (extremely slow) :
samtools sort -o outputs/PT2_sorted.bam outputs/PT2.bam
second code (very slow):
samtools sort -o outputs/PT2_sorted.bam outputs/PT2.bam
What do you think is a reason behind this slow working ? any advice ?
Thanks
try to set the following options:
Thanks can you provide a full code line ?
Thanks
from the above suggestion
u can change -m value.
That should be finished in like no time. Is the process even running? Use
top
to check. Please add comments viaADD REPLY
.what is top top check
Please use google and search for "linux top command". It shows you memory/CPU footprint of each running process, like Task Manager (Windows)/ Activity Monitor (macOS).
top to check, sorry was a typo, just open a terminal and type
top
, this shows an overview of active processes, and you should see samtools somewhere on top if it is running.