samtools sort error: [bam_sort_core] merging from 3 files and 1 in-memory blocks...
1
0
Entering edit mode
6.8 years ago
Joe ▴ 40

Hi there,

When I run script "samtools sort -n -O SAM $bamfile", an error appeared as "[bam_sort_core] merging from 3 files and 1 in-memory blocks..." and the output file is empty? I have checked the memory and it is sufficient (256G memory can be used for the 2 G file ). Anyone can help?

Joe

software error • 8.5k views
ADD COMMENT
0
Entering edit mode

Hi I have same problem pleas help me? Do you solve your problem? I want convert sam file to txt file but i dont know how?

ADD REPLY
0
Entering edit mode

Hi I want convert sam file to txt file but i dont know how? When I run script "samtools sort -n -O SAM $bamfile", an error appeared as "[bam_sort_core] merging from 3 files and 1 in-memory blocks... How solve this problem?

ADD REPLY
0
Entering edit mode

What version of samtools are you running?

I want convert sam file to txt file but i dont know how?

SAM file is already in text format. No conversion is needed.

ADD REPLY
2
Entering edit mode
6.8 years ago
GenoMax 147k

If you are running the latest samtools then the command should be samtools sort -n -o sorted.bam input.bam (if you want file name sorted). For a 2GB file you should not need to mess with memory settings.

ADD COMMENT

Login before adding your answer.

Traffic: 2377 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6