changeset 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
files mcl.xml test-data/mash-dist-cluster.tabular test-data/mash-dist.tabular
diffstat 3 files changed, 276 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mcl.xml	Fri Jan 24 18:05:36 2020 -0500
@@ -0,0 +1,95 @@
+<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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/mash-dist-cluster.tabular	Fri Jan 24 18:05:36 2020 -0500
@@ -0,0 +1,25 @@
+NC_018080:1219150-1228065	NZ_CP006982:1349036-1357950	NC_011770:1349314-1358228	NZ_CH482384:3522883-3535764	NC_023066:1307166-1316080
+NZ_CP006982:2515161-2560181	NC_011770:2515458-2560479	NC_023066:2473255-2518276
+NZ_CP006982:1426904-1435435	NC_011770:1427182-1435713	NC_023066:1385033-1404279
+NZ_CP006982:1688543-1719942	NC_011770:1688837-1720236	NC_023066:1646675-1678074
+NZ_CP006982:3729016-3741559	NC_011770:3740004-3756742	NC_023066:3687227-3703965
+NZ_CP006982:4534025-4544361	NC_011770:4545250-4555586	NC_023066:4492492-4502828
+NC_011770:1813155-1825882	NC_023066:1770993-1783719
+NC_018080:1835838-1864566
+NC_018080:2295622-2341922
+NZ_CH482384:2093396-2161044
+NZ_CH482384:2347090-2383672
+NC_018080:2505749-2544853
+NZ_CH482384:2412085-2463519
+NZ_CH482384:2604522-2648798
+NC_018080:3063386-3089126
+NC_008463:1306242-1328974
+NC_018080:3112559-3125790
+NC_018080:5102592-5114199
+NZ_CH482384:6133302-6143599
+NC_018080:6079594-6097882
+NC_008463:1917629-1944257
+NC_002516:782569-792993
+NC_002516:692897-707366
+NZ_CH482384:6673834-6697328
+NZ_CH482384:1100815-1136673
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/mash-dist.tabular	Fri Jan 24 18:05:36 2020 -0500
@@ -0,0 +1,156 @@
+NC_018080:1219150-1228065	NC_018080:1219150-1228065	0
+NZ_CP006982:1349036-1357950	NC_018080:1219150-1228065	0.0037263
+NC_011770:1349314-1358228	NC_018080:1219150-1228065	0.0037263
+NZ_CH482384:3522883-3535764	NC_018080:1219150-1228065	0.0323015
+NC_023066:1307166-1316080	NC_018080:1219150-1228065	0.0037263
+NC_018080:1835838-1864566	NC_018080:1835838-1864566	0
+NC_018080:2295622-2341922	NC_018080:1835838-1864566	0.149777
+NZ_CP006982:2515161-2560181	NC_018080:1835838-1864566	0.210897
+NC_011770:1813155-1825882	NC_018080:1835838-1864566	0.136948
+NC_011770:2515458-2560479	NC_018080:1835838-1864566	0.210897
+NC_023066:1770993-1783719	NC_018080:1835838-1864566	0.136948
+NC_023066:2473255-2518276	NC_018080:1835838-1864566	0.210897
+NC_018080:1835838-1864566	NC_018080:2295622-2341922	0.149777
+NC_018080:2295622-2341922	NC_018080:2295622-2341922	0
+NZ_CP006982:2515161-2560181	NC_018080:2295622-2341922	0.0786628
+NC_011770:1813155-1825882	NC_018080:2295622-2341922	0.147707
+NC_011770:2515458-2560479	NC_018080:2295622-2341922	0.0786628
+NZ_CH482384:2093396-2161044	NC_018080:2295622-2341922	0.080322
+NZ_CH482384:2347090-2383672	NC_018080:2295622-2341922	0.295981
+NC_023066:1770993-1783719	NC_018080:2295622-2341922	0.147707
+NC_023066:2473255-2518276	NC_018080:2295622-2341922	0.0786628
+NC_018080:2505749-2544853	NC_018080:2505749-2544853	0
+NZ_CH482384:2412085-2463519	NC_018080:2505749-2544853	0.101551
+NZ_CH482384:2604522-2648798	NC_018080:2505749-2544853	0.263022
+NC_018080:3063386-3089126	NC_018080:3063386-3089126	0
+NC_008463:1306242-1328974	NC_018080:3063386-3089126	0.295981
+NC_018080:3112559-3125790	NC_018080:3112559-3125790	0
+NC_018080:5102592-5114199	NC_018080:5102592-5114199	0
+NZ_CH482384:6133302-6143599	NC_018080:5102592-5114199	0.0539403
+NC_018080:6079594-6097882	NC_018080:6079594-6097882	0
+NC_018080:3063386-3089126	NC_008463:1306242-1328974	0.295981
+NC_008463:1306242-1328974	NC_008463:1306242-1328974	0
+NC_008463:1917629-1944257	NC_008463:1917629-1944257	0
+NC_018080:1219150-1228065	NZ_CP006982:1349036-1357950	0.0037263
+NZ_CP006982:1349036-1357950	NZ_CP006982:1349036-1357950	0
+NC_011770:1349314-1358228	NZ_CP006982:1349036-1357950	0
+NZ_CH482384:3522883-3535764	NZ_CP006982:1349036-1357950	0.0297077
+NC_023066:1307166-1316080	NZ_CP006982:1349036-1357950	0
+NZ_CP006982:1426904-1435435	NZ_CP006982:1426904-1435435	0
+NC_011770:1427182-1435713	NZ_CP006982:1426904-1435435	0
+NC_023066:1385033-1404279	NZ_CP006982:1426904-1435435	0.0246831
+NZ_CP006982:1688543-1719942	NZ_CP006982:1688543-1719942	0
+NC_011770:1688837-1720236	NZ_CP006982:1688543-1719942	0
+NC_023066:1646675-1678074	NZ_CP006982:1688543-1719942	0
+NC_018080:1835838-1864566	NZ_CP006982:2515161-2560181	0.210897
+NC_018080:2295622-2341922	NZ_CP006982:2515161-2560181	0.0786628
+NZ_CP006982:2515161-2560181	NZ_CP006982:2515161-2560181	0
+NC_011770:1813155-1825882	NZ_CP006982:2515161-2560181	0.219531
+NC_011770:2515458-2560479	NZ_CP006982:2515161-2560181	4.76906e-05
+NZ_CH482384:2093396-2161044	NZ_CP006982:2515161-2560181	0.0920479
+NC_023066:1770993-1783719	NZ_CP006982:2515161-2560181	0.219531
+NC_023066:2473255-2518276	NZ_CP006982:2515161-2560181	4.76906e-05
+NZ_CP006982:3729016-3741559	NZ_CP006982:3729016-3741559	0
+NC_011770:3740004-3756742	NZ_CP006982:3729016-3741559	0.00755945
+NC_023066:3687227-3703965	NZ_CP006982:3729016-3741559	0.00766986
+NZ_CP006982:4534025-4544361	NZ_CP006982:4534025-4544361	0
+NC_011770:4545250-4555586	NZ_CP006982:4534025-4544361	0
+NC_002516:782569-792993	NZ_CP006982:4534025-4544361	0.12214
+NC_023066:4492492-4502828	NZ_CP006982:4534025-4544361	0
+NC_018080:1219150-1228065	NC_011770:1349314-1358228	0.0037263
+NZ_CP006982:1349036-1357950	NC_011770:1349314-1358228	0
+NC_011770:1349314-1358228	NC_011770:1349314-1358228	0
+NZ_CH482384:3522883-3535764	NC_011770:1349314-1358228	0.0297077
+NC_023066:1307166-1316080	NC_011770:1349314-1358228	0
+NZ_CP006982:1426904-1435435	NC_011770:1427182-1435713	0
+NC_011770:1427182-1435713	NC_011770:1427182-1435713	0
+NC_023066:1385033-1404279	NC_011770:1427182-1435713	0.0246831
+NZ_CP006982:1688543-1719942	NC_011770:1688837-1720236	0
+NC_011770:1688837-1720236	NC_011770:1688837-1720236	0
+NC_023066:1646675-1678074	NC_011770:1688837-1720236	0
+NC_018080:1835838-1864566	NC_011770:1813155-1825882	0.136948
+NC_018080:2295622-2341922	NC_011770:1813155-1825882	0.147707
+NZ_CP006982:2515161-2560181	NC_011770:1813155-1825882	0.219531
+NC_011770:1813155-1825882	NC_011770:1813155-1825882	0
+NC_011770:2515458-2560479	NC_011770:1813155-1825882	0.219531
+NC_023066:1770993-1783719	NC_011770:1813155-1825882	0.000434439
+NC_023066:2473255-2518276	NC_011770:1813155-1825882	0.219531
+NC_018080:1835838-1864566	NC_011770:2515458-2560479	0.210897
+NC_018080:2295622-2341922	NC_011770:2515458-2560479	0.0786628
+NZ_CP006982:2515161-2560181	NC_011770:2515458-2560479	4.76906e-05
+NC_011770:1813155-1825882	NC_011770:2515458-2560479	0.219531
+NC_011770:2515458-2560479	NC_011770:2515458-2560479	0
+NZ_CH482384:2093396-2161044	NC_011770:2515458-2560479	0.0920479
+NC_023066:1770993-1783719	NC_011770:2515458-2560479	0.219531
+NC_023066:2473255-2518276	NC_011770:2515458-2560479	0
+NZ_CP006982:3729016-3741559	NC_011770:3740004-3756742	0.00755945
+NC_011770:3740004-3756742	NC_011770:3740004-3756742	0
+NC_023066:3687227-3703965	NC_011770:3740004-3756742	7.15897e-05
+NZ_CP006982:4534025-4544361	NC_011770:4545250-4555586	0
+NC_011770:4545250-4555586	NC_011770:4545250-4555586	0
+NC_002516:782569-792993	NC_011770:4545250-4555586	0.12214
+NC_023066:4492492-4502828	NC_011770:4545250-4555586	0
+NC_002516:692897-707366	NC_002516:692897-707366	0
+NZ_CH482384:6673834-6697328	NC_002516:692897-707366	0.295981
+NZ_CP006982:4534025-4544361	NC_002516:782569-792993	0.12214
+NC_011770:4545250-4555586	NC_002516:782569-792993	0.12214
+NC_002516:782569-792993	NC_002516:782569-792993	0
+NC_023066:4492492-4502828	NC_002516:782569-792993	0.12214
+NZ_CH482384:1100815-1136673	NZ_CH482384:1100815-1136673	0
+NZ_CH482384:6673834-6697328	NZ_CH482384:1100815-1136673	0.140258
+NC_023066:1385033-1404279	NZ_CH482384:1100815-1136673	0.295981
+NC_018080:2295622-2341922	NZ_CH482384:2093396-2161044	0.080322
+NZ_CP006982:2515161-2560181	NZ_CH482384:2093396-2161044	0.0920479
+NC_011770:2515458-2560479	NZ_CH482384:2093396-2161044	0.0920479
+NZ_CH482384:2093396-2161044	NZ_CH482384:2093396-2161044	0
+NC_023066:2473255-2518276	NZ_CH482384:2093396-2161044	0.0920479
+NC_018080:2295622-2341922	NZ_CH482384:2347090-2383672	0.295981
+NZ_CH482384:2347090-2383672	NZ_CH482384:2347090-2383672	0
+NC_018080:2505749-2544853	NZ_CH482384:2412085-2463519	0.101551
+NZ_CH482384:2412085-2463519	NZ_CH482384:2412085-2463519	0
+NC_018080:2505749-2544853	NZ_CH482384:2604522-2648798	0.263022
+NZ_CH482384:2604522-2648798	NZ_CH482384:2604522-2648798	0
+NC_018080:1219150-1228065	NZ_CH482384:3522883-3535764	0.0323015
+NZ_CP006982:1349036-1357950	NZ_CH482384:3522883-3535764	0.0297077
+NC_011770:1349314-1358228	NZ_CH482384:3522883-3535764	0.0297077
+NZ_CH482384:3522883-3535764	NZ_CH482384:3522883-3535764	0
+NC_023066:1307166-1316080	NZ_CH482384:3522883-3535764	0.0297077
+NC_018080:5102592-5114199	NZ_CH482384:6133302-6143599	0.0539403
+NZ_CH482384:6133302-6143599	NZ_CH482384:6133302-6143599	0
+NC_002516:692897-707366	NZ_CH482384:6673834-6697328	0.295981
+NZ_CH482384:1100815-1136673	NZ_CH482384:6673834-6697328	0.140258
+NZ_CH482384:6673834-6697328	NZ_CH482384:6673834-6697328	0
+NC_018080:1219150-1228065	NC_023066:1307166-1316080	0.0037263
+NZ_CP006982:1349036-1357950	NC_023066:1307166-1316080	0
+NC_011770:1349314-1358228	NC_023066:1307166-1316080	0
+NZ_CH482384:3522883-3535764	NC_023066:1307166-1316080	0.0297077
+NC_023066:1307166-1316080	NC_023066:1307166-1316080	0
+NZ_CP006982:1426904-1435435	NC_023066:1385033-1404279	0.0246831
+NC_011770:1427182-1435713	NC_023066:1385033-1404279	0.0246831
+NZ_CH482384:1100815-1136673	NC_023066:1385033-1404279	0.295981
+NC_023066:1385033-1404279	NC_023066:1385033-1404279	0
+NZ_CP006982:1688543-1719942	NC_023066:1646675-1678074	0
+NC_011770:1688837-1720236	NC_023066:1646675-1678074	0
+NC_023066:1646675-1678074	NC_023066:1646675-1678074	0
+NC_018080:1835838-1864566	NC_023066:1770993-1783719	0.136948
+NC_018080:2295622-2341922	NC_023066:1770993-1783719	0.147707
+NZ_CP006982:2515161-2560181	NC_023066:1770993-1783719	0.219531
+NC_011770:1813155-1825882	NC_023066:1770993-1783719	0.000434439
+NC_011770:2515458-2560479	NC_023066:1770993-1783719	0.219531
+NC_023066:1770993-1783719	NC_023066:1770993-1783719	0
+NC_023066:2473255-2518276	NC_023066:1770993-1783719	0.219531
+NC_018080:1835838-1864566	NC_023066:2473255-2518276	0.210897
+NC_018080:2295622-2341922	NC_023066:2473255-2518276	0.0786628
+NZ_CP006982:2515161-2560181	NC_023066:2473255-2518276	4.76906e-05
+NC_011770:1813155-1825882	NC_023066:2473255-2518276	0.219531
+NC_011770:2515458-2560479	NC_023066:2473255-2518276	0
+NZ_CH482384:2093396-2161044	NC_023066:2473255-2518276	0.0920479
+NC_023066:1770993-1783719	NC_023066:2473255-2518276	0.219531
+NC_023066:2473255-2518276	NC_023066:2473255-2518276	0
+NZ_CP006982:3729016-3741559	NC_023066:3687227-3703965	0.00766986
+NC_011770:3740004-3756742	NC_023066:3687227-3703965	7.15897e-05
+NC_023066:3687227-3703965	NC_023066:3687227-3703965	0
+NZ_CP006982:4534025-4544361	NC_023066:4492492-4502828	0
+NC_011770:4545250-4555586	NC_023066:4492492-4502828	0
+NC_002516:782569-792993	NC_023066:4492492-4502828	0.12214
+NC_023066:4492492-4502828	NC_023066:4492492-4502828	0