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

Changeset 7:e9fbb65451f6 (2022-02-08)
Previous changeset 6:d4a17be5429a (2021-03-04) Next changeset 8:cb4aeec93d49 (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 d4a17be5429a -r e9fbb65451f6 README.rst
--- a/README.rst Thu Mar 04 12:34:06 2021 +0000
+++ b/README.rst Tue Feb 08 14:04:07 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 d4a17be5429a -r e9fbb65451f6 filterFragSpectra.R
--- a/filterFragSpectra.R Thu Mar 04 12:34:06 2021 +0000
+++ b/filterFragSpectra.R Tue Feb 08 14:04:07 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 d4a17be5429a -r e9fbb65451f6 macros.xml
--- a/macros.xml Thu Mar 04 12:34:06 2021 +0000
+++ b/macros.xml Tue Feb 08 14:04:07 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>