Mercurial > repos > perssond > basic_illumination
diff macros.xml @ 1:db20f09300bd draft
planemo upload for repository https://github.com/labsyspharm/basic-illumination commit d62977a02ee6e0e5100479d6d7b19eb4a8cf9761
author | goeckslab |
---|---|
date | Thu, 01 Sep 2022 22:46:21 +0000 |
parents | fd8dfd64f25e |
children | acc6f509968c |
line wrap: on
line diff
--- a/macros.xml Fri Mar 12 00:13:46 2021 +0000 +++ b/macros.xml Thu Sep 01 22:46:21 2022 +0000 @@ -2,19 +2,38 @@ <macros> <xml name="requirements"> <requirements> - <requirement type="package" version="3.8">python</requirement> - <requirement type="package" version="1.0.2">basic-illumination</requirement> + <container type="docker">labsyspharm/basic-illumination:@TOOL_VERSION@</container> </requirements> </xml> <xml name="version_cmd"> - <version_command>echo @VERSION@</version_command> + <version_command>echo @TOOL_VERSION@</version_command> </xml> <xml name="citations"> <citations> + <citation type="doi">10.1038/ncomms14836</citation> </citations> </xml> - <token name="@VERSION@">1.0.2</token> - <token name="@CMD_BEGIN@">ImageJ --ij2 --headless --run ${__tool_directory__}/imagej_basic_ashlar.py</token> + <token name="@TOOL_VERSION@">1.0.3</token> + <token name="@VERSION_SUFFIX@">0</token> + <token name="@PROFILE@">19.01</token> + <token name="@CMD_BEGIN@"><![CDATA[ + ## if ImageJ isn't already present, this is the docker-dependency version + ## as such, ImageJ needs to be registered as a global executable on $PATH + + if ! [ -x "\$(which ImageJ)" ]; then + ln -sf "\$(which ImageJ-linux64)" "ImageJ"; + export PATH="\$PATH:\$(pwd)/"; + fi && + + BASIC_SCRIPT="" && + if [ -f "/opt/fiji/imagej_basic_ashlar.py" ]; then + export BASIC_SCRIPT="/opt/fiji/imagej_basic_ashlar.py"; + else + export BASIC_SCRIPT="${__tool_directory__}/imagej_basic_ashlar.py"; + fi && + + ImageJ --ij2 --headless --run \$BASIC_SCRIPT + ]]></token> </macros>