annotate Marea/ras_generator.xml @ 46:5d5d01ef1d68 draft

Uploaded
author bimib
date Wed, 22 Jan 2020 11:50:54 -0500
parents 7aa966c488a4
children 3af9d394367c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
45
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
1 <tool id="MaREA RAS Generator" name="RAS Generator" version="1.0.0">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
2 <description></description>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
3 <macros>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
4 <import>marea_macros.xml</import>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
5 </macros>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
6 <requirements>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
7 <requirement type="package" version="0.23.0">pandas</requirement>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
8 <requirement type="package" version="1.1.0">scipy</requirement>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
9 <requirement type="package" version="0.10.1">cobra</requirement>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
10 <requirement type="package" version="4.2.1">lxml</requirement>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
11 <requirement type="package" version="0.8.1">svglib</requirement>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
12 <requirement type="package" version="3.4.0">reportlab</requirement>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
13 </requirements>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
14 <command detect_errors="exit_code">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
15 <![CDATA[
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
16 python $__tool_directory__/marea.py
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
17 --rules_selector $cond_rule.rules_selector
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
18 --tool_dir $__tool_directory__
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
19 --option $cond.type_selector
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
20 --out_log $log
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
21 --input_datas ${input_Datasets}
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
22 --single_ras_file $ras_single
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
23 --none ${cond.None}
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
24 #end if
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
25 ]]>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
26 </command>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
27
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
28 <inputs>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
29 <conditional name="cond_rule">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
30 <expand macro="options"/>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
31 <when value="HMRcore">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
32 </when>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
33 <when value="Recon">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
34 </when>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
35 <when value="Custom">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
36 <param name="Custom_rules" type="data" format="tabular, csv, tsv, xml" label="Custom rules" />
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
37 <conditional name="cond_map">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
38 <param name="yes_no" type="select" label="Custom map? (optional)">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
39 <option value="no" selected="true">no</option>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
40 <option value="yes">yes</option>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
41 </param>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
42 <when value="yes">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
43 <param name="Custom_map" argument="--custom_map" type="data" format="xml, svg" label="custom-map.svg"/>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
44 </when>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
45 <when value="no">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
46 </when>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
47 </conditional>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
48 </when>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
49 </conditional>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
50 <conditional name="cond">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
51
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
52 <param name="input_Datasets" argument="--input_datas" type="data" format="tabular, csv, tsv" label="add dataset" />
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
53 <param name="input_name" argument="--names" type="text" label="Dataset's name:" value="Dataset" help="Default: Dataset" />
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
54 <param name="None" argument="--none" type="boolean" truevalue="true" falsevalue="false" checked="true" label="(A and NaN) solved as (A)?" />
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
55
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
56
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
57 </when>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
58 </conditional>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
59 </inputs>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
60
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
61 <outputs>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
62 <data format="txt" name="log" label="MaREA - Log" />
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
63 <data format="tabular" name="ras_single" label="MaREA - RAS - ${cond.input_name}">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
64 <filter>cond['type_selector'] == "datasets_rasonly"</filter>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
65 </data>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
66 <collection name="results" type="list" label="MaREA - Results">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
67 <filter>cond['type_selector'] == "datasets" or cond['type_selector'] == "dataset_class"</filter>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
68 <discover_datasets pattern="__name_and_ext__" directory="result"/>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
69 </collection>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
70 <collection name="ras" type="list" label="MaREA - RAS list" format_source="tabular">
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
71 <filter>cond['type_selector'] != "datasets_rasonly" and cond['advanced']['choice'] and cond['advanced']['generateRas']</filter>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
72 <discover_datasets pattern="__name_and_ext__" directory="ras" format="tabular"/>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
73 </collection>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
74
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
75 </outputs>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
76 <tests>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
77 <test>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
78 <param name="pValue" value="0.56"/>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
79 <output name="log" file="log.txt"/>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
80 </test>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
81 </tests>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
82 <help>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
83 <![CDATA[
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
84
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
85 What it does
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
86 -------------
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
87
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
88 This tool analyzes RNA-seq dataset(s) as described in Graudenzi et al."`MaREA`_: Metabolic feature extraction, enrichment and visualization of RNAseq data" bioRxiv (2018): 248724.
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
89
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
90 Accepted files are:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
91 - option 1) two or more RNA-seq datasets, each referring to samples in a given condition/class. The user can specify a label for each class (as e.g. "*classA*" and "*classB*");
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
92 - option 2) one RNA dataset and one class-file specifying the class/condition each sample belongs to.
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
93
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
94 Optional files:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
95 - custom GPR (Gene-Protein-Reaction) rules. Two accepted formats:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
96
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
97 * (Cobra Toolbox and CobraPy compliant) xml of metabolic model;
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
98 * .csv file specifyig for each reaction ID (column 1) the corresponding GPR rule (column 2).
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
99 - custom svg map. Graphical elements must have the same IDs of reactions. See HmrCore svg map for an example.
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
100
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
101 The tool generates:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
102 1) a tab-separated file: reporting fold-change and p-values of reaction activity scores (RASs) between a pair of conditions/classes;
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
103 2) a metabolic map file (downlodable as .svg): visualizing up- and down-regulated reactions between a pair of conditions/classes;
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
104 3) a log file (.txt).
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
105
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
106 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.
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
107
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
108 Class-file format: each row of the class-file reports the sample ID (column1) and the label of the class/condition the sample belongs to (column 2).
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
109
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
110 To calculate P-Values and Fold-Changes and to generate maps, comparisons are performed for each possible pair of classes.
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
111
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
112 Output files will be named as classA_vs_classB. Reactions will conventionally be reported as up-regulated (down-regulated) if they are significantly more (less) active in class having label "classA".
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
113
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
114
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
115 Example input
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
116 -------------
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
117
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
118 **"Custom Rules"** option:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
119
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
120 Custom Rules Dastaset:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
121
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
122 @CUSTOM_RULES_EXEMPLE@
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
123
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
124 **"RNAseq of group 1 + RNAseq of group 2 + ... + RNAseq of group N"** option:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
125
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
126 RNA-seq Dataset 1:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
127
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
128 @DATASET_EXEMPLE1@
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
129
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
130 RNA-seq Dataset 2:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
131
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
132 @DATASET_EXEMPLE2@
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
133
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
134 **"RNAseq of all samples + sample group specification"** option:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
135
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
136 RNA-seq Dataset:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
137
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
138 @DATASET_EXEMPLE1@
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
139
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
140 Class-file:
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
141
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
142 +------------+------------+
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
143 | Patient_ID | class |
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
144 +============+============+
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
145 | TCGAAA3529 | MSI |
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
146 +------------+------------+
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
147 | TCGAA62671 | MSS |
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
148 +------------+------------+
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
149 | TCGAA62672 | MSI |
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
150 +------------+------------+
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
151
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
152 |
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
153
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
154 .. class:: infomark
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
155
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
156 **TIP**: If your data is not TAB delimited, use `Convert delimiters to TAB`_.
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
157
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
158 .. class:: infomark
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
159
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
160 **TIP**: If your dataset is not split into classes, use `MaREA cluster analysis`_.
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
161
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
162 @REFERENCE@
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
163
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
164 .. _MaREA: https://www.biorxiv.org/content/early/2018/01/16/248724
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
165 .. _Convert delimiters to TAB: https://usegalaxy.org/?tool_id=Convert+characters1&version=1.0.0&__identifer=6t22teyofhj
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
166 .. _MaREA cluster analysis: http://link del tool di cluster.org
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
167
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
168 ]]>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
169 </help>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
170 <expand macro="citations" />
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
171 </tool>
7aa966c488a4 Uploaded
bimib
parents:
diff changeset
172