|
1 | 1 | <tool id="mspurity_combineannotations" name="msPurity.combineAnnotations" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@">
|
2 |
| - <description> |
3 |
| - Combine, score and rank metabolite annotation results |
4 |
| - </description> |
5 |
| - |
| 2 | + <description>Combine, score and rank metabolite annotation results</description> |
6 | 3 | <macros>
|
7 | 4 | <import>macros.xml</import>
|
8 | 5 | </macros>
|
9 |
| - |
10 |
| - <expand macro="requirements"> |
11 |
| - </expand> |
12 |
| - |
13 |
| - <stdio> |
14 |
| - <exit_code range="1:" /> |
15 |
| - </stdio> |
16 |
| - <command interpreter="Rscript"><![CDATA[ |
17 |
| - combineAnnotations.R |
18 |
| - --sm_resultPth="$sm_resultPth" |
19 |
| - --metfrag_resultPth="$metfrag_resultPth" |
20 |
| - --sirius_csi_resultPth="$sirius_csi_resultPth" |
21 |
| - --probmetab_resultPth="$probmetab_resultPth" |
22 |
| -
|
23 |
| - --ms1_lookup_resultPth=$ms1_lookup_resultPth |
| 6 | + <expand macro="requirements"/> |
| 7 | + <command detect_errors="exit_code"><![CDATA[ |
| 8 | + Rscript '$__tool_directory__/combineAnnotations.R' |
| 9 | + --sm_resultPth='$sm_resultPth' |
| 10 | + --metfrag_resultPth='$metfrag_resultPth' |
| 11 | + --sirius_csi_resultPth='$sirius_csi_resultPth' |
| 12 | + --probmetab_resultPth='$probmetab_resultPth' |
| 13 | + --ms1_lookup_resultPth='$ms1_lookup_resultPth' |
24 | 14 |
|
25 | 15 | #if $ms1_lookup_checkAdducts:
|
26 | 16 | --ms1_lookup_checkAdducts
|
27 | 17 | #end if
|
28 | 18 |
|
29 |
| - --ms1_lookup_keepAdducts="$ms1_lookup_keepAdducts" |
| 19 | + --ms1_lookup_keepAdducts='$ms1_lookup_keepAdducts' |
30 | 20 | --ms1_lookup_dbSource=$ms1_lookup_dbSource
|
31 | 21 |
|
32 | 22 | --sm_weight=$sm_weight
|
|
44 | 34 | --compoundDbType=$compoundDbTypeCond.compoundDbType
|
45 | 35 |
|
46 | 36 | #if $compoundDbTypeCond.compoundDbType== 'sqlite'
|
47 |
| - --compoundDbPth=$compoundDbTypeCond.compoundDbPth |
| 37 | + --compoundDbPth='$compoundDbTypeCond.compoundDbPth' |
48 | 38 | #end if
|
49 | 39 |
|
50 | 40 |
|
51 | 41 | ]]></command>
|
52 | 42 | <inputs>
|
53 | 43 |
|
54 | 44 |
|
55 |
| - <param name="sm_resultPth" type="data" label="Spectral matching result" format="sqlite" |
| 45 | + <param argument="--sm_resultPth" type="data" label="Spectral matching result" format="sqlite" |
56 | 46 | help="The SQLite database generated from msPurity.spectralMatching"/>
|
57 |
| - <param name="metfrag_resultPth" type="data" label="Metfrag result" format="tsv,tabular" optional="true" |
| 47 | + <param argument="--metfrag_resultPth" type="data" label="Metfrag result" format="tsv,tabular" optional="true" |
58 | 48 | help="The result of the MetFrag analysis (requires a column indicating the XCMS group ID)"/>
|
59 |
| - <param name="sirius_csi_resultPth" type="data" label="Sirius CSI:FingerID result" format="tsv,tabular" optional="true" |
| 49 | + <param argument="--sirius_csi_resultPth" type="data" label="Sirius CSI:FingerID result" format="tsv,tabular" optional="true" |
60 | 50 | help="The result of the CSI:FingerID analysis (requires a column indicating the XCMS group ID)"/>
|
61 |
| - <param name="probmetab_resultPth" type="data" label="Probmetab result" format="tsv,tabular" optional="true" |
| 51 | + <param argument="--probmetab_resultPth" type="data" label="Probmetab result" format="tsv,tabular" optional="true" |
62 | 52 | help="The result of the Probmetab analysis (requires a column indicating the XCMS group ID)"/>
|
63 |
| - <param name="ms1_lookup_resultPth" type="data" label="MS1 Lookup result" format="tsv,tabular" optional="true" |
| 53 | + <param argument="--ms1_lookup_resultPth" type="data" label="MS1 Lookup result" format="tsv,tabular" optional="true" |
64 | 54 | help="The result of the a generic MS1 lookup annotation software (e.g. BEAMS can be used)"/>
|
65 |
| - <param name="ms1_lookup_keepAdducts" type="text" label="MS1 lookup adducts to keep" optional="true" |
| 55 | + <param argument="--ms1_lookup_keepAdducts" type="text" label="MS1 lookup adducts to keep" optional="true" |
66 | 56 | help="Provide a list of adducts that should be used from the MS1 lookup (e.g. [M+H]+, [M+Na]+"/>
|
67 |
| - <param name="ms1_lookup_checkAdducts" type="boolean" label="MS1 lookup check adducts to CAMERA" |
| 57 | + <param argument="--ms1_lookup_checkAdducts" type="boolean" label="MS1 lookup check adducts to CAMERA" |
68 | 58 | help="Check if adducts match to those found in CAMERA (requires the database to have been created with CAMERA object"/>
|
69 |
| - <param name="ms1_lookup_dbSource" type="select" label="MS1 lookup database source" help="Which database was used for the MS1 lookup" > |
| 59 | + <param argument="--ms1_lookup_dbSource" type="select" label="MS1 lookup database source" help="Which database was used for the MS1 lookup" > |
70 | 60 | <option value="hmdb" selected="true">hmdb</option>
|
71 | 61 | <option value="pubchem">pubchem</option>
|
72 | 62 | <option value="kegg">kegg</option>
|
73 | 63 | </param>
|
74 |
| - <param name="sm_weight" type="float" min="0.0" max="1.0" value="0.3" label="Spectral matching weight" help="all weights need to sum to 1" /> |
75 |
| - <param name="metfrag_weight" type="float" min="0.0" max="1.0" value="0.2" label="Metfrag weight" help="all weights need to sum to 1" /> |
76 |
| - <param name="sirius_csi_weight" type="float" min="0.0" max="1.0" value="0.2" label="Sirius CSI:FingerID weight" help="all weights need to sum to 1" /> |
77 |
| - <param name="probmetab_weight" type="float" min="0.0" max="1.0" value="0.0" label="Probmetab weight" help="all weights need to sum to 1" /> |
78 |
| - <param name="ms1_lookup_weight" type="float" min="0.0" max="1.0" value="0.05" label="MS1 Lookup weight" help="all weights need to sum to 1" /> |
79 |
| - <param name="biosim_weight" type="float" min="0.0" max="1.0" value="0.25" label="Biological similarity weight" help="all weights need to sum to 1" /> |
80 |
| - <param name="create_new_database" type="boolean" checked="true" label="Create a new database for the results?" |
| 64 | + <param argument="--sm_weight" type="float" min="0.0" max="1.0" value="0.3" label="Spectral matching weight" help="all weights need to sum to 1" /> |
| 65 | + <param argument="--metfrag_weight" type="float" min="0.0" max="1.0" value="0.2" label="Metfrag weight" help="all weights need to sum to 1" /> |
| 66 | + <param argument="--sirius_csi_weight" type="float" min="0.0" max="1.0" value="0.2" label="Sirius CSI:FingerID weight" help="all weights need to sum to 1" /> |
| 67 | + <param argument="--probmetab_weight" type="float" min="0.0" max="1.0" value="0.0" label="Probmetab weight" help="all weights need to sum to 1" /> |
| 68 | + <param argument="--ms1_lookup_weight" type="float" min="0.0" max="1.0" value="0.05" label="MS1 Lookup weight" help="all weights need to sum to 1" /> |
| 69 | + <param argument="--biosim_weight" type="float" min="0.0" max="1.0" value="0.25" label="Biological similarity weight" help="all weights need to sum to 1" /> |
| 70 | + <param argument="--create_new_database" type="boolean" checked="true" label="Create a new database for the results?" |
81 | 71 | help="A copy will be made of the input SQLite spectral matching database and the results will be added to this copy.
|
82 | 72 | When False, the input SQLite database will be updated the results. Use False
|
83 | 73 | if you want to reduce storage space being used."/>
|
84 | 74 |
|
85 | 75 | <conditional name="compoundDbTypeCond">
|
86 |
| - < param name="compoundDbType" type= "select" label= "compoundDbType" help= "Database type for compound database to be used full database available on request - contact [email protected])." > |
| 76 | + < param argument="--compoundDbType" type= "select" label= "compoundDbType" help= "Database type for compound database to be used full database available on request - contact [email protected])." > |
87 | 77 | <option value="sqlite" selected="true">SQLite</option>
|
88 | 78 | <option value="local_config" >Locally configured MySQL, Postgres or SQLite database</option>
|
89 | 79 | </param>
|
90 | 80 | <when value="sqlite">
|
91 |
| - <param type="data" name="compoundDbPth" label="SQLite compound database pth" format="sqlite" help=""/> |
| 81 | + <param argument="--compoundDbPth" type="data" label="SQLite compound database pth" format="sqlite" help=""/> |
92 | 82 | </when>
|
93 | 83 | <when value="local_config">
|
94 | 84 | </when>
|
95 |
| - <when value="msPurityData"> |
96 |
| - </when> |
97 | 85 | </conditional>
|
98 | 86 |
|
99 | 87 | </inputs>
|
|
0 commit comments