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

Changeset 2:942ffa3c38b8 (2018-10-09)
Previous changeset 1:008aceb33627 (2018-10-09) Next changeset 3:10f7b1548200 (2018-11-09)
Commit message:
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit ba2a5c2e962a95155c344dc1864a9c76eb565e9c
modified:
xcms_export_samplemetadata.r
b
diff -r 008aceb33627 -r 942ffa3c38b8 xcms_export_samplemetadata.r
--- a/xcms_export_samplemetadata.r Tue Oct 09 12:57:14 2018 -0400
+++ b/xcms_export_samplemetadata.r Tue Oct 09 15:50:03 2018 -0400
b
@@ -15,6 +15,8 @@
 sampleMetadata <- NULL
 for(image in args$images) {
     load(image)
+    if (exists("raw_data")) xdata <- raw_data
+    if (!exists("xdata")) stop("\n\nERROR: The RData doesn't contain any object called 'xdata'. This RData should have been created by an old version of XMCS 2.*")
     if (is.null(sampleMetadata))
         sampleMetadata <- xdata@phenoData@data
     else