Skip to content

Commit 9bc5478

Browse files
authored
Merge pull request #210 from xtrojak/137-creator-tag
general tool cleanup + creator tags
2 parents 0a95580 + 9062bee commit 9bc5478

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1428
-1217
lines changed

tools/aplcms_to_ramclustr_converter/.shed.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ include:
55
- aplcms_to_ramclustr_converter.xml
66
- aplcms_to_ramclustr_converter.py
77
- test-data
8+
- macros.xml
89
homepage_url: https://github.com/RECETOX/galaxytools/
910
long_description: Tool to convert parquet table from apLCMS output to csv input for RamClustR
1011
name: aplcms_to_ramclustr_converter

tools/aplcms_to_ramclustr_converter/aplcms_to_ramclustr_converter.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<tool id="aplcms_to_ramclustr_converter" name="apLCMS to RamClustR converter" version="0.1.0+galaxy0" python_template_version="3.5">
22
<description>converts apLCMS parquet output to RamClustR csv input</description>
3+
<macros>
4+
<import>macros.xml</import>
5+
</macros>
6+
<expand macro="creator"/>
37
<requirements>
48
<requirement type="package" version="1.1.5">pandas</requirement>
59
<requirement type="package" version="4.0.0">pyarrow</requirement>
@@ -19,13 +23,9 @@
1923
<output name="out_file" file="output.csv" ftype="csv"/>
2024
</test>
2125
</tests>
22-
<help><![CDATA[
23-
Tool to convert apLCMS output to csv file formated in accordance to RamClustR (CSV) input requirements.
24-
25-
**Workflow position**
26-
27-
- Upstream tool: `apLCMS <https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms>`_ Unsupervised or Hybrid
28-
29-
- Downstream tool: `RamClustR <https://github.com/RECETOX/galaxytools/tree/master/tools/ramclustr>`_ (CSV)
30-
]]></help>
26+
<help>
27+
<![CDATA[
28+
@HELP@
29+
]]>
30+
</help>
3131
</tool>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<macros>
2+
<xml name="creator">
3+
<creator>
4+
<person
5+
givenName="Martin"
6+
familyName="Čech"
7+
url="https://github.com/martenson"
8+
identifier="0000-0002-9318-1781" />
9+
<person
10+
givenName="Maksym"
11+
familyName="Skoryk"
12+
url="https://github.com/maximskorik"
13+
identifier="0000-0003-2056-8018" />
14+
<organization
15+
url="https://www.recetox.muni.cz/"
16+
email="GalaxyToolsDevelopmentandDeployment@space.muni.cz"
17+
name="RECETOX MUNI" />
18+
</creator>
19+
</xml>
20+
<token name="@HELP@">
21+
<![CDATA[
22+
Tool to convert apLCMS output to csv file formated in accordance to RamClustR (CSV) input requirements.
23+
24+
**Workflow position**
25+
26+
- Upstream tool: `apLCMS <https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms>`_ Unsupervised or Hybrid
27+
28+
- Downstream tool: `RamClustR <https://github.com/RECETOX/galaxytools/tree/master/tools/ramclustr>`_ (CSV)
29+
]]>
30+
</token>
31+
</macros>
Lines changed: 67 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,71 @@
11
<tool id="biotransformer" name="BioTransformer" version="1.1.5+galaxy1">
2-
<requirements>
3-
<requirement type="package" version="1.1.5">biotransformer</requirement>
4-
<requirement type="package" version="3.1.1">openbabel</requirement>
5-
<requirement type="package" version="1.1.1">pandas</requirement>
6-
<requirement type="package" version="3.7">python</requirement>
7-
</requirements>
8-
<command><![CDATA[ python3 '${__tool_directory__}/wrapper_biotransformer.py'
9-
-k $k
10-
-b $b
11-
-s $steps
12-
-t $tolerance
13-
-a
14-
-icsv $input_file
15-
-ocsv $output_file
16-
-ocsvDup $output_file2
17-
-ocsvDup2 $output_file3
2+
<macros>
3+
<import>macros.xml</import>
4+
</macros>
5+
<expand macro="creator"/>
6+
<requirements>
7+
<requirement type="package" version="1.1.5">biotransformer</requirement>
8+
<requirement type="package" version="3.1.1">openbabel</requirement>
9+
<requirement type="package" version="1.1.1">pandas</requirement>
10+
<requirement type="package" version="3.7">python</requirement>
11+
</requirements>
12+
<command><![CDATA[
13+
python3 '${__tool_directory__}/wrapper_biotransformer.py'
14+
-k $k
15+
-b $b
16+
-s $steps
17+
-t $tolerance
18+
-a
19+
-icsv $input_file
20+
-ocsv $output_file
21+
-ocsvDup $output_file2
22+
-ocsvDup2 $output_file3
23+
]]>
24+
</command>
25+
<inputs>
26+
<param name="k" type="select" value="pred"
27+
label="The task to be permed [pred=prediction, cid=compound identification].">
28+
<option value="pred" selected="true">pred</option>
29+
<option value="cid">cid</option>
30+
</param>
31+
<param name="b" type="select" value="ecbased" label="The type of description.">
32+
<option value="ecbased" selected="true">EC-based</option>
33+
<option value="cyp450">CYP450</option>
34+
<option value="phaseII">Phase II</option>
35+
<option value="hgut">Human gut microbial</option>
36+
<option value="superbio">Human super transformer 1 (superbio)</option>
37+
<option value="allHuman">Human super transformer 2 (allHuman)</option>
38+
<option value="envimicro">Environmental microbial</option>
39+
</param>
40+
<param name="steps" type="integer" value="1" label=" The number of steps for the prediction."/>
41+
<param name="tolerance" type="float" value="0.01" label="Mass tolerance for metabolite identification."/>
42+
<param name="input_file" type="data" format="csv" label="Input CSV file."/>
43+
</inputs>
1844

19-
]]>
20-
</command>
21-
<inputs>
22-
<param name="k" type="select" value="pred" label="The task to be permed [pred=prediction, cid=compound identification].">
23-
<option value="pred" selected="true" >pred</option>
24-
<option value="cid">cid</option>
25-
</param>
26-
<param name="b" type="select" value="ecbased" label="The type of description.">
27-
<option value="ecbased" selected="true" >EC-based</option>
28-
<option value="cyp450">CYP450</option>
29-
<option value="phaseII">Phase II</option>
30-
<option value="hgut">Human gut microbial</option>
31-
<option value="superbio">Human super transformer 1 (superbio)</option>
32-
<option value="allHuman">Human super transformer 2 (allHuman)</option>
33-
<option value="envimicro">Environmental microbial</option>
34-
</param>
35-
<param name="steps" type="integer" value="1" label=" The number of steps for the prediction."/>
36-
<param name="tolerance" type="float" value="0.01" label="Mass tolerance for metabolite identification."/>
37-
<param name="input_file" type="data" format="csv" label="Input CSV file."/>
38-
</inputs>
45+
<outputs>
46+
<data format="csv" name="output_file" label="BioTransformer - output."/>
47+
<data format="csv" name="output_file2" label="BioTransformer - filtered CSV output."/>
48+
<data format="csv" name="output_file3" label="BioTransformer - super-filtered CSV output."/>
49+
</outputs>
3950

