Mercurial > repos > lecorguille > xcms_plot_chromatogram
diff xcms_plot_chromatogram.r @ 10:dbd877060ac3 draft
"planemo upload for repository https://github.com/workflow4metabolomics/xcms commit f1caf2a3bf23cf319a75dd12c86402555dd02617"
author | workflow4metabolomics |
---|---|
date | Wed, 12 Feb 2020 08:30:06 -0500 |
parents | 271c9d5f0d10 |
children | 024974037c4e |
line wrap: on
line diff
--- a/xcms_plot_chromatogram.r Mon Jun 03 07:12:50 2019 -0400 +++ b/xcms_plot_chromatogram.r Wed Feb 12 08:30:06 2020 -0500 @@ -49,8 +49,8 @@ cat("\t\tDRAW GRAPHICS\n") register(SerialParam()) -if (!is.null(chromTIC) || is.null(chromTIC)) { cat("\t\t\tCompute TIC\n"); chromTIC <- chromatogram(xdata, aggregationFun = "sum") } -if (!is.null(chromBPI) || is.null(chromBPI)) { cat("\t\t\tCompute BPI\n"); chromBPI <- chromatogram(xdata, aggregationFun = "max") } +if (!exists("chromTIC") || is.null(chromTIC)) { cat("\t\t\tCompute TIC\n"); chromTIC <- chromatogram(xdata, aggregationFun = "sum") } +if (!exists("chromBPI") || is.null(chromBPI)) { cat("\t\t\tCompute BPI\n"); chromBPI <- chromatogram(xdata, aggregationFun = "max") } if (!is.null(chromTIC_adjusted)) chromTIC <- chromTIC_adjusted if (!is.null(chromBPI_adjusted)) chromBPI <- chromBPI_adjusted @@ -66,11 +66,12 @@ print(xdata) cat("\n\n") -cat("\txcmsSet OBJECT INFO\n") +# 2020-01-17 - disable because xcms 3.4.4 raises an error with xdata build with xcms 3.6.1 +#cat("\txcmsSet OBJECT INFO\n") # Get the legacy xcmsSet object -xset <- getxcmsSetObject(xdata) -print(xset) -cat("\n\n") +#xset <- getxcmsSetObject(xdata) +#print(xset) +#cat("\n\n") cat("\tDONE\n")