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

Changeset 14:363cce459fff (2018-02-13)
Previous changeset 13:c934dd5c49a9 (2017-11-29) Next changeset 15:b62808a2a008 (2018-09-18)
Commit message:
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 73791d74546087b2a872d9279df960f5bc207298
modified:
destinations_input_type.py
b
diff -r c934dd5c49a9 -r 363cce459fff destinations_input_type.py
--- a/destinations_input_type.py Wed Nov 29 09:45:19 2017 -0500
+++ b/destinations_input_type.py Tue Feb 13 04:47:50 2018 -0500
[
@@ -16,8 +16,11 @@
     inp_data = dict( [ ( da.name, da.dataset ) for da in job.input_datasets ] )
     inp_data.update( [ ( da.name, da.dataset ) for da in job.input_library_datasets ] )
     input_extension = inp_data[ "input" ].extension
-    log.debug("The input extension is %s" % input_extension)
-    if input_extension in ["mzxml","mzml","mzdata","netcdf"]:
-        return 'thread1-mem_free10'
-    else: # zip file
-        return 'thread4-men_free10'
+    if 'input' in inp_data:
+        input_extension = inp_data[ "input" ].extension
+        log.debug("The input extension is %s" % input_extension)
+        if input_extension in ["mzxml","mzml","mzdata","netcdf"]:
+            return 'thread1-mem_free8'
+    # zip file
+    return 'thread9-mem_free8'
+