samtools sort failed to merge tmp .bam file
0
0
Entering edit mode
6.3 years ago
johnnytam100 ▴ 110

I tried to sort a .bam file with the following command

/data/tam/script/bwa.kit/samtools sort libTTNRgenomemaster_map_lotusgenome.bam > libTTNRgenomemaster_map_lotusgenome.sorted.bam

The following error, together with many ...bam.tmp.XXXX.bam files were generated (XXXX up to 1491)

[bam_sort_core] merging from 1492 files...
[E::hts_open_format] fail to open file 'libTTNRgenomemaster_map_lotusgenome.bam.tmp.1020.bam'

Related threads were read but not helpful.

Any idea how to solve this problem?

Thanks.

samtools bwa bam • 4.0k views
ADD COMMENT
2
Entering edit mode

Did you run out of space on the disk? How much memory do you have? You could try assigning more memory to sort with -m option. Post the output of ulimit -n.

ADD REPLY
0
Entering edit mode

Hi, i am also having the same issue. THe output of ulimit -n is 1024 Thanks

ADD REPLY

Login before adding your answer.

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