annotate Marea/marea_cluster.xml @ 0:23ac9cf12788 draft

Uploaded
author bimib
date Tue, 06 Nov 2018 03:16:21 -0500
parents
children 9e63d5f02d62
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
1 <tool id="MaREA_cluester" name="MaREA cluster analysis">
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
2 <description>of Reaction Activity Scores</description>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
3 <requirements>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
4 <requirement type="package">pandas</requirement>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
5 <requirement type="package">scikit-learn</requirement>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
6 <requirement type="package">scipy</requirement>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
7 <requirement type="package">matplotlib</requirement>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
8 <requirement type="package">cobrapy</requirement>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
9 <requirement type="package">python-libsbml</requirement>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
10 </requirements>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
11 <command>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
12 <![CDATA[
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
13 python $__tool_directory__/marea_cluster.py
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
14 --rules_selector $cond_rule.rules_selector
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
15 #if $cond_rule.rules_selector == 'Custom':
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
16 --custom ${cond_rule.Custom_rules}
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
17 #end if
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
18 --cond_hier $cond_hier.hier
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
19 #if $cond_hier.hier == 'yes':
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
20 --linkage ${cond_hier.linkage}
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
21 --dendro $dendrogram
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
22 #end if
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
23 --k_max $k_max
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
24 --k_min $k_min
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
25 --data $input
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
26 --name $name
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
27 --none $None
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
28 --tool_dir $__tool_directory__
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
29 --out_log $log
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
30 --elbow $elbow
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
31 ]]>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
32 </command>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
33 <inputs>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
34 <conditional name="cond_rule">
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
35 <param name="rules_selector" type="select" label="Gene-Protein-Reaction rules:">
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
36 <option value="HMRcore" selected="true">HMRcore rules</option>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
37 <option value="Recon">Recon 2.2 rules</option>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
38 <option value="Custom">Custom rules</option>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
39 </param>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
40 <when value="Custom">
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
41 <param name="Custom_rules" type="data" format="tabular, csv, tsv, xml" label="Custom rules"/>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
42 </when>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
43 </conditional>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
44 <param name="input" type="data" format="tabular, csv, tsv" label="RNAseq of all samples"/>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
45 <param name="name" type="text" label="Output name prefix" value = "dataset"/>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
46 <param name="k_min" type="integer" size="20" value="3" min="2" max="30" label="min number of clusters (k) to be tested (k-means)"/>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
47 <param name="k_max" type="integer" size="20" value="3" min="2" max="30" label="max number of clusters (k) to be tested (k-means)"/>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
48 <param name="None" type="boolean" truevalue="true" falsevalue="false" checked="true" label="(A and NaN) solved as (A)?" help="if NO is selected (A and NaN) is solved as (NaN)"/>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
49 <conditional name="cond_hier">
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
50 <param name="hier" type="select" label="Produce dendrogram (hierarchical clustering):">
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
51 <option value="no" selected="true">no</option>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
52 <option value="yes">yes</option>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
53 </param>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
54 <when value="yes">
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
55 <param name="linkage" type="select" label="Linkage type:">
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
56 <option value="single" selected="true">Single: minimum distance between all observations of two sets</option>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
57 <option value="complete">Complete: maximum distance between all observations of two sets</option>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
58 <option value="average">Average: average distance between all observations of two sets</option>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
59 </param>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
60 </when>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
61 </conditional>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
62 </inputs>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
63 <outputs>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
64 <data format="txt" name="log" label="Log"/>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
65 <data format="pdf" name="dendrogram" label="$name dendrogram">
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
66 <filter>cond_hier['hier'] == 'yes'</filter>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
67 </data>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
68 <data format="pdf" name="elbow" label="$name elbow evaluation method"/>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
69 <collection name="cluster_out" type="list" label="Clusters $k_min - $k_max">
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
70 <discover_datasets pattern="__name_and_ext__" directory="cluster_out"/>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
71 </collection>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
72 </outputs>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
73 <help>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
74
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
75 .. class:: warningmark
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
76
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
77 This tool expects input datasets consisting of tab-delimited columns.
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
78
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
79 .. class:: infomark
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
80
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
81 **TIP:** If your data is not TAB delimited, use *Text Manipulation > Convert delimiters to TAB*
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
82
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
83 </help>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
84 </tool>
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
85
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
86
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
87
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
88
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
89
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
90
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
91
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
92
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
93
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
94
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
95
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
96
23ac9cf12788 Uploaded
bimib
parents:
diff changeset
97