comparison Marea/ras_generator.xml @ 47:3af9d394367c draft

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