samtools sort error
1
0
Entering edit mode
4.5 years ago

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?

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

This message is not an error. It may be posted to stderr, but it is just telling you the final steps of the sorting (samtools sort splits the reads, sorts these subsets, then merges the sorted subsets) are taking place. If this is accompanied by another message containing the word 'error' or something alike, then it's of course a different situation. If this is the only message, you should have a sorted bamfile after the job finishes.

If you just want to convert bam to sam, you can do samtools view -h $bamfile.

ADD REPLY
0
Entering edit mode
4.5 years ago
ATpoint 85k

That is not an error, just an info message. You are fine. It means that the sort created three temporary files which are now being merged.

ADD COMMENT

Login before adding your answer.

Traffic: 2357 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