|
283
|
1 <tool id="MaREA Custom Data Generator" name="CustomDataGenerator" version="1.0.0">
|
|
|
2 <description>- Custom Data Generator for RAS and RPS modules</description>
|
|
|
3 <macros>
|
|
|
4 <import>marea_macros.xml</import>
|
|
|
5 </macros>
|
|
|
6 <requirements>
|
|
|
7
|
|
|
8 </requirements>
|
|
|
9 <command detect_errors="exit_code">
|
|
|
10 <![CDATA[
|
|
|
11 python $__tool_directory__/custom_data_generator.py
|
|
|
12 --input $input
|
|
|
13 --name $input.element_identifier
|
|
|
14 --output_format $output_format
|
|
|
15 --out_log $log
|
|
|
16 ]]>
|
|
|
17 </command>
|
|
|
18 <inputs>
|
|
|
19 <param name="input" argument="--input" type="data" format="xml, json" label="Custom model:" />
|
|
|
20 <param name="name" argument="--name" type="text" label="Model's name:" value="Model" help="Default: Model" />
|
|
|
21
|
|
|
22 <param name="output_format" argument="--output_format" type="select" label="Output files format:">
|
|
|
23 <option value="p" selected="true">pickle extension (binary, non-editable, pre-parsed)</option>
|
|
|
24 <option value="csv">Comma Separated Values (csv text file, editable, raw)</option>
|
|
|
25 </param>
|
|
|
26 </inputs>
|
|
|
27
|
|
|
28 <outputs>
|
|
|
29 <data format="txt" name="log" label="CustomDataGenerator - $name - Log" />
|
|
|
30
|
|
|
31 <collection name="results" type="list" label="Custom Data Results ($output_format)">
|
|
|
32 <discover_datasets name = "collection" pattern="__name_and_ext__" directory="result"/>
|
|
|
33 </collection>
|
|
|
34 </outputs>
|
|
|
35
|
|
|
36 <help>
|
|
|
37 <![CDATA[
|
|
|
38 What it does
|
|
|
39 -------------
|
|
|
40
|
|
|
41 This tool generates two files containing reactions and rules respectively, starting from a custom model in JSON or XML format, that can be used as inputs for the RAS and RPS generator modules.
|
|
|
42
|
|
|
43 Accepted files:
|
|
|
44 - A model: JSON or XML file reporting reactions and rules contained in the model.
|
|
|
45
|
|
|
46
|
|
|
47 Output:
|
|
|
48 -------------
|
|
|
49
|
|
|
50 The tool generates:
|
|
|
51 - rules: reporting the rules for each reaction in the custom model given. Format: csv or pickle.
|
|
|
52 - reactions: reporting the reactions in the custom model given. Format: csv or pickle.
|
|
|
53 - a log file (.txt).
|
|
|
54 ]]>
|
|
|
55 </help>
|
|
|
56 <expand macro="citations" />
|
|
|
57 </tool> |