4
|
1 <tool id="MaREA_cluester" name="MaREA cluster analysis" version="1.0.0">
|
0
|
2 <description>of Reaction Activity Scores</description>
|
1
|
3 <macros>
|
|
4 <import>marea_macros.xml</import>
|
|
5 </macros>
|
0
|
6 <requirements>
|
2
|
7 <requirement type="package">pandas</requirement>
|
|
8 <requirement type="package">scipy</requirement>
|
3
|
9 <requirement type="package">cobra</requirement>
|
2
|
10 <requirement type="package">python-libsbml</requirement>
|
0
|
11 <requirement type="package">scikit-learn</requirement>
|
|
12 <requirement type="package">matplotlib</requirement>
|
|
13 </requirements>
|
4
|
14 <command detect_errors="exit_code">
|
0
|
15 <![CDATA[
|
|
16 python $__tool_directory__/marea_cluster.py
|
|
17 --rules_selector $cond_rule.rules_selector
|
|
18 #if $cond_rule.rules_selector == 'Custom':
|
|
19 --custom ${cond_rule.Custom_rules}
|
|
20 #end if
|
|
21 --cond_hier $cond_hier.hier
|
|
22 #if $cond_hier.hier == 'yes':
|
|
23 --linkage ${cond_hier.linkage}
|
|
24 --dendro $dendrogram
|
|
25 #end if
|
|
26 --k_max $k_max
|
|
27 --k_min $k_min
|
|
28 --data $input
|
|
29 --name $name
|
|
30 --none $None
|
|
31 --tool_dir $__tool_directory__
|
|
32 --out_log $log
|
|
33 --elbow $elbow
|
|
34 ]]>
|
|
35 </command>
|
|
36 <inputs>
|
|
37 <conditional name="cond_rule">
|
2
|
38 <expand macro="options"/>
|
0
|
39 <when value="Custom">
|
1
|
40 <param name="Custom_rules" type="data" format="tabular, csv, tsv, xml" label="Custom rules" />
|
0
|
41 </when>
|
4
|
42 <when value="HMRcore">
|
|
43 </when>
|
|
44 <when value="Recon">
|
|
45 </when>
|
0
|
46 </conditional>
|
1
|
47 <param name="input" argument="--data" type="data" format="tabular, csv, tsv" label="RNAseq of all samples" />
|
|
48 <param name="name" argument="--name" type="text" label="Output name prefix" value="dataset" />
|
|
49 <param name="k_min" argument="--k_min" type="integer" size="20" value="3" min="2" max="30" label="Min number of clusters (k) to be tested (k-means)"/>
|
|
50 <param name="k_max" argument="--k_max" type="integer" size="20" value="3" min="2" max="30" label="Max number of clusters (k) to be tested (k-means)"/>
|
|
51 <param name="None" argument="--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)" />
|
0
|
52 <conditional name="cond_hier">
|
1
|
53 <param name="hier" argument="--cond_hier" type="select" label="Produce dendrogram (hierarchical clustering):">
|
0
|
54 <option value="no" selected="true">no</option>
|
|
55 <option value="yes">yes</option>
|
|
56 </param>
|
|
57 <when value="yes">
|
1
|
58 <param name="linkage" argument="--linkage" type="select" label="Linkage type:">
|
0
|
59 <option value="single" selected="true">Single: minimum distance between all observations of two sets</option>
|
|
60 <option value="complete">Complete: maximum distance between all observations of two sets</option>
|
|
61 <option value="average">Average: average distance between all observations of two sets</option>
|
|
62 </param>
|
|
63 </when>
|
4
|
64 <when value="no">
|
|
65 </when>
|
0
|
66 </conditional>
|
|
67 </inputs>
|
1
|
68
|
0
|
69 <outputs>
|
1
|
70 <data format="txt" name="log" label="Log" />
|
0
|
71 <data format="pdf" name="dendrogram" label="$name dendrogram">
|
|
72 <filter>cond_hier['hier'] == 'yes'</filter>
|
|
73 </data>
|
1
|
74 <data format="pdf" name="elbow" label="$name elbow evaluation method" />
|
0
|
75 <collection name="cluster_out" type="list" label="Clusters $k_min - $k_max">
|
1
|
76 <discover_datasets pattern="__name_and_ext__" directory="cluster_out" />
|
0
|
77 </collection>
|
|
78 </outputs>
|
4
|
79 <tests>
|
|
80 <test>
|
|
81 <param name="k_min" value="4"/>
|
|
82 <output name="log" file="log.txt"/>
|
|
83 </test>
|
|
84 </tests>
|
0
|
85 <help>
|
1
|
86 <![CDATA[
|
|
87
|
|
88 What it does
|
|
89 -------------
|
|
90
|
|
91 This tool performs cluster analysis of RNA-seq dataset(s) based of Graudenzi et al."`MaREA`_: Metabolic feature extraction, enrichment and visualization of RNAseq data" bioRxiv (2018): 248724.
|
|
92
|
|
93 Accepted files are:
|
|
94 1) For "Recon 2.2 rules" or "HMRcore rules" options: RNA-seq dataset. The user can specify a label of output prefix (as e.g. "K=3 *dataset*" and "K=4 *MyDataset*");
|
|
95 2) For "Custom rules" option: custom rules dataset, custom map (.svg) and RNA-seq dataset. The user can specify a label of output prefix (as e.g. "K=3 *dataset*" and "K=4 *MyDataset*").
|
|
96
|
|
97 Optional files:
|
|
98 - custom GPR (Gene-Protein-Reaction) rules. Two accepted formats:
|
|
99
|
|
100 * (Cobra Toolbox and CobraPy compliant) xml of metabolic model;
|
|
101 * .csv file specifyig for each reaction ID (column 1) the corresponding GPR rule (column 2).
|
|
102 - custom svg map. Graphical elements must have the same IDs of reactions. See HmrCore svg map for an example.
|
0
|
103
|
1
|
104 The tool generates:
|
|
105 1) Clusters n1 - n2 (n1 and n2 refer to min and max number of clusters): class-files (as many files as the chosen different number of clusters k to be tested) specifying the class/condition each sample belongs to;
|
|
106 2) Log: a log file (.txt);
|
|
107 3) *dataset* elbow evaluation method: diagram (.pdf) of elbow evaluation method;
|
|
108 4) *dataset* dendrogram (optional): dendrogram (.pdf) if the user chooses to produce a dendrogram (hierachical clustering).
|
|
109
|
|
110 RNA-seq datasets format: tab-separated text files, reporting the expression level (e.g., TPM, RPKM, ...) of each gene (row) for a given sample (column). Header: sample ID.
|
|
111
|
|
112
|
|
113 Example input
|
|
114 -------------
|
0
|
115
|
1
|
116 **RNA-seq dataset**:
|
|
117
|
|
118 @DATASET_EXEMPLE@
|
|
119
|
|
120 **Custom Rules Dataset**:
|
|
121
|
|
122 @CUSTOM_RULES_EXEMPLE@
|
|
123
|
|
124 **Custom Map**:
|
|
125
|
|
126 *see the generated HMRcore .svg map for example*
|
|
127
|
|
128
|
0
|
129
|
|
130 .. class:: infomark
|
|
131
|
1
|
132 **TIP**: If your data is not TAB delimited, use `Convert delimiters to TAB`_.
|
|
133
|
|
134 .. class:: warningmark
|
|
135
|
|
136 If dendrogram it's too populated, each path and label can be not clear.
|
|
137
|
|
138 @REFERENCE@
|
0
|
139
|
1
|
140 .. _MaREA: https://www.biorxiv.org/content/early/2018/01/16/248724
|
|
141 .. _Convert delimiters to TAB: https://usegalaxy.org/?tool_id=Convert+characters1&version=1.0.0&__identifer=6t22teyofhj
|
|
142
|
|
143
|
|
144 ]]>
|
0
|
145 </help>
|
1
|
146 <expand macro="citations" />
|
0
|
147 </tool>
|
|
148
|
|
149
|