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

Hello,

Is there a reserved variable name like $__tool_directory__ for conda_prefix that can be accessed in the command section in an xml? A tool_script.sh 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
1
gravatar for Bjoern Gruening
4 months ago by
Bjoern Gruening5.1k
Germany
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.

Help
Access

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