Repository 'xcms_xcmsset'
hg clone https://toolshed.g2.bx.psu.edu/repos/lecorguille/xcms_xcmsset

Changeset 5:588b0a7ae4b0 (2016-02-22)
Previous changeset 4:c5fa73f1703f (2015-11-24) Next changeset 6:0888f7ef739a (2016-04-08)
Commit message:
planemo upload
modified:
abims_xcms_xcmsSet.xml
tool_dependencies.xml
added:
README.rst
test-data/log.txt
removed:
test-data/xset.log.txt
b
diff -r c5fa73f1703f -r 588b0a7ae4b0 README.rst
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/README.rst Mon Feb 22 16:25:05 2016 -0500
b
@@ -0,0 +1,35 @@
+
+Changelog/News
+--------------
+
+
+**Version 2.0.7 - 10/02/2016**
+
+- BUGFIX: better management of errors. Datasets remained green although the process failed
+
+- BUGFIX/IMPROVEMENT: New checking steps around the imported data in order to raise explicte error message before or after launch XCMS: checking of bad characters in the filenames, checking of the XML integrity and checking of duplicates which can appear in the sample names during the XCMS process because of bad characters
+
+- BUGFIX/IMPROVEMENT: New step to check and delete bad characters in the XML: accented characters in the storage path of the mass spectrometer
+
+- UPDATE: refactoring of internal management of inputs/outputs
+
+- UPDATE: refactoring to feed the new report tool
+
+
+**Version 2.0.2 - 18/01/2016
+
+- BUGFIX: Some zip files were tag as "corrupt" by R. We have changed the extraction mode to deal with thoses cases.
+
+
+**Version 2.0.2 - 09/10/2015**
+
+- BUGFIX: Some users reported a bug in xcms.xcmsSet. The preprocessing stops itself and doesn't import the whole dataset contained in the zip file without warning. But meanwhile, please check your samplemetadata dataset and the number of rows.
+
+
+**Version 2.0.2 - 02/06/2015**
+
+- NEW: The W4M workflows will now take as input a zip file to ease the transfer and to improve dataset exchange between tools and users. (See How_to_upload). The previous "Library directory name" is still available but we invite user to switch on the new zip system as soon as possible.
+
+- IMPROVEMENT: new datatype/dataset formats (rdata.xcms.raw, rdata.xcms.group, rdata.xcms.retcor ...) will facilitate the sequence of tools and so avoid incompatibility errors.
+
+- IMPROVEMENT: parameter labels have changed to facilitate their reading.
b
diff -r c5fa73f1703f -r 588b0a7ae4b0 abims_xcms_xcmsSet.xml
--- a/abims_xcms_xcmsSet.xml Tue Nov 24 06:06:30 2015 -0500
+++ b/abims_xcms_xcmsSet.xml Mon Feb 22 16:25:05 2016 -0500
[
b'@@ -1,4 +1,4 @@\n-<tool id="abims_xcms_xcmsSet" name="xcms.xcmsSet" version="2.0.2">\n+<tool id="abims_xcms_xcmsSet" name="xcms.xcmsSet" version="2.0.7">\n     \n     <description>Filtration and Peak Identification using xcmsSet function from xcms R package to preprocess LC/MS data for relative quantification and statistical analysis </description>\n     \n@@ -6,14 +6,14 @@\n         <requirement type="package" version="3.1.2">R</requirement>\n         <requirement type="binary">Rscript</requirement>\n         <requirement type="package" version="1.44.0">xcms</requirement>\n-        <requirement type="package" version="2.1">xcms_w4m_script</requirement>\n+        <requirement type="package" version="2.2.0">xcms_w4m_script</requirement>\n     </requirements>\n     \n     <stdio>\n         <exit_code range="1:" level="fatal" />\n     </stdio>\n     \n-    <command>\n+    <command><![CDATA[\n         xcms.r\n         #if $inputs.input == "lib":\n             library $__app__.config.user_library_import_dir/$__user_email__/$inputs.library\n@@ -22,6 +22,12 @@\n         #end if\n \n         xfunction xcmsSet\n+\n+        xsetRdataOutput $xsetRData\n+        sampleMetadataOutput $sampleMetadata\n+        ticspdf $ticsRawPdf\n+        bicspdf $bpcsRawPdf\n+\n         ## profmethod $profmethod \n         nSlaves \\${GALAXY_SLOTS:-1} method $methods.method \n         #if $methods.method == "centWave":\n@@ -29,14 +35,14 @@\n             peakwidth "c($methods.peakwidth)"\n         #if $methods.options_scanrange.option == "show":\n                 scanrange "c($methods.options_scanrange.scanrange)"\n-            #end if \n-            #if $methods.options_c.option == "show":\n-                mzdiff $methods.options_c.mzdiff\n-                snthresh $methods.options_c.snthresh\n-                integrate $methods.options_c.integrate\n-                noise $methods.options_c.noise\n-                prefilter "c($methods.options_c.prefilter)"\n-            #end if\n+        #end if \n+        #if $methods.options_c.option == "show":\n+            mzdiff $methods.options_c.mzdiff\n+            snthresh $methods.options_c.snthresh\n+            integrate $methods.options_c.integrate\n+            noise $methods.options_c.noise\n+            prefilter "c($methods.options_c.prefilter)"\n+        #end if\n         #elif $methods.method == "matchedFilter":\n             step $methods.step\n             fwhm $methods.fwhm\n@@ -56,13 +62,12 @@\n             scales "c($methods.scales)"\n             SNR.method "$methods.SNR_method"\n         #end if\n-        &amp;&amp; (mv xcmsSet.RData $xsetRData;\n-        mv sampleMetadata.tsv $sampleMetadata;\n-        mv TICs_raw.pdf $ticsRawPdf;\n-        mv BPCs_raw.pdf $bpcsRawPdf;\n-        mv xset.log $log);\n-        cat $log\n-    </command>\n+        ;\n+        return=\\$?;\n+        mv log.txt $log;\n+        cat $log;\n+        sh -c "exit \\$return"\n+    ]]></command>\n     \n     <inputs>\n \n@@ -72,7 +77,7 @@\n                 <option value="lib" >Library directory name</option>\n             </param>\n             <when value="zip_file">\n-                <param name="zip_file" type="data" format="no_unzip.zip" label="Zip file" />\n+                <param name="zip_file" type="data" format="no_unzip.zip,zip" label="Zip file" />\n              </when>\n             <when value="lib">\n                 <param name="library" type="text" size="40" label="Library directory name" help="The name of your directory containing all your data" >\n@@ -113,6 +118,8 @@\n                             <validator type="empty_field"/> \n                         </param>\n                     </when>\n+                    <when value="hide">\n+                    </when>\n                 </conditional>\n                         \n                 <conditional name="options_c">\n@@ -130,6 +137,8 @@\n                         <param name="prefilter" type="text" value="3,100" label="Prefilter step for the first phase" help="[prefilter] Separate by coma k,I. Mass traces are only retained if they contain at least \xe2\x80\x98'..b'-    <help>\n+    <help><![CDATA[\n \n .. class:: infomark\n \n@@ -284,6 +304,52 @@\n     | Zip file (recommended): You can put a zip file containing your inputs: myinputs.zip (containing all your conditions as sub-directories).\n     | library folder: You must specify the name of your "library" (folder) created within your space project (for example: /projet/externe/institut/login/galaxylibrary/yourlibrary). Your library must contain all your conditions as sub-directories.\n \n+Steps for creating the zip file\n+-------------------------------\n+\n+**Step1: Creating your directory and hierarchize the subdirectories**\n+\n+\n+VERY IMPORTANT: If you zip your files under Windows, you must use the 7Zip software (http://www.7-zip.org/), otherwise your zip will not be well unzipped on the platform W4M (zip corrupted bug).\n+\n+Your zip should contain all your conditions as sub-directories. For example, two conditions (mutant and wild):\n+arabidopsis/wild/01.raw\n+arabidopsis/mutant/01.raw\n+\n+**Step2: Creating a zip file**\n+\n+Create your zip file (e.g.: arabidopsis.zip).\n+\n+**Step 3 : Uploading it to our Galaxy server**\n+\n+If your zip file is less than 2Gb, you get use the Get Data tool to upload it.\n+\n+Otherwise if your zip file is larger than 2Gb, please refer to the HOWTO on workflow4metabolomics.org (http://application.sb-roscoff.fr/download/w4m/howto/galaxy_upload_up_2Go.pdf).\n+\n+For more informations, don\'t hesitate to send us an email at supportATworkflow4metabolomics.org).\n+\n+Advices for converting your files for the XCMS input\n+----------------------------------------------------\n+\n+We recommend you to convert your raw files to **mzXML** in centroid mode (smaller files) and the files will be compatible with the xmcs centWave method.\n+\n+**We recommend you the following parameters:**\n+\n+Use Filtering: **True**\n+\n+Use Peak Picking: **True**\n+\n+Peak Peaking -Apply to MS Levels: **All Levels (1-)** : Centroid Mode\n+\n+Use zlib: **64**\n+\n+Binary Encoding: **64**\n+\n+m/z Encoding: **64**\n+\n+Intensity Encoding: **64**\n+\n+\n ----------\n Parameters\n ----------\n@@ -392,8 +458,44 @@\n .. image:: xcms_tics.png\n \n \n+---------------------------------------------------\n \n-    </help>\n+Changelog/News\n+--------------\n+\n+\n+**Version 2.0.7 - 10/02/2016**\n+\n+- BUGFIX: better management of errors. Datasets remained green although the process failed\n+\n+- BUGFIX/IMPROVEMENT: New checking steps around the imported data in order to raise explicte error message before or after launch XCMS: checking of bad characters in the filenames, checking of the XML integrity and checking of duplicates which can appear in the sample names during the XCMS process because of bad characters\n+\n+- BUGFIX/IMPROVEMENT: New step to check and delete bad characters in the XML: accented characters in the storage path of the mass spectrometer\n+\n+- UPDATE: refactoring of internal management of inputs/outputs\n+\n+- UPDATE: refactoring to feed the new report tool\n+\n+\n+**Version 2.0.2 - 18/01/2016\n+\n+- BUGFIX: Some zip files were tag as "corrupt" by R. We have changed the extraction mode to deal with thoses cases.\n+\n+\n+**Version 2.0.2 - 09/10/2015**\n+\n+- BUGFIX: Some users reported a bug in xcms.xcmsSet. The preprocessing stops itself and doesn\'t import the whole dataset contained in the zip file without warning. But meanwhile, please check your samplemetadata dataset and the number of rows.\n+\n+\n+**Version 2.0.2 - 02/06/2015**\n+\n+- NEW: The W4M workflows will now take as input a zip file to ease the transfer and to improve dataset exchange between tools and users. (See How_to_upload). The previous "Library directory name" is still available but we invite user to switch on the new zip system as soon as possible.\n+\n+- IMPROVEMENT: new datatype/dataset formats (rdata.xcms.raw, rdata.xcms.group, rdata.xcms.retcor ...) will facilitate the sequence of tools and so avoid incompatibility errors.\n+\n+- IMPROVEMENT: parameter labels have changed to facilitate their reading.\n+\n+    ]]></help>\n \n \n     <citations>\n'
b
diff -r c5fa73f1703f -r 588b0a7ae4b0 test-data/log.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/log.txt Mon Feb 22 16:25:05 2016 -0500
b
@@ -0,0 +1,56 @@
+ PACKAGE INFO
+parallel 3.1.1
+BiocGenerics 0.12.1
+Biobase 2.26.0
+Rcpp 0.11.5
+mzR 2.0.0
+igraph 0.7.1
+xcms 1.42.0
+snow 0.3.13
+batch 1.1.4
+
+
+ ARGUMENTS INFO
+zipfile /w/galaxy/galaxy4metabolomics/galaxy-dist/database/files/041/dataset_41794.dat
+xfunction xcmsSet
+nSlaves 8
+method matchedFilter
+step 0.01
+fwhm 4
+max 50
+snthresh 1
+steps 2
+
+
+ INFILE PROCESSING INFO
+
+
+ MAIN PROCESSING INFO
+Starting snow cluster with 8 local sockets.
+Detecting features in file # 1 : HU_neg_028.mzXML 
+Detecting features in file # 2 : HU_neg_060.mzXML 
+Detecting features in file # 3 : HU_neg_051.mzXML 
+Detecting features in file # 4 : HU_neg_017.mzXML 
+Detecting features in file # 5 : HU_neg_034.mzXML 
+Detecting features in file # 6 : Blanc09.mzXML 
+Detecting features in file # 7 : Blanc06.mzXML 
+Detecting features in file # 8 : Blanc12.mzXML 
+Detecting features in file # 9 : Blanc04.mzXML 
+
+
+ XSET OBJECT INFO
+An "xcmsSet" object with 9 samples
+
+Time range: 0.7-1140 seconds (0-19 minutes)
+Mass range: 50.0019-999.9863 m/z
+Peaks: 135846 (about 15094 per sample)
+Peak Groups: 0 
+Sample classes: bio, blank 
+
+Profile settings: method = bin
+                  step = 0.01
+
+Memory usage: 13.8 MB
+
+
+ DONE
b
diff -r c5fa73f1703f -r 588b0a7ae4b0 test-data/xset.log.txt
--- a/test-data/xset.log.txt Tue Nov 24 06:06:30 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
b
@@ -1,56 +0,0 @@
- PACKAGE INFO
-parallel 3.1.1
-BiocGenerics 0.12.1
-Biobase 2.26.0
-Rcpp 0.11.5
-mzR 2.0.0
-igraph 0.7.1
-xcms 1.42.0
-snow 0.3.13
-batch 1.1.4
-
-
- ARGUMENTS INFO
-zipfile /w/galaxy/galaxy4metabolomics/galaxy-dist/database/files/041/dataset_41794.dat
-xfunction xcmsSet
-nSlaves 8
-method matchedFilter
-step 0.01
-fwhm 4
-max 50
-snthresh 1
-steps 2
-
-
- INFILE PROCESSING INFO
-
-
- MAIN PROCESSING INFO
-Starting snow cluster with 8 local sockets.
-Detecting features in file # 1 : HU_neg_028.mzXML 
-Detecting features in file # 2 : HU_neg_060.mzXML 
-Detecting features in file # 3 : HU_neg_051.mzXML 
-Detecting features in file # 4 : HU_neg_017.mzXML 
-Detecting features in file # 5 : HU_neg_034.mzXML 
-Detecting features in file # 6 : Blanc09.mzXML 
-Detecting features in file # 7 : Blanc06.mzXML 
-Detecting features in file # 8 : Blanc12.mzXML 
-Detecting features in file # 9 : Blanc04.mzXML 
-
-
- XSET OBJECT INFO
-An "xcmsSet" object with 9 samples
-
-Time range: 0.7-1140 seconds (0-19 minutes)
-Mass range: 50.0019-999.9863 m/z
-Peaks: 135846 (about 15094 per sample)
-Peak Groups: 0 
-Sample classes: bio, blank 
-
-Profile settings: method = bin
-                  step = 0.01
-
-Memory usage: 13.8 MB
-
-
- DONE
b
diff -r c5fa73f1703f -r 588b0a7ae4b0 tool_dependencies.xml
--- a/tool_dependencies.xml Tue Nov 24 06:06:30 2015 -0500
+++ b/tool_dependencies.xml Mon Feb 22 16:25:05 2016 -0500
b
@@ -6,7 +6,7 @@
     <package name="xcms" version="1.44.0">
         <repository changeset_revision="4443617bdd85" name="package_r_xcms_1_44_0" owner="lecorguille" toolshed="https://toolshed.g2.bx.psu.edu" />
     </package>
-    <package name="xcms_w4m_script" version="2.1">
-        <repository changeset_revision="c94c8ef520c8" name="package_xcms_w4m_script_2_1" owner="lecorguille" toolshed="https://toolshed.g2.bx.psu.edu" />
+    <package name="xcms_w4m_script" version="2.2.0">
+        <repository changeset_revision="115cf2b43a3c" name="package_xcms_w4m_script_2_2_0" owner="lecorguille" toolshed="https://toolshed.g2.bx.psu.edu" />
     </package>
 </tool_dependency>