40-
<outputs>
41-
<data format="csv" name="output_file" label="BioTransformer - output."/>
42-
<data format="csv" name="output_file2" label="BioTransformer - filtered CSV output."/>
43-
<data format="csv" name="output_file3" label="BioTransformer - super-filtered CSV output."/>
44-
</outputs>
45-
46-
<tests>
47-
<test>
48-
<param name="k" value="pred"/>
49-
<param name="b" value="allHuman"/>
50-
<param name="steps" value="1"/>
51-
<param name="tolerance" value="0.01"/>
52-
<param name="input_file" value="smiles.csv"/>
53-
<output name="output_file" value="output1.csv"/>
54-
<output name="output_file2" value="output2.csv"/>
55-
<output name="output_file3" value="output3.csv"/>
56-
</test>
57-
</tests>
58-
59-
<help>
60-
BioTransformer is a software tool that predicts small molecule metabolism in mammals, their gut micr obiota,
61-
as well as the soil/aquatic microbiota. BioTransformer also assists scientists in metabolite identification,
62-
based on the metabolism prediction.
63-
64-
BioTransformer is offered to the public as a freely acessible software package under the GNU License GPL v2.1.
65-
66-
Users are free to copy and redistribute the material in any medium or format. Moreover, they could modify, and
67-
build upon the material under the condition that they must give appropriate credit, provide links to the license,
68-
and indicate if changes were made. Furthermore, the above copyright notice and this permission notice must be
69-
included. Use and re-distribution of the these resources, in whole or in part, for commercial purposes requires
70-
explicit permission of the authors. We ask that all users of the BioTransformer software tool, the BioTransformer
71-
web server, or BioTransformerDB to cite the BioTransformer reference in any resulting publications, and to
72-
acknowledge the authors.
73-
74-
Parameters explanation:
75-
76-
**Input.** Currently, only a CSV file with one SMILES per line is accepted.
77-
78-
**The type of prediction:** EC-based (ecbased), CYP450 (cyp450), Phase II (phaseII), Human gut
79-
microbial (hgut), human super transformer* (superbio, or allHuman), Environmental microbial (envimicro).
80-
81-
**The number of steps for the prediction:** this option will be used for the EC-based, CYP450, Phase II, and Environmental
82-
microbial biotransformers. The default value is 1.
83-
84-
**Mass tolerance for metabolite identification** (default is 0.01).
85-
86-
**Output of BioTransformer** with CSV as an input are 3 CSV files. One without any filtering, second with filtered
87-
duplicates based on 6 columns (InChI, InChIKey, Synonyms, Molecular formula, Major Isotope Mass, AlogP) and third with
88-
filtered duplicates based on 3 columns (Molecular formula, Major Isotope Mass, AlogP).
89-
90-
(* ) While the 'superbio' option runs a set number of transformation steps in a pre-defined order (e.g. deconjugation
91-
first, then Oxidation/reduction, etc.), the 'allHuman' option predicts all possible metabolites from any applicable
92-
reaction(Oxidation, reduction, (de-)conjugation) at each step.
93-
</help>
94-
<citations>
95-
<citation type="doi">https://doi.org/10.1186/s13321-018-0324-5</citation>
96-
</citations>
51+
<tests>
52+
<test>
53+
<param name="k" value="pred"/>
54+
<param name="b" value="allHuman"/>
55+
<param name="steps" value="1"/>
56+
<param name="tolerance" value="0.01"/>
57+
<param name="input_file" value="smiles.csv"/>
58+
<output name="output_file" value="output1.csv"/>
59+
<output name="output_file2" value="output2.csv"/>
60+
<output name="output_file3" value="output3.csv"/>
61+
</test>
62+
</tests>
63+
<help>
64+
<![CDATA[
65+
@HELP@
66+
]]>
67+
</help>
68+
<citations>
69+
<citation type="doi">https://doi.org/10.1186/s13321-018-0324-5</citation>
70+
</citations>
9771
</tool>

