0
|
1 <tool id="lookup_library" name="RIQC-Lookup RI for CAS numbers in library" version="1.0.2">
|
|
2 <description>Lookup or estimate the RI using a "known RI values" CAS numbers library</description>
|
|
3 <command interpreter="python">
|
|
4 library_lookup.py
|
|
5 $library_file
|
|
6 $input
|
|
7 "$col_type"
|
|
8 "$polarity"
|
|
9 $output
|
|
10 #for $ctype in $pref
|
|
11 ${ctype.columntype}
|
|
12 #end for
|
|
13 $regression.model
|
|
14 </command>
|
|
15 <inputs>
|
|
16 <page>
|
|
17 <param format="tabular" name="input" type="data" label="NIST identifications as tabular file"
|
|
18 help="Select a tab delimited NIST metabolite identifications file (converted from PDF)" />
|
|
19 <param name="library_file" type="select" label="CAS x RI Library file"
|
|
20 help="Select a library/lookup file containing RI values for CAS numbers on various chromatography columns "
|
|
21 dynamic_options='get_directory_files("tool-data/shared/PRIMS-metabolomics/RI_DB_libraries")'/>
|
|
22 <param name="col_type" type="select" label="Select column type" refresh_on_change="true"
|
|
23 display="radio" dynamic_options='get_column_type(library_file)'
|
|
24 help="" />
|
|
25 </page>
|
|
26 <page>
|
|
27 <param name="polarity" type="select" label="Select polarity" refresh_on_change="true"
|
|
28 display="radio" dynamic_options='filter_column(library_file,col_type)'
|
|
29 help="" />
|
|
30 </page>
|
|
31 <page>
|
|
32 <conditional name="regression">
|
|
33 <param name="regression_select" type="boolean" checked="false" label="Apply regression method"
|
|
34 help="If no data for the selected column is present in the database, selecting this option will try
|
|
35 to convert Retention Indices using data from other GC-columns with a regression method. Please
|
|
36 note that only the first given GC-column above will be used for this, any alternatives will be
|
|
37 ignored" />
|
|
38 <when value="true">
|
|
39 <param name="model" format="tabular" type="data" label="Tabular file containing regression model"
|
|
40 help="This file contains the coefficients used to perform the regression from one GC-column
|
|
41 to another GC-column"/>
|
|
42 </when>
|
|
43 <when value="false">
|
|
44 <param name="model" type="hidden" value="False" />
|
|
45 </when>
|
|
46 </conditional>
|
|
47 <repeat name="pref" title="Select column name preference">
|
|
48 <param name="columntype" type="select" label="Column name" refresh_on_change="true"
|
|
49 dynamic_options='filter_column2(library_file, col_type, polarity)'
|
|
50 help="Select one or more column names for filtering. The order defines the priority." />
|
|
51 </repeat>
|
|
52 </page>
|
|
53 </inputs>
|
|
54 <outputs>
|
|
55 <data format="tabular" label="${tool.name} on" name="output" />
|
|
56 </outputs>
|
|
57 <code file="match_library.py" />
|
|
58 <help>
|
|
59 Performs a lookup of the RI values by matching CAS numbers from the given NIST identifications file to a library.
|
|
60 If a direct match is NOT found for the preferred column name, a regression can be done to find
|
|
61 the theoretical RI value based on known RI values for the CAS number on other column types (see step 4).
|
|
62 If there is no match for the CAS number on any column type, then the record is not given a RI.
|
|
63
|
|
64
|
|
65
|
|
66 </help>
|
|
67
|
|
68 </tool>
|