samtool sort
1
0
Entering edit mode
2.5 years ago
jiahui • 0

my command :

bowtie2 -x Guy11 -1 Guy11_FDSW210137750-1r_1.clean.fq.gz -2 Guy11_FDSW210137750-1r_2.clean.fq.gz | samtools sort -O bam -@ 5 -o Guy11.bam

and then it got error sort: invalid option -- 'O' open: No such file or directory [bam_sort_core] fail to open file bam Can people help me ?

genomics analysis • 847 views
ADD COMMENT
3
Entering edit mode
2.5 years ago

I suspect your version of samtools is just too old. What is the output of

 samtools 2>&1 | grep Version

?

ADD COMMENT
0
Entering edit mode

you are right! I used conda to install samtools and success!

ADD REPLY

Login before adding your answer.

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