Mercurial > repos > tduigou > rp2paths
annotate rp2paths.xml @ 2:2452952f7bc2 draft
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
author | tduigou |
---|---|
date | Mon, 03 Apr 2023 08:15:46 +0000 |
parents | e3db7fb2c85e |
children | 9c11cb2b1a71 |
rev | line source |
---|---|
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
1 <tool id="rp2paths" name="RP2paths" version="@TOOL_VERSION@" profile="21.09" licence="@LICENSE@"> |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
2 <description>Enumerate and seperate the different pathways generated by RetroPath2.0</description> |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
3 <macros> |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
4 <token name="@TOOL_VERSION@">1.5.0</token> |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
5 <token name="@LICENSE@">MIT</token> |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
6 </macros> |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
7 <requirements> |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
8 <requirement type="package" version="@TOOL_VERSION@">rp2paths</requirement> |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
9 </requirements> |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
10 <stdio> |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
11 <regex match="TIMEOUT:" level="fatal" /> |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
12 <regex match="ERROR:" level="fatal" /> |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
13 <regex match="WARNING:" level="warning" /> |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
14 </stdio> |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
15 <command detect_errors="exit_code"><![CDATA[ |
1
e3db7fb2c85e
"planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents:
0
diff
changeset
|
16 mkdir out && |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
17 python -m rp2paths all |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
18 '$rp2_pathways' |
1
e3db7fb2c85e
"planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents:
0
diff
changeset
|
19 --outdir out |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
20 --timeout '$adv.timeout' && |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
21 cp out/compounds.txt '$compounds' && |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
22 if test -f 'out/out_paths.csv'; then |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
23 cp out/out_paths.csv '$master_pathways'; |
1
e3db7fb2c85e
"planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents:
0
diff
changeset
|
24 fi |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
25 ]]></command> |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
26 <inputs> |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
27 <param name="rp2_pathways" type="data" format="csv" label="RetroPath2.0 Pathways" help="Retrosynthesis network CSV file outputted by the RetroPath2 tool which desribes the network linking the targeted compound to the chassis."/> |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
28 <section name="adv" title="Advanced Options" expanded="false"> |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
29 <param name="timeout" type="integer" value="1800" label="Time Out" help="Time out before killing a process (in seconds), default: 30 minutes." /> |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
30 </section> |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
31 </inputs> |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
32 <outputs> |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
33 <data name="master_pathways" format="csv" label="${tool.name} on ${rp2_pathways.name} : Enumerated Pathways" /> |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
34 <data name="compounds" format="tabular" label="${tool.name} on ${rp2_pathways.name} : Compounds" /> |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
35 </outputs> |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
36 <tests> |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
37 <test> |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
38 <!-- test 1: check if identical outputs are produced with default parameters --> |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
39 <param name="rp2_pathways" value="retropath2_pathways.csv" /> |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
40 <output name="master_pathways" file="rp2paths_pathways.csv" ftype="csv" compare="diff"/> |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
41 <output name="compounds" file="rp2paths_compounds.tsv" ftype="tabular" compare="diff"/> |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
42 </test> |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
43 </tests> |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
44 <help><![CDATA[ |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
45 RP2paths |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
46 ======== |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
47 |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
48 |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
49 **RP2paths** extracts the set of heterologous pathways that lies in a metabolic space file outputted by the `RetroPath2.0 workflow <https://www.myexperiment.org/workflows/4987.html>`_ into individual pathways and enumerate them. This analysis is required to ensure that only pathways fulfilling all the precursor needs are retained for further analysis. This tool takes as input a retrosynthesis network in the CSV file produced by `RetroPath2.0 <https://toolshed.g2.bx.psu.edu/view/tduigou/retropath2/9c8ac9980bd6>`_ , and outputs the enumerated pathways (using `EC numbers <https://www.sciencedirect.com/topics/biochemistry-genetics-and-molecular-biology/enzyme-commission-number>`_ ) as well as the structure of involved chemicals (as SMILES: Simplified Molecular-Input Line-Entry System) in TSV format. |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
50 |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
51 |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
52 An example of **enumerated pathways** is illustred in the figure below for the production of a target molecule: `Styrene <https://www.sciencedirect.com/topics/chemical-engineering/styrene>`_. **Compounds** are represented by their structures, and **reactions** by their `EC numbers <https://www.sciencedirect.com/topics/biochemistry-genetics-and-molecular-biology/enzyme-commission-number>`_. |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
53 |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
54 |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
55 .. image:: ${static_path}/images/enumerated_pathways.png |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
56 :width: 40 % |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
57 :align: center |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
58 |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
59 | |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
60 |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
61 Input |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
62 ----- |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
63 |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
64 Required information: |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
65 |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
66 * **RetroPath2.0 Pathways**\ : Retrosynthesis network CSV file outputted by the RetroPath2 tool which desribes the network linking the targeted compound to the chassis. |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
67 |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
68 Advanced options: |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
69 |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
70 * **Time Out**\ : (integer) Timeout before killing a process (in seconds), default: 30 minutes. |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
71 |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
72 Output |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
73 ------ |
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
74 |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
75 * **Enumerated Pathways**\ : Describes all the indiviudal enumerated pathways that produce the compound of interest. |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
76 * **Compounds**\ : Describes the structure of all the chemical species involved in all pathways as SMILES (Simplified Molecular-Input Line-Entry System). |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
77 ]]></help> |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
78 <creator> |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
79 <organization name="BioRetroSynth" url="https://github.com/brsynth"/> |
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
80 </creator> |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
81 <citations> |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
82 <citation type="doi">10.1016/j.ymben.2017.12.002</citation> |
0
2782bee7c5a6
"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff
changeset
|
83 </citations> |
2
2452952f7bc2
planemo upload commit 0b2a2717ffa780fabd61d34f676204e8842b5c16
tduigou
parents:
1
diff
changeset
|
84 </tool> |