annotate Marea/marea_cluster.xml @ 12:3d77287caf22 draft

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