changeset 2:942ffa3c38b8 draft

planemo upload for repository https://github.com/workflow4metabolomics/xcms commit ba2a5c2e962a95155c344dc1864a9c76eb565e9c
author lecorguille
date Tue, 09 Oct 2018 15:50:03 -0400
parents 008aceb33627
children 10f7b1548200
files xcms_export_samplemetadata.r
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
@@ -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