Closed xmy1990 closed 2 weeks ago
As you are installing via bioconda
, this is more a bioconda
issue, than a samtools
/ htslib
issue. So let me try to point you to some things:
samtools
available via bioconda
(currently v.1.20
), this will nowadays ensure that the versions of samtools and the htslib used match up, see here:
https://bioconda.github.io/recipes/samtools/README.html?highlight=samtools#package-package%20'samtools'
And I think, based on this PR, that this version matching should at least work since samtools version 1.18 (maybe also some earlier versions, but I haven't checked and don't fully grasp the intricacies of the run_exports involved):
https://github.com/bioconda/bioconda-recipes/pull/43476$ mamba create -n test samtools=1.11 htslib=1.11
$ mamba activate test
$ samtools --version
samtools 1.11
Using htslib 1.11
Copyright (C) 2020 Genome Research Ltd.
Yes, this is a question for bioconda-recipes. The samtools developers are not involved in packaging samtools for conda.
And please, unless you have a good reason not to, try to use the latest version (currently 1.20). It includes a number of bug fixes that have gone in since 1.11, and will be much more reliable.
Thank you so much for your prompt and professional response, which helped me solve the problem. @https://github.com/dlaehnemann@https://github.com/daviesrob
Hi, I use below method to install samtools,
conda install -c bioconda samtools=1.11
then, samtools was installed as : Version: 1.11 (using htslib 1.12)
But i need Version: 1.11 (using htslib 1.11)
How to control the version of htslib, when i install samtools wtih conda install -c bioconda samtools=1.11
Thanks