view macros.xml @ 1:840822c1e84a draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/blobtoolkit commit 797eb67eae4dfe502325c53f78824c5ba4033955
author bgruening
date Mon, 20 Mar 2023 16:37:54 +0000
parents 7d9ee8cd14b8
children 53dd00a4ab68
line wrap: on
line source

<macros>
    <token name="@TOOL_VERSION@">4.0.7</token>
    <token name="@VERSION_SUFFIX@">0</token>
    
    <xml name="requirements">
        <requirements>
            <container type="docker">genomehubs/blobtoolkit:@TOOL_VERSION@</container>
        </requirements>
    </xml>
    <xml name="citations">
        <citations>
            <citation type="doi">10.1534/g3.119.400908</citation>
        </citations>
    </xml>
    <xml name="macro_text_input" >
        <conditional name="text_input">
            <param name="selector" type="select" label="Genetic text file" help="Include a genetic text file as input">
                <option value="enabled">Enabled</option>
                <option value="disabled" selected="true">Disabled</option>
            </param>
            <when value="enabled">
                <param argument="--text" type="data" format="txt" label="Generic text file"/>
                <param argument="--text-cols" type="text" value="" label="Column specification" help="Example: 1=identifiers,2,3=score,total=total_score">
                    <sanitizer invalid_char="">
                        <valid initial="string.letters,string.digits">
                            <add value="_" />
                            <add value="," />
                            <add value="=" />
                            <add value="-" />
                            <add value="#" />
                        </valid>
                    </sanitizer>
                    <validator type="regex">[0-9a-zA-Z=,_#-]+</validator>
                </param>
                <param argument="--text-header" type="boolean" truevalue="--text-header" falsevalue="" checked="false" label="Text has header row" help="Set the flag if a text file contains a header row" />
                <param argument="--text-delimiter" type="select" label="Text delimiter" help="Character used as delimiter in the text file">
                    <option value=",">Comma</option>
                    <option value="\t">Tabulation</option>
                    <option value="whitespace">Whitespace</option>
                </param>
                <yield/>
            </when>
            <when value="disabled"/>
        </conditional>

    </xml>
</macros>