annotate riassigner_from_comment.xml @ 0:6975af39ba79 draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
author recetox
date Thu, 22 Feb 2024 10:40:33 +0000
parents
children 7226eba9c09d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
1 <tool id="riassigner_from_comment" name="RIAssigner init from comment" version="@TOOL_VERSION@+galaxy4" profile="21.09">
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} &&
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
18 mv results.${input.ext} ${output}
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
19 ]]>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
20 </command>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
21
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
22 <configfiles>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
23 <configfile name="script">
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
24 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
25 #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
26 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
27 #else
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
28 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
29 #end if
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
30 query.init_ri_from_comment('${format}')
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
31 query.write('results.${input.ext}')
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
32 </configfile>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
33 </configfiles>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
34
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
35 <inputs>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
36 <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
37 <help>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
38 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
39 </help>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
40 </param>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
41 <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
42 <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
43 <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
44 <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
45 </param>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
46 </inputs>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
47
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
48 <outputs>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
49 <data format_source="input" name="output" label="${on_string} with ${format} RI"/>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
50 </outputs>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
51
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
52 <tests>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
53 <test>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
54 <param name="input" value="nist_to_ri_2mols_input.csv" ftype="csv"/>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
55 <output name="output" file="nist_to_ri_2mols_output.csv" ftype="csv"/>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
56 </test>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
57 <test>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
58 <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
59 <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
60 </test>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
61 </tests>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
62
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
63 <help><![CDATA[
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
64 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
65 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
66 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
67 ]]></help>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
68
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
69 <citations>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
70 <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
71 </citations>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
72 </tool>
6975af39ba79 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/riassigner commit de7fd0986bce8d42bc7e63f9e4caf3c23862e497
recetox
parents:
diff changeset
73