view macros.xml @ 2:acc6f509968c draft

planemo upload for repository https://github.com/labsyspharm/basic-illumination commit 72a33d7c3ad18e717ec61c6b845099d69b9b7abd
author goeckslab
date Tue, 20 Sep 2022 17:34:14 +0000
parents db20f09300bd
children 7ee5b6f7533e
line wrap: on
line source

<?xml version="1.0"?>
<macros>
    <xml name="requirements">
        <requirements>
            <container type="docker">labsyspharm/basic-illumination:@TOOL_VERSION@</container>
        </requirements>
    </xml>

    <xml name="version_cmd">
        <version_command>echo @TOOL_VERSION@</version_command>
    </xml>
    <xml name="citations">
        <citations>
            <citation type="doi">10.1038/ncomms14836</citation>
        </citations>
    </xml>

    <token name="@TOOL_VERSION@">1.0.3</token>
    <token name="@VERSION_SUFFIX@">1</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>