tools/biotransformer/macros.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<macros>
2+
<xml name="creator">
3+
<creator>
4+
<person
5+
givenName="Martin"
6+
familyName="Čech"
7+
url="https://github.com/martenson"
8+
identifier="0000-0002-9318-1781" />
9+
<person
10+
givenName="Karolína"
11+
familyName="Trachtová"
12+
url="https://github.com/trachtok" />
13+
<organization
14+
url="https://www.recetox.muni.cz/"
15+
email="GalaxyToolsDevelopmentandDeployment@space.muni.cz"
16+
name="RECETOX MUNI" />
17+
</creator>
18+
</xml>
19+
<token name="@HELP@">
20+
<![CDATA[
21+
BioTransformer is a software tool that predicts small molecule metabolism in mammals, their gut micr obiota,
22+
as well as the soil/aquatic microbiota. BioTransformer also assists scientists in metabolite identification,
23+
based on the metabolism prediction.
24+
25+
BioTransformer is offered to the public as a freely acessible software package under the GNU License GPL v2.1.
26+
27+
Users are free to copy and redistribute the material in any medium or format. Moreover, they could modify, and
28+
build upon the material under the condition that they must give appropriate credit, provide links to the license,
29+
and indicate if changes were made. Furthermore, the above copyright notice and this permission notice must be
30+
included. Use and re-distribution of the these resources, in whole or in part, for commercial purposes requires
31+
explicit permission of the authors. We ask that all users of the BioTransformer software tool, the BioTransformer
32+
web server, or BioTransformerDB to cite the BioTransformer reference in any resulting publications, and to
33+
acknowledge the authors.
34+
35+
Parameters explanation:
36+
37+
**Input.** Currently, only a CSV file with one SMILES per line is accepted.
38+
39+
**The type of prediction:** EC-based (ecbased), CYP450 (cyp450), Phase II (phaseII), Human gut
40+
microbial (hgut), human super transformer* (superbio, or allHuman), Environmental microbial (envimicro).
41+
42+
**The number of steps for the prediction:** this option will be used for the EC-based, CYP450, Phase II, and Environmental
43+
microbial biotransformers. The default value is 1.
44+
45+
**Mass tolerance for metabolite identification** (default is 0.01).
46+
47+
**Output of BioTransformer** with CSV as an input are 3 CSV files. One without any filtering, second with filtered
48+
duplicates based on 6 columns (InChI, InChIKey, Synonyms, Molecular formula, Major Isotope Mass, AlogP) and third with
49+
filtered duplicates based on 3 columns (Molecular formula, Major Isotope Mass, AlogP).
50+
51+
(* ) While the 'superbio' option runs a set number of transformation steps in a pre-defined order (e.g. deconjugation
52+
first, then Oxidation/reduction, etc.), the 'allHuman' option predicts all possible metabolites from any applicable
53+
reaction(Oxidation, reduction, (de-)conjugation) at each step.
54+
]]>
55+
</token>
56+
</macros>
Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,49 @@
11
<tool id="export_to_path" name="export to path" version="0.0.2">
2+
<macros>
3+
<import>macros.xml</import>
4+
</macros>
5+
<expand macro="creator"/>
26
<description>on a filesystem accessible to compute node</description>
37
<requirements>
48
<requirement type="package" version="3.6">python</requirement>
59
</requirements>
610
<command detect_errors="aggressive"><![CDATA[
7-
python '$__tool_directory__/export_to_path.py'
8-
-p '$remote_path'
11+
python '$__tool_directory__/export_to_path.py'
12+
-p '$remote_path'
913
10-
#if $mzml_dataset
11-
'${mzml_dataset}' '${mzml_dataset.ext}'
12-
#end if
14+
#if $mzml_dataset
15+
'${mzml_dataset}' '${mzml_dataset.ext}'
16+
#end if
1317
14-
#if $json_metadata
15-
'${json_metadata}' '${json_metadata.ext}'
16-
#end if
18+
#if $json_metadata
19+
'${json_metadata}' '${json_metadata.ext}'
20+
#end if
1721
18-
#if $txt_metadata
19-
'${txt_metadata}' '${txt_metadata.ext}'
20-
#end if
22+
#if $txt_metadata
23+
'${txt_metadata}' '${txt_metadata.ext}'
24+
#end if
2125
22-
> '$log'
26+
> '$log'
2327
]]></command>
2428
<inputs>
2529
<param name="mzml_dataset" type="data" format="mzml" label="mzML Dataset to export" optional="true"/>
2630
<param name="json_metadata" type="data" format="json" label="JSON metadata to export" optional="true"/>
2731
<param name="txt_metadata" type="data" format="txt" label="TXT metadata to export" optional="true"/>
28-
<param name="remote_path" type="text" value="" label="Remote path of the new mzML dataset." help="Full absolute path to the new mzml dataset to export.">
29-
<validator type="empty_field" />
30-
<sanitizer sanitize="false" />
32+
<param name="remote_path" type="text" value="" label="Remote path of the new mzML dataset."
33+
help="Full absolute path to the new mzml dataset to export.">
34+
<validator type="empty_field"/>
35+
<sanitizer sanitize="false"/>
3136
</param>
3237
</inputs>
3338
<outputs>
34-
<data name="log" format="txt" />
39+
<data name="log" format="txt"/>
3540
</outputs>
3641
<tests>
3742
</tests>
38-
<help><![CDATA[
39-
Simple tool to copy datasets to a directory on the cluster.
40-
]]></help>
43+
<help>
44+
<![CDATA[
45+
@HELP@
46+
]]>
47+
</help>
4148
<citations/>
4249
</tool>

tools/export_to_path/macros.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<macros>
2+
<xml name="creator">
3+
<creator>
4+
<person
5+
givenName="Martin"
6+
familyName="Čech"
7+
url="https://github.com/martenson"
8+
identifier="0000-0002-9318-1781" />
9+
<person
10+
givenName="Maksym"
11+
familyName="Skoryk"
12+
url="https://github.com/maximskorik"
13+
identifier="0000-0003-2056-8018" />
14+
<organization
15+
url="https://www.recetox.muni.cz/"
16+
email="GalaxyToolsDevelopmentandDeployment@space.muni.cz"
17+
name="RECETOX MUNI" />
18+
</creator>
19+
</xml>
20+
<token name="@HELP@">
21+
<![CDATA[
22+
Simple tool to copy datasets to a directory on the cluster.
23+
]]>
24+
</token>
25+
</macros>

0 commit comments

Comments
 (0)