Question: How to use R packages in Galaxy tools
0
gravatar for Bjoern Gruening
2.8 years ago by
Bjoern Gruening5.1k
Germany
Bjoern Gruening5.1k wrote:

Hi,

I develop a Galaxy tool that uses the R-package X. What is the recommended way of defining tool dependencies for my tool in Galaxy, so I can use the Tool Shed to distribute and deploy my tool?

Thanks,

Bjoern

dependencies development tools • 1.6k views
ADD COMMENTlink modified 2.8 years ago • written 2.8 years ago by Bjoern Gruening5.1k
3
gravatar for Bjoern Gruening
2.8 years ago by
Bjoern Gruening5.1k
Germany
Bjoern Gruening5.1k wrote:

Hi Björn ;)

You can use the setup_r_environment like we used here:

https://github.com/galaxyproject/tools-iuc/blob/master/packages/package_deseq2_1_8_2/tool_dependencies.xml

You can use this script with small modifications to create you such a file from scratch:

https://github.com/bioarchive/aRchive_source_code/blob/master/get_galaxy_tool_dependencies.py

At least to get started.

An other possibility is to use conda dependencies. So if your R package is already in conda/bioconda you don't need a tool_depenencies.xml file at all. Just specify in your tool requirement tag the conda package name and version and activate conda in Galaxy. This will do the trick. Conda dependency resolvers are available in Galaxy 16.01.

Ciao,
Bjoern

ADD COMMENTlink written 2.8 years 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: 172 users visited in the last hour