Question: Reserved variable for conda env in XML?
gravatar for asmariyaz23
4 months ago by
United States
asmariyaz2310 wrote:


Is there a reserved variable name like $__tool_directory__ for conda_prefix that can be accessed in the command section in an xml? A is written when tool is executed which assigns the conda environment to a variable named $CONDA_DEFAULT_ENV. I would like to use that in the xml. How do I do this?

Thank you, Asma

reserved_variable conda xml • 206 views
ADD COMMENTlink modified 4 months ago by Bjoern Gruening5.1k • written 4 months ago by asmariyaz2310
gravatar for Bjoern Gruening
4 months ago by
Bjoern Gruening5.1k
Bjoern Gruening5.1k wrote:

Hi Asma,

we do not have such a variable. Please keep in mind that Conda is just one of many dependency resolvers, and a tool should be written in a way that it is independent of Conda. For example you could run your tool in Docker or Singularity without Conda.

What is your concrete use-case? You could use something like this instead:

export SAMTOOLS_PATH=`which samtools`
ADD COMMENTlink written 4 months ago by Bjoern Gruening5.1k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 173 users visited in the last hour