bam file sorted by "-n" was not accepted by qualimap
1
0
Entering edit mode
6.4 years ago
Yingzi Zhang ▴ 90

Hey guys, I was using qualimap to estimate the features of a .bam file. I input the .bam file and it reported like this:

Failed to run bamqc java.lang.RuntimeException: The alignment file is unsorted. Please sort the BAM file by coordinate.

My raw data are hiseq 2000 100bp x 2 short reads, I thought I could only sort them by using "-n" parameter. So I sorted them by samtools sort -l 9 -o output -n -@ 40 input Then I used qualimap like this qualimap --java-mem-size=700G bamqc -bam .mem.srt.bam -gff <dirpath/.gff> -oc .count.matrix -outdir </bamqc> -outformat PDF:HTML Is my code wrong? how should I fix it please? Thank you.

alignment • 2.3k views
ADD COMMENT
0
Entering edit mode

Hey guys

And what about non-guys? Please use neutral words :)

ADD REPLY
0
Entering edit mode

okay, thanks for reminding :P

ADD REPLY
4
Entering edit mode
6.4 years ago
GenoMax 147k

Then try without the -n parameter. Name sorted files are only needed for some specific purposes (if you were converting them to fastq for example). Normally BAM files are co-ordinate sorted and that is how qualimap wants them for producing stats.

On a different note: you are allocating 700G for a qualimap run? Are your files TB+ is size?

ADD COMMENT
0
Entering edit mode

It worked fine without the -n. Thank you very much. I allocated 700G for the both situations because I don't know how much space java need. So just kind of in case. Would it be stupid? I later found I should do multi-bamqc. The bam files are 324G in total. And still I allocated 700G. Any advice please?

ADD REPLY

Login before adding your answer.

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