view mcl.xml @ 0:60609b076830 draft default tip

"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/mcl commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e-dirty"
author brinkmanlab
date Fri, 24 Jan 2020 18:05:36 -0500
parents
children
line wrap: on
line source

<tool id="mcl" name="MCL" version="14.137" profile="16.04">
    <description>The Markov Cluster Algorithm, a cluster algorithm for graphs</description>
    <edam_topics>
        <edam_topic>topic_3570</edam_topic>
    </edam_topics>
    <edam_operations>
        <edam_operation>operation_3432</edam_operation>
    </edam_operations>
    <requirements>
        <requirement type="package" version="14.137">mcl</requirement>
    </requirements>
    <version_command>mcl --version</version_command>
    <command detect_errors="aggressive"><![CDATA[
    mcl $input_type_select.input -I $inflation $input_type_select.input_type -V all -te \${GALAXY_SLOTS:-1} $sum_loops $discard_loops
    #if $verbosity
        #for $v in $verbosity
            -v $v
        #end for
    #end if
    #if $reweight and $reweight != 1.0
        -c $reweight
    #end if
    #if $transform
        #if $input_type_select.input_type == "--abc"
            -abc-tf "$transform"
        #else if $input_type_select.input_type == ""
            -tf "$transform"
        #end if
    #end if
    -o $output
    ]]></command>
    <inputs>
        <conditional name="input_type_select">
            <param name="input_type" type="select" argument="--abc" label="Input Type">
                <option value="--abc" selected="true">Labeled</option>
                <option value="--sif">SIF</option>
                <option value="">Matrix</option>
            </param>
            <when value="">
                <param type="data" format="mclmat" name="input" argument="input" label="Input" optional="false"/>
            </when>
            <when value="--abc">
                <param type="data" format="tabular" name="input" argument="input" label="Input" optional="false"/>
            </when>
            <when value="--sif">
                <param type="data" format="sif" name="input" argument="input" label="Input" optional="false"/>
            </when>
        </conditional>
        <param name="inflation" type="float" value="4.0" label="Inflation" help="This value is the main handle for affecting cluster granularity. It is usually chosen somewhere in the range [1.2-5.0]. -I 5.0 will tend to result in fine-grained clusterings, and -I 1.2 will tend to result in very coarse grained clusterings. Your mileage will vary depending on the characteristics of your data. That is why it is a good idea to test the quality and coherency of your clusterings using clm dist and clm info. This will most likely reveal that certain values of -I are simply not right for your data." />
        <param name="transform" type="text" area="true" label="Transform input matrix values" help="See https://micans.org/mcl/man/mcxio.html#trans for the transformation syntax" />
        <param name="discard_loops" type="boolean" checked="true" truevalue="" falsevalue="--discard-loops=n" argument="--discard-loops" label="Discard loops in input" help="Remove any loops that are present in the input. Bear in mind that loops will still be modified in all cases where the loop weight is not maximal among the list of edge weights for a given node." />
        <param name="sum_loops" type="boolean" checked="false" truevalue="--sum-loops" falsevalue="" argument="--sum-loops" label="Set loops to sum of other arcs weights"  />
        <param name="reweight" type="float" value="1" argument="-c" optional="true" label="Reweight loops" help="As the final step of loop computation (i.e. after initialization and shadowing) all loop weights are multiplied by the provided value." />
        <param name="verbosity" type="select" multiple="true" optional="true" label="Verbosity">
            <option value="pruning">pruning</option>
            <option value="explain">explain</option>
            <option value="cls">cls</option>
        </param>
    </inputs>
    <outputs>
        <data format="txt" name="output">
            <change_format>
                <when input="input_type_select.input_type" value="" format="mclmat" />
                <when input="input_type_select.input_type" value="--abc" format="tabular" />
                <when input="input_type_select.input_type" value="--sif" format="tabular" />
            </change_format>
        </data>
    </outputs>
	<tests>
		<test expect_num_outputs="1">
		    <conditional name="input_type_select">
		        <param name="input_type" value="--abc" />
		        <param name="input" value="test-data/mash-dist.tabular" ftype="tabular" />
		    </conditional>
		    <param name="transform" value="mul(-1),add(1),gq(0.96)" />
		    <output name="output" file="test-data/mash-dist-cluster.tabular" ftype="tabular" />
		</test>
	</tests>
    <help>
    https://micans.org/mcl/man/mcl.html
    </help>
    <citations>
        <citation type="doi">10.5281/zenodo.3364789</citation>
        <citation type="bibtex"><![CDATA[
        @article{dongen29graph,
          title={Graph Clustering by Flow Simulation. 2000},
          author={Dongen, SV},
          journal={Domplein},
          volume={29},
          pages={3512}
        }
        ]]></citation>
        <citation type="doi">10.1093/nar/30.7.1575</citation>
    </citations>
</tool>