comparison combineAnnotations.xml @ 13:4b7d43c49061 draft default tip

planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc
author tomnl
date Wed, 27 Nov 2019 12:40:43 +0000
parents 8d5728c85337
children
comparison
equal deleted inserted replaced
12:af718b6a1ff5 13:4b7d43c49061
1 <tool id="mspurity_combineannotations" name="msPurity.combineAnnotations" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@"> 1 <tool id="mspurity_combineannotations" name="msPurity.combineAnnotations" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@">
2 <description> 2 <description>Combine, score and rank metabolite annotation results</description>
3 Combine, score and rank metabolite annotation results
4 </description>
5
6 <macros> 3 <macros>
7 <import>macros.xml</import> 4 <import>macros.xml</import>
8 </macros> 5 </macros>
9 6 <expand macro="requirements"/>
10 <expand macro="requirements"> 7 <command detect_errors="exit_code"><![CDATA[
11 </expand> 8 Rscript '$__tool_directory__/combineAnnotations.R'
12 9 --sm_resultPth='$sm_resultPth'
13 <stdio> 10 --metfrag_resultPth='$metfrag_resultPth'
14 <exit_code range="1:" /> 11 --sirius_csi_resultPth='$sirius_csi_resultPth'
15 </stdio> 12 --probmetab_resultPth='$probmetab_resultPth'
16 <command interpreter="Rscript"><![CDATA[ 13 --ms1_lookup_resultPth='$ms1_lookup_resultPth'
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
24 14
25 #if $ms1_lookup_checkAdducts: 15 #if $ms1_lookup_checkAdducts:
26 --ms1_lookup_checkAdducts 16 --ms1_lookup_checkAdducts
27 #end if 17 #end if
28 18
29 --ms1_lookup_keepAdducts="$ms1_lookup_keepAdducts" 19 --ms1_lookup_keepAdducts='$ms1_lookup_keepAdducts'
30 --ms1_lookup_dbSource=$ms1_lookup_dbSource 20 --ms1_lookup_dbSource=$ms1_lookup_dbSource
31 21
32 --sm_weight=$sm_weight 22 --sm_weight=$sm_weight
33 --metfrag_weight=$metfrag_weight 23 --metfrag_weight=$metfrag_weight
34 --sirius_csi_weight=$sirius_csi_weight 24 --sirius_csi_weight=$sirius_csi_weight
42 #end if 32 #end if
43 33
44 --compoundDbType=$compoundDbTypeCond.compoundDbType 34 --compoundDbType=$compoundDbTypeCond.compoundDbType
45 35
46 #if $compoundDbTypeCond.compoundDbType== 'sqlite' 36 #if $compoundDbTypeCond.compoundDbType== 'sqlite'
47 --compoundDbPth=$compoundDbTypeCond.compoundDbPth 37 --compoundDbPth='$compoundDbTypeCond.compoundDbPth'
48 #end if 38 #end if
49 39
50 40
51 ]]></command> 41 ]]></command>
52 <inputs> 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 help="The SQLite database generated from msPurity.spectralMatching"/> 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 help="The result of the MetFrag analysis (requires a column indicating the XCMS group ID)"/> 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 help="The result of the CSI:FingerID analysis (requires a column indicating the XCMS group ID)"/> 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 help="The result of the Probmetab analysis (requires a column indicating the XCMS group ID)"/> 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 help="The result of the a generic MS1 lookup annotation software (e.g. BEAMS can be used)"/> 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 help="Provide a list of adducts that should be used from the MS1 lookup (e.g. [M+H]+, [M+Na]+"/> 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 help="Check if adducts match to those found in CAMERA (requires the database to have been created with CAMERA object"/> 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 <option value="hmdb" selected="true">hmdb</option> 60 <option value="hmdb" selected="true">hmdb</option>
71 <option value="pubchem">pubchem</option> 61 <option value="pubchem">pubchem</option>
72 <option value="kegg">kegg</option> 62 <option value="kegg">kegg</option>
73 </param> 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" /> 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" />
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" /> 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" />
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" /> 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" />
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" /> 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" />
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" /> 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" />
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" /> 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" />
80 <param name="create_new_database" type="boolean" checked="true" label="Create a new database for the results?" 70 <param argument="--create_new_database" type="boolean" checked="true" label="Create a new database for the results?"
81 help="A copy will be made of the input SQLite spectral matching database and the results will be added to this copy. 71 help="A copy will be made of the input SQLite spectral matching database and the results will be added to this copy.
82 When False, the input SQLite database will be updated the results. Use False 72 When False, the input SQLite database will be updated the results. Use False
83 if you want to reduce storage space being used."/> 73 if you want to reduce storage space being used."/>
84 74
85 <conditional name="compoundDbTypeCond"> 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 t.n.lawson@bham.ac.uk)." > 76 <param argument="--compoundDbType" type="select" label="compoundDbType" help="Database type for compound database to be used full database available on request - contact t.n.lawson@bham.ac.uk)." >
87 <option value="sqlite" selected="true">SQLite</option> 77 <option value="sqlite" selected="true">SQLite</option>
88 <option value="local_config" >Locally configured MySQL, Postgres or SQLite database</option> 78 <option value="local_config" >Locally configured MySQL, Postgres or SQLite database</option>
89 </param> 79 </param>
90 <when value="sqlite"> 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 </when> 82 </when>
93 <when value="local_config"> 83 <when value="local_config">
94 </when>
95 <when value="msPurityData">
96 </when> 84 </when>
97 </conditional> 85 </conditional>
98 86
99 </inputs> 87 </inputs>
100 <outputs> 88 <outputs>