0
|
1 <tool id="MaREA_cluester" name="MaREA cluster analysis">
|
|
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>
|
|
9 <requirement type="package">cobrapy</requirement>
|
|
10 <requirement type="package">python-libsbml</requirement>
|
0
|
11 <requirement type="package">scikit-learn</requirement>
|
|
12 <requirement type="package">matplotlib</requirement>
|
|
13 </requirements>
|
|
14 <command>
|
|
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>
|
|
42 </conditional>
|
1
|
43 <param name="input" argument="--data" type="data" format="tabular, csv, tsv" label="RNAseq of all samples" />
|
|
44 <param name="name" argument="--name" type="text" label="Output name prefix" value="dataset" />
|
|
45 <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)"/>
|
|
46 <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)"/>
|
|
47 <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
|
48 <conditional name="cond_hier">
|
1
|
49 <param name="hier" argument="--cond_hier" type="select" label="Produce dendrogram (hierarchical clustering):">
|
0
|
50 <option value="no" selected="true">no</option>
|
|
51 <option value="yes">yes</option>
|
|
52 </param>
|
|
53 <when value="yes">
|
1
|
54 <param name="linkage" argument="--linkage" type="select" label="Linkage type:">
|
0
|
55 <option value="single" selected="true">Single: minimum distance between all observations of two sets</option>
|
|
56 <option value="complete">Complete: maximum distance between all observations of two sets</option>
|
|
57 <option value="average">Average: average distance between all observations of two sets</option>
|
|
58 </param>
|
|
59 </when>
|
|
60 </conditional>
|
|
61 </inputs>
|
1
|
62
|
0
|
63 <outputs>
|
1
|
64 <data format="txt" name="log" label="Log" />
|
0
|
65 <data format="pdf" name="dendrogram" label="$name dendrogram">
|
|
66 <filter>cond_hier['hier'] == 'yes'</filter>
|
|
67 </data>
|
1
|
68 <data format="pdf" name="elbow" label="$name elbow evaluation method" />
|
0
|
69 <collection name="cluster_out" type="list" label="Clusters $k_min - $k_max">
|
1
|
70 <discover_datasets pattern="__name_and_ext__" directory="cluster_out" />
|
0
|
71 </collection>
|
|
72 </outputs>
|
1
|
73
|
0
|
74 <help>
|
1
|
75 <![CDATA[
|
|
76
|
|
77 What it does
|
|
78 -------------
|
|
79
|
|
80 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.
|
|
81
|
|
82 Accepted files are:
|
|
83 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*");
|
|
84 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*").
|
|
85
|
|
86 Optional files:
|
|
87 - custom GPR (Gene-Protein-Reaction) rules. Two accepted formats:
|
|
88
|
|
89 * (Cobra Toolbox and CobraPy compliant) xml of metabolic model;
|
|
90 * .csv file specifyig for each reaction ID (column 1) the corresponding GPR rule (column 2).
|
|
91 - custom svg map. Graphical elements must have the same IDs of reactions. See HmrCore svg map for an example.
|
0
|
92
|
1
|
93 The tool generates:
|
|
94 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;
|
|
95 2) Log: a log file (.txt);
|
|
96 3) *dataset* elbow evaluation method: diagram (.pdf) of elbow evaluation method;
|
|
97 4) *dataset* dendrogram (optional): dendrogram (.pdf) if the user chooses to produce a dendrogram (hierachical clustering).
|
|
98
|
|
99 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.
|
|
100
|
|
101
|
|
102 Example input
|
|
103 -------------
|
0
|
104
|
1
|
105 **RNA-seq dataset**:
|
|
106
|
|
107 @DATASET_EXEMPLE@
|
|
108
|
|
109 **Custom Rules Dataset**:
|
|
110
|
|
111 @CUSTOM_RULES_EXEMPLE@
|
|
112
|
|
113 **Custom Map**:
|
|
114
|
|
115 *see the generated HMRcore .svg map for example*
|
|
116
|
|
117
|
0
|
118
|
|
119 .. class:: infomark
|
|
120
|
1
|
121 **TIP**: If your data is not TAB delimited, use `Convert delimiters to TAB`_.
|
|
122
|
|
123 .. class:: warningmark
|
|
124
|
|
125 If dendrogram it's too populated, each path and label can be not clear.
|
|
126
|
|
127 @REFERENCE@
|
0
|
128
|
1
|
129 .. _MaREA: https://www.biorxiv.org/content/early/2018/01/16/248724
|
|
130 .. _Convert delimiters to TAB: https://usegalaxy.org/?tool_id=Convert+characters1&version=1.0.0&__identifer=6t22teyofhj
|
|
131
|
|
132
|
|
133 ]]>
|
0
|
134 </help>
|
1
|
135 <expand macro="citations" />
|
0
|
136 </tool>
|
|
137
|
|
138
|