I would like to use the --default-resources
parameter for profiles which is available in later versions of snakemake.
To install snakemake, I created a new conda environment:
conda create -n snakemake -c conda-forge -c bioconda snakemake
The currently installed version is listed as 5.14:
$ conda activate snakemake
(snakemake)$ conda list | grep snakemake
# packages in environment at /home/uvi/be/hde/.conda/envs/snakemake:
snakemake 5.14.0 0 bioconda
snakemake-minimal 5.14.0 py_1 bioconda
However, command line tool says it is on version 5.1.4:
(snakemake)$ snakemake --version
5.1.4
This version does not know the new parameter --default-resources
yet. So it gives an error when using it
snakemake: error: unrecognized arguments: --default-resources partition = "thin-shared"
I already checked that I'm running the executable from inside the environment, rather than a different, external one:
(snakemake)$ which snakemake
~/.conda/envs/snakemake/bin/snakemake
(snakemake)$ $(which snakemake) --version
5.1.4
python -c "import snakemake; print(snakemake.__file__)"
? $\endgroup$/home/uvi/be/hde/.local/lib/python3.6/site-packages/snakemake/__init__.py
Hah! That's not the version inside the conda environment. $\endgroup$