annotate ras_generator.xml @ 43:89047227bedc draft

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