Can't get samtools version: "unrecognized command"
1
0
Entering edit mode
7.5 years ago
ariel.balter ▴ 260

The docs say to use --version, but I'm getting uncrecognized command

balter@exalab3:~$ which samtools
/usr/local/bin/samtools
balter@exalab3:~$ samtools --version
[main] unrecognized command '--version'
balter@exalab3:~$ samtools --version-only
[main] unrecognized command '--version-only'
samtools • 13k views
ADD COMMENT
4
Entering edit mode

You probably have an older version of samtools (likely v.0.1.1x) otherwise you should see this with newer samtools

$ samtools --version
samtools 1.3.1
Using htslib 1.3.1
Copyright (C) 2016 Genome Research Ltd.

You can confirm this by using @Brice's method below.

ADD REPLY
0
Entering edit mode

Indeed. Understanding --version and --version-only was something we added on the way from 0.1.19 to 1.0 (in c4d398b9).

ADD REPLY
5
Entering edit mode
7.5 years ago
Brice Sarver ★ 3.8k

Type samtools without any arguments. It will display the version at the top.

ADD COMMENT
0
Entering edit mode

Bingo! Version: 0.1.19

ADD REPLY

Login before adding your answer.

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