annotate riassigner_from_comment.xml @ 1:7226eba9c09d draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
author recetox
date Tue, 16 Apr 2024 11:30:39 +0000
parents 6975af39ba79
children 97ccdb1ba47c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
1 <tool id="riassigner_from_comment" name="RIAssigner init from comment" version="@TOOL_VERSION@+galaxy5" profile="21.09">
0
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
2 <description>Assign different retention indices from unstructured comment metadata</description>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
3 <macros>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
4 <import>macros.xml</import>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
5 </macros>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
6 <expand macro="creator"/>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
7
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
8 <xrefs>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
9 <xref type="bio.tools">riassigner</xref>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
10 </xrefs>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
11
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
12 <requirements>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
13 <requirement type="package" version="@TOOL_VERSION@">riassigner</requirement>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
14 </requirements>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
15
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
16 <command detect_errors="exit_code"><![CDATA[
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
17 python ${script} &&
1
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
18 #if $input.ext == "csv"
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
19 mv results.tsv ${output}
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
20 #else:
0
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
21 mv results.${input.ext} ${output}
1
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
22 #end if
0
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
23 ]]>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
24 </command>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
25
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
26 <configfiles>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
27 <configfile name="script">
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
28 from RIAssigner.data import PandasData, MatchMSData
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
29 #if $input.ext in ["csv", "tsv", "parquet"]
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
30 query = PandasData('${input}', '${input.ext}', rt_unit="seconds")
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
31 #else
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
32 query = MatchMSData('${input}', '${input.ext}', rt_unit="seconds")
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
33 #end if
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
34 query.init_ri_from_comment('${format}')
1
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
35 #if $input.ext == "csv"
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
36 query.write('results.tsv')
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
37 #else
0
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
38 query.write('results.${input.ext}')
1
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
39 #end if
0
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
40 </configfile>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
41 </configfiles>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
42
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
43 <inputs>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
44 <param name="input" type="data" format="csv,tsv,parquet,msp,mgf" label="Input File">
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
45 <help>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
46 File with 'comment' metadata in which to assign the selected retention index type from 'comment' to 'retention_index'.
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
47 </help>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
48 </param>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
49 <param name="format" type="select" label="GC column type" help="Type of gas chromatographic column for which to set the retention index value">
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
50 <option value="SemiStdNP">Semi Standard Non-Polar</option>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
51 <option value="StdNP">Standard Non-Polar</option>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
52 <option value="StdPolar">Standard Polar</option>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
53 </param>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
54 </inputs>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
55
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
56 <outputs>
1
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
57 <data format="tsv" name="output" label="${on_string} with ${format} RI">
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
58 <change_format>
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
59 <when input="input.ext" value="msp" format="msp" />
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
60 <when input="input.ext" value="mgf" format="mgf" />
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
61 <when input="input.ext" value="parquet" format="parquet" />
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
62 </change_format>
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
63 </data>
0
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
64 </outputs>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
65
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
66 <tests>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
67 <test>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
68 <param name="input" value="nist_to_ri_2mols_input.csv" ftype="csv"/>
1
7226eba9c09d planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit 4b8a43b863ff8a0ff1d5a08e516068853adf358d
recetox
parents: 0
diff changeset
69 <output name="output" file="nist_to_ri_2mols_output.tsv" ftype="tsv"/>
0
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
70 </test>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
71 <test>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
72 <param name="input" value="nist_ei_ms_2mols_input.msp" ftype="msp"/>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
73 <output name="output" file="nist_ei_ms_2mols_output.msp" ftype="msp"/>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
74 </test>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
75 </tests>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
76
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
77 <help><![CDATA[
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
78 This tool can be used to assign retention indices (RI) from the comment field in csv, tsv, parquet, or msp files.
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
79 The tool will read RI from the comment field and assign them to the RI field. The type of gas chromatographic column
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
80 for which to set the retention index value can be selected.
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
81 ]]></help>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
82
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
83 <citations>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
84 <citation type="doi">10.21105/joss.04337</citation>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
85 </citations>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
86 </tool>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
87