diff idpQonvertEmbedder.xml @ 8:fb6ce5041417 draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot commit baf4379f0cf287238a4c988723611fe0983917db
author galaxyp
date Tue, 21 Nov 2017 13:18:32 -0500
parents aec819a9068b
children 2ec9bd69259e
line wrap: on
line diff
--- a/idpQonvertEmbedder.xml	Thu Nov 02 14:14:34 2017 -0400
+++ b/idpQonvertEmbedder.xml	Tue Nov 21 13:18:32 2017 -0500
@@ -3,6 +3,14 @@
     <description>Embed human/mouse gene metadata into IDPicker files</description>
     <macros>
         <import>macros.xml</import>
+        <xml name="IsobaricQuantitationOptions" token_tolerance="0.015">
+            <param argument="-ReporterIonMzTolerance" type="float" min="0.000001" value="@TOLERANCE@" label="Tolerance window to search for iTRAQ/TMT reporter ions" help="The most intense ion in the tolerance window is used as the reporter ion intensity." />
+            <param name="ReporterIonMzTolerance_units" type="select" label="Tolerance units">
+                <option value="ppm">Parts per million</option>
+                <option value="daltons" selected="true">Daltons</option>
+            </param>
+            <param argument="-NormalizeReporterIons" type="boolean" value="false" label="Normalize reporter ion channels to match 1:1 ratio?" help="This option will adjust the intensity of each channel so that the total intensity of each channel across an entire source file is the same." />
+        </xml>
     </macros>
     <expand macro="requirements" />
     <stdio>
@@ -28,7 +36,13 @@
             #if $use_raw_data_condition.use_raw_data
                 -EmbedSpectrumScanTimes $use_raw_data_condition.EmbedSpectrumScanTimes
                 -EmbedSpectrumSources $use_raw_data_condition.EmbedSpectrumSources
-                -QuantitationMethod $use_raw_data_condition.QuantitationMethod
+
+                #set $qm = $use_raw_data_condition.quantitation_method_condition.QuantitationMethod
+                -QuantitationMethod $qm
+                #if $qm != "None" and $qm != "LabelFree"
+                    -ReporterIonMzTolerance '$use_raw_data_condition.quantitation_method_condition.ReporterIonMzTolerance $use_raw_data_condition.quantitation_method_condition.ReporterIonMzTolerance_units'
+                    -NormalizeReporterIons $use_raw_data_condition.quantitation_method_condition.NormalizeReporterIons
+                #end if
             #end if
             output.idpDB
 ]]>
@@ -43,15 +57,25 @@
                 <param name="input_raw" type="data" format="mzml,mzxml,mgf,ms2,mz5" label="Input raw MS files" multiple="true" />
                 <param argument="-EmbedSpectrumSources" type="boolean" value="false" label="Embed Spectrum Sources?" help="Allows visualizing peptide-spectrum-matches without downloading the raw data. Embedding spectra will greatly increase the size of the database, even though only spectra that passed the import FDR filter will be included. This option can take a LONG time to run." />
                 <param argument="-EmbedSpectrumScanTimes" type="boolean" value="false" label="Embed Spectrum Scan Times?" help="If the pepXML/mzIdentML file did not contain scan time (retention time) information, this will look up that information in the raw data. This option, run by itself, will take some time (it has to open every raw file)." />
-                <param argument="-QuantitationMethod" type="select" label="Quantitation Method" help="Enables quantitation methods other than spectral counting. For isobaric isotope labelling quantitation (iTRAQ/TMT) or intensity-based label-free quantitation (XIC), select the appropriate QuantitationMethod here. You have to keep iTRAQ/TMT and label-free data separate since you can only specify a single QuantitationMethod for the entire assembly. Like embedding spectrum sources, this option can take a LONG time to run, although not quite as long.">
-                    <option value="None" selected="true">None</option>
-                    <option value="LabelFree">Label-free (XIC)</option>
-                    <option value="ITRAQ4plex">iTRAQ 4-plex</option>
-                    <option value="ITRAQ8plex">iTRAQ 8-plex</option>
-                    <option value="TMT2plex">TMT 2-plex</option>
-                    <option value="TMT6plex">TMT 6-plex</option>
-                    <option value="TMT10plex">TMT 10-plex</option>
-                </param>
+                <conditional name="quantitation_method_condition">
+                    <param argument="-QuantitationMethod" type="select" label="Quantitation Method" help="Enables quantitation methods other than spectral counting. For isobaric isotope labelling quantitation (iTRAQ/TMT) or intensity-based label-free quantitation (XIC), select the appropriate QuantitationMethod here. You have to keep iTRAQ/TMT and label-free data separate since you can only specify a single QuantitationMethod for the entire assembly. Like embedding spectrum sources, this option can take a LONG time to run, although not quite as long.">
+                        <option value="None" selected="true">None</option>
+                        <option value="LabelFree">Label-free (XIC)</option>
+                        <option value="ITRAQ4plex">iTRAQ 4-plex</option>
+                        <option value="ITRAQ8plex">iTRAQ 8-plex</option>
+                        <option value="TMT2plex">TMT 2-plex</option>
+                        <option value="TMT6plex">TMT 6-plex</option>
+                        <option value="TMT10plex">TMT 10-plex</option>
+                    </param>
+                    <when value="ITRAQ4plex"><expand macro="IsobaricQuantitationOptions" /></when>
+                    <when value="ITRAQ8plex"><expand macro="IsobaricQuantitationOptions" /></when>
+                    <when value="TMT2plex"><expand macro="IsobaricQuantitationOptions" /></when>
+                    <when value="TMT6plex"><expand macro="IsobaricQuantitationOptions" /></when>
+                    <when value="TMT10plex"><expand macro="IsobaricQuantitationOptions" tolerance="0.003" /></when>
+
+                    <when value="None"></when>
+                    <when value="LabelFree"></when>
+                </conditional>
             </when>
         </conditional>
     </inputs>
@@ -97,6 +121,9 @@
             <param name="EmbedSpectrumSources" value="false" />
             <param name="EmbedSpectrumScanTimes" value="true" />
             <param name="QuantitationMethod" value="ITRAQ4plex" />
+            <param name="ReporterIonMzTolerance" value="10" />
+            <param name="ReporterIonMzTolerance_units" value="ppm" />
+            <param name="NormalizeReporterIons" value="true" />
             <output name="output" file="201208-378803-embeddedGenesAndQuantitation.idpDB" compare="sim_size" delta="500000" />
         </test>
     </tests>