# HG changeset patch # User workflow4metabolomics # Date 1588080910 14400 # Node ID eb15a3841da42e85272ca5dbdd45b2fd3ffe6a6e # Parent 14b1c52fae6217a728ae1f75b3bed634adefaa66 "planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 42a0bcde81726702194f1b4ecd741d0545648d40" diff -r 14b1c52fae62 -r eb15a3841da4 abims_xcms_xcmsSet.xml --- a/abims_xcms_xcmsSet.xml Wed Feb 12 08:30:58 2020 -0500 +++ b/abims_xcms_xcmsSet.xml Tue Apr 28 09:35:10 2020 -0400 @@ -1,4 +1,4 @@ - + Chromatographic peak detection @@ -30,6 +30,7 @@ #if $methods.method == "CentWave": @COMMAND_CENTWAVE@ + peaklist $methods.CentWaveAdv.peaklist ## List of regions-of-interest (ROI) #set $sectionROI = $methods.CentWaveAdv.CentWaveAdvROI @COMMAND_CENTWAVEADVROI@ @@ -61,6 +62,7 @@ snthresh $methods.MatchedFilterAdv.snthresh steps $methods.MatchedFilterAdv.steps mzdiff $methods.MatchedFilterAdv.mzdiff + peaklist $methods.MatchedFilterAdv.peaklist #elif $methods.method == "MSW": snthresh $methods.snthresh verboseColumns $methods.verboseColumns @@ -103,6 +105,7 @@
+
@@ -134,6 +137,7 @@ +
@@ -183,6 +187,12 @@ + + methods['method'] == 'CentWave' and (methods['CentWaveAdv']['peaklist']) + + + methods['method'] == 'MatchedFilter' and (methods['MatchedFilterAdv']['peaklist']) + @@ -492,6 +502,11 @@ .. _News: https://bioconductor.org/packages/release/bioc/news/xcms/NEWS +**Version 3.6.1+galaxy1 - 22/04/2020** + +- NEW: possibility to get a tabular file with all the chromatographic peaks obtained with the CentWave and MatchedFilter methods. + + @HELP_XCMS_NEWVERSION_3610@ **Version 3.4.4.1 - 30/04/2019** diff -r 14b1c52fae62 -r eb15a3841da4 lib.r --- a/lib.r Wed Feb 12 08:30:58 2020 -0500 +++ b/lib.r Tue Apr 28 09:35:10 2020 -0400 @@ -151,12 +151,14 @@ group_colors <- brewer.pal(length(unique(xdata$sample_group)), "Set1") names(group_colors) <- unique(xdata$sample_group) + col_per_samp <- as.character(xdata$sample_group) + for(i in 1:length(group_colors)){col_per_samp[col_per_samp==(names(group_colors)[i])]<-group_colors[i]} xlim <- c(min(featureDefinitions(xdata)$rtmin), max(featureDefinitions(xdata)$rtmax)) for (i in 1:nrow(featureDefinitions(xdata))) { mzmin = featureDefinitions(xdata)[i,]$mzmin mzmax = featureDefinitions(xdata)[i,]$mzmax - plotChromPeakDensity(xdata, param = param, mz=c(mzmin,mzmax), col=group_colors, pch=16, xlim=xlim, main=paste(round(mzmin,mzdigit),round(mzmax,mzdigit))) + plotChromPeakDensity(xdata, param = param, mz=c(mzmin,mzmax), col=col_per_samp, pch=16, xlim=xlim, main=paste(round(mzmin,mzdigit),round(mzmax,mzdigit))) legend("topright", legend=names(group_colors), col=group_colors, cex=0.8, lty=1) } diff -r 14b1c52fae62 -r eb15a3841da4 macros_xcms.xml --- a/macros_xcms.xml Wed Feb 12 08:30:58 2020 -0500 +++ b/macros_xcms.xml Tue Apr 28 09:35:10 2020 -0400 @@ -98,7 +98,7 @@ - + @@ -193,7 +193,7 @@ - + diff -r 14b1c52fae62 -r eb15a3841da4 xcms_xcmsSet.r --- a/xcms_xcmsSet.r Wed Feb 12 08:30:58 2020 -0500 +++ b/xcms_xcmsSet.r Tue Apr 28 09:35:10 2020 -0400 @@ -40,6 +40,7 @@ if (!is.null(args$filterAcquisitionNum)) filterAcquisitionNumParam <- args$filterAcquisitionNum if (!is.null(args$filterRt)) filterRtParam <- args$filterRt if (!is.null(args$filterMz)) filterMzParam <- args$filterMz +if (!is.null(args$peaklist)) peaklistParam <- args$peaklist method <- args$method @@ -100,6 +101,14 @@ #chromTIC = chromatogram(xdata, aggregationFun = "sum") #chromBPI = chromatogram(xdata, aggregationFun = "max") +# Create a chromPeaks table if required +if (exists("peaklistParam")) { + if(peaklistParam){ + cat("\nCreating the chromatographic peaks' table...\n") + write.table(chromPeaks(xdata), file="chromPeak_table.tsv",sep="\t",quote=F,row.names=F) + } +} + cat("\n\n") # ----- EXPORT -----