Repository 'mspurity_purityx'
hg clone https://toolshed.g2.bx.psu.edu/repos/computational-metabolomics/mspurity_purityx

Changeset 7:942e676515fe (2022-02-08)
Previous changeset 6:6b9a83e08467 (2021-03-04) Next changeset 8:b16952cc06d2 (2024-06-12)
Commit message:
"planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit e3b17490a958d80ebe78ef1bebebef48948e1240"
modified:
README.rst
filterFragSpectra.R
macros.xml
b
diff -r 6b9a83e08467 -r 942e676515fe README.rst
--- a/README.rst Thu Mar 04 12:25:25 2021 +0000
+++ b/README.rst Tue Feb 08 13:57:32 2022 +0000
b
@@ -3,13 +3,13 @@
 |Build Status (Travis)| |Git| |Bioconda| |License|
 
 
-Version v1.16.2+galaxy0
+Version v1.16.2+galaxy1
 ------------------------
 
   - msPurity
      - bioconductor-mspurity v1.16.2
   - Galaxy tools
-     - v0
+     - v1
 
 About
 ------
@@ -32,8 +32,6 @@
 * Conda (dev and testing): https://anaconda.org/tomnl/bioconductor-mspurity
 
 
-
-
 Dependencies
 ------------------
 Dependencies for these Galaxy tools should be handled by CONDA.
@@ -53,8 +51,13 @@
 - Julien Saint-Vanne (jsaintvanne) - `ABiMS (France) <http://abims.sb-roscoff.fr/>`_
 - Simon Bray (sbray@informatik.uni-freiburg.de) - `University of Freiburg (Germany) <https://www.uni-freiburg.de/>`_
 
+
 Changes
 -------------------------
+v1.16.2-galaxy1
+  - Fix for "scan" option for spectral matching
+  - Add allfrag option for filterFragSpectra
+
 v1.16.2-galaxy0
   - Version bump
   - Fix for intra spectral matching
b
diff -r 6b9a83e08467 -r 942e676515fe filterFragSpectra.R
--- a/filterFragSpectra.R Thu Mar 04 12:25:25 2021 +0000
+++ b/filterFragSpectra.R Tue Feb 08 13:57:32 2022 +0000
b
@@ -17,7 +17,8 @@
   make_option("--snr", default = 0.0),
 
   make_option("--rmp", action = "store_true"),
-  make_option("--snmeth", default = "median", type = "character")
+  make_option("--snmeth", default = "median", type = "character"),
+  make_option("--allfrag", action = "store_true")
 )
 
 opt <- parse_args(OptionParser(option_list = option_list))
@@ -39,12 +40,19 @@
   opt$rmp <- TRUE
 }
 
+if (is.null(opt$allfrag)) {
+  opt$allfrag <- FALSE
+}else{
+  opt$allfrag <- TRUE
+}
+
 pa <- filterFragSpectra(pa,
                         ilim = opt$ilim,
                         plim = opt$plim,
                         ra = opt$ra,
                         snr = opt$snr,
                         rmp = opt$rmp,
+                        allfrag = opt$allfrag,
                         snmeth = opt$snmeth)
 
 print(pa)
b
diff -r 6b9a83e08467 -r 942e676515fe macros.xml
--- a/macros.xml Thu Mar 04 12:25:25 2021 +0000
+++ b/macros.xml Tue Feb 08 13:57:32 2022 +0000
b
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <macros>
     <token name="@TOOL_VERSION@">1.16.2</token>
-    <token name="@GALAXY_TOOL_VERSION@">0</token>
+    <token name="@GALAXY_TOOL_VERSION@">1</token>
 
     <xml name="requirements">
         <requirements>
@@ -271,7 +271,7 @@
                         <option value="FAB-BE">FAB-BE</option>
                         <option value="FAB-EB">FAB-EB</option>
                         <option value="FAB-EBEB">FAB-EBEB</option>
-                        <option value="FAB-EBEB">FD-B</option>
+                        <option value="FD-B">FD-B</option>
                         <option value="FI-B">FI-B</option>
                         <option value="Flow-injection QqQ/MS">Flow-injection QqQ/MS</option>
                         <option value="GC-EI-Q">GC-EI-Q</option>
@@ -333,13 +333,14 @@
 
             <conditional name="@QL_SHRT@_spectraTypes_cond">
                 <param name="@QL_SHRT@_spectraTypes_bool" type="boolean" label="Filter on spectral type?"
-                help="" />
+                help="Note that when using 'scan' spectra types the spectraFilter option may need to be FALSE 
+       if 'allfrag' was not selecting when performing filterFragSpectra or if no filtering was performed at all" />
                 <when value="true">
                     <param argument="--@QL_SHRT@_spectraTypes" type="select" multiple="true"  label="Spectra type" >
                         <option value="av_all" selected="true">Averaged all spectra ignoring inter-intra relationships </option>
                         <option value="inter">Averaged inter spectra</option>
                         <option value="intra">Averaged intra spectra </option>
-                        <option value="scans">All individual scans</option>
+                        <option value="scan">All individual scans (may need to set spectraFilter to false with this option)</option>
                         <option value="NA">Not applicable/defined</option>
                     </param>
                 </when>