Mercurial > repos > recetox > assign_ri_from_comment
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6975af39ba79 |
---|---|
1 <tool id="riassigner_from_comment" name="RIAssigner init from comment" version="@TOOL_VERSION@+galaxy4" profile="21.09"> | |
2 <description>Assign different retention indices from unstructured comment metadata</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="creator"/> | |
7 | |
8 <xrefs> | |
9 <xref type="bio.tools">riassigner</xref> | |
10 </xrefs> | |
11 | |
12 <requirements> | |
13 <requirement type="package" version="@TOOL_VERSION@">riassigner</requirement> | |
14 </requirements> | |
15 | |
16 <command detect_errors="exit_code"><![CDATA[ | |
17 python ${script} && | |
18 mv results.${input.ext} ${output} | |
19 ]]> | |
20 </command> | |
21 | |
22 <configfiles> | |
23 <configfile name="script"> | |
24 from RIAssigner.data import PandasData, MatchMSData | |
25 #if $input.ext in ["csv", "tsv", "parquet"] | |
26 query = PandasData('${input}', '${input.ext}', rt_unit="seconds") | |
27 #else | |
28 query = MatchMSData('${input}', '${input.ext}', rt_unit="seconds") | |
29 #end if | |
30 query.init_ri_from_comment('${format}') | |
31 query.write('results.${input.ext}') | |
32 </configfile> | |
33 </configfiles> | |
34 | |
35 <inputs> | |
36 <param name="input" type="data" format="csv,tsv,parquet,msp,mgf" label="Input File"> | |
37 <help> | |
38 File with 'comment' metadata in which to assign the selected retention index type from 'comment' to 'retention_index'. | |
39 </help> | |
40 </param> | |
41 <param name="format" type="select" label="GC column type" help="Type of gas chromatographic column for which to set the retention index value"> | |
42 <option value="SemiStdNP">Semi Standard Non-Polar</option> | |
43 <option value="StdNP">Standard Non-Polar</option> | |
44 <option value="StdPolar">Standard Polar</option> | |
45 </param> | |
46 </inputs> | |
47 | |
48 <outputs> | |
49 <data format_source="input" name="output" label="${on_string} with ${format} RI"/> | |
50 </outputs> | |
51 | |
52 <tests> | |
53 <test> | |
54 <param name="input" value="nist_to_ri_2mols_input.csv" ftype="csv"/> | |
55 <output name="output" file="nist_to_ri_2mols_output.csv" ftype="csv"/> | |
56 </test> | |
57 <test> | |
58 <param name="input" value="nist_ei_ms_2mols_input.msp" ftype="msp"/> | |
59 <output name="output" file="nist_ei_ms_2mols_output.msp" ftype="msp"/> | |
60 </test> | |
61 </tests> | |
62 | |
63 <help><![CDATA[ | |
64 This tool can be used to assign retention indices (RI) from the comment field in csv, tsv, parquet, or msp files. | |
65 The tool will read RI from the comment field and assign them to the RI field. The type of gas chromatographic column | |
66 for which to set the retention index value can be selected. | |
67 ]]></help> | |
68 | |
69 <citations> | |
70 <citation type="doi">10.21105/joss.04337</citation> | |
71 </citations> | |
72 </tool> | |
73 |