Previous changeset 8:cce30b3398e0 (2016-07-06) Next changeset 10:6caa60dcc217 (2017-02-07) |
Commit message:
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 08e7f269a5c59687a7768be8db5fcb4e4d736093 |
modified:
README.rst abims_xcms_fillPeaks.xml lib.r macros.xml xcms.r |
added:
test-data/faahKO.xset.group.retcor.group.fillPeaks.dataMatrix.tsv test-data/faahKO.xset.group.retcor.group.fillPeaks.variableMetadata.tsv |
b |
diff -r cce30b3398e0 -r ee29f0a6e361 README.rst --- a/README.rst Wed Jul 06 17:43:29 2016 -0400 +++ b/README.rst Mon Jan 30 08:53:48 2017 -0500 |
b |
@@ -2,6 +2,10 @@ Changelog/News -------------- +**Version 2.0.8 - 22/12/2016** + +- IMPROVEMENT: Add an option to export the peak list at this step without have to wait camara.annotate + **Version 2.0.7 - 06/07/2016** - UPGRADE: upgrate the xcms version from 1.44.0 to 1.46.0 |
b |
diff -r cce30b3398e0 -r ee29f0a6e361 abims_xcms_fillPeaks.xml --- a/abims_xcms_fillPeaks.xml Wed Jul 06 17:43:29 2016 -0400 +++ b/abims_xcms_fillPeaks.xml Mon Jan 30 08:53:48 2017 -0500 |
[ |
b'@@ -1,6 +1,6 @@\n-<tool id="abims_xcms_fillPeaks" name="xcms.fillPeaks" version="2.0.7">\n+<tool id="abims_xcms_fillPeaks" name="xcms.fillPeaks" version="2.0.8">\n \n- <description>Integrate the signal in the region of that peak group not represented and create a new peak</description>\n+ <description>Integrate a sample\'s signal in regions where peak groups are not represented to create new peaks in missing areas</description>\n \n <macros>\n <import>macros.xml</import>\n@@ -10,36 +10,64 @@\n <expand macro="stdio"/>\n \n <command><![CDATA[\n- @COMMAND_XCMS_SCRIPT@ \n- xfunction fillPeaks \n- image $image \n+ @COMMAND_XCMS_SCRIPT@\n+ xfunction fillPeaks\n+ image $image\n \n xsetRdataOutput $xsetRData\n \n method $method\n \n+ #if $peaklist.peaklistBool\n+ variableMetadataOutput $variableMetadata\n+ dataMatrixOutput $dataMatrix\n+ convertRTMinute $peaklist.convertRTMinute\n+ numDigitsMZ $peaklist.numDigitsMZ\n+ numDigitsRT $peaklist.numDigitsRT\n+ intval $peaklist.intval\n+ #end if\n+\n @COMMAND_ZIPFILE_LOAD@\n \n- @COMMAND_LOG_EXIT@ \n- \n+ @COMMAND_LOG_EXIT@\n+\n ]]></command>\n \n <inputs>\n- <param name="image" type="data" format="rdata.xcms.group,rdata" label="xset RData file" help="output file from another function xcms (group)" />\n+ <param name="image" type="data" format="rdata.xcms.group,rdata" label="xset RData file" help="output file from another xcms function (group)" />\n <param name="method" type="select" label="Filling method" help="[method] See the help section below">\n <option value="chrom" selected="true">chrom</option>\n <option value="MSW" >MSW</option>\n </param>\n- \n+ <conditional name="peaklist">\n+ <param name="peaklistBool" type="boolean" label="Get a Peak List" />\n+ <when value="true">\n+ <param name="convertRTMinute" type="boolean" checked="false" truevalue="TRUE" falsevalue="FALSE" label="Convert retention time (seconds) into minutes" help="Convert the columns rtmed, rtmin and rtmax into minutes"/>\n+ <param name="numDigitsMZ" type="integer" value="4" label="Number of decimal places for mass values reported in ions\' identifiers." help="A minimum of 4 decimal places is recommended. Useful to avoid duplicates within identifiers" />\n+ <param name="numDigitsRT" type="integer" value="0" label="Number of decimal places for retention time values reported in ions\' identifiers." help="Useful to avoid duplicates within identifiers" />\n+ <param name="intval" type="select" label="Reported intensity values" help="[intval] See the help section below">\n+ <option value="into" selected="true">into</option>\n+ <option value="maxo">maxo</option>\n+ <option value="intb">intb</option>\n+ </param>\n+ </when>\n+ <when value="false" />\n+ </conditional>\n <expand macro="zipfile_load"/>\n \n </inputs>\n \n <outputs>\n <data name="xsetRData" format="rdata.xcms.fillpeaks" label="${image.name[:-6]}.fillPeaks.RData" />\n+ <data name="variableMetadata" format="tabular" label="${image.name[:-6]}.fillPeaks.variableMetadata.tsv">\n+ <filter>(peaklist[\'peaklistBool\'])</filter>\n+ </data>\n+ <data name="dataMatrix" format="tabular" label="${image.name[:-6]}.fillPeaks.dataMatrix.tsv" >\n+ <filter>(peaklist[\'peaklistBool\'])</filter>\n+ </data>\n <data name="log" format="txt" label="xset.log.txt" hidden="true" />\n </outputs>\n- \n+\n <tests>\n <!--<test>\n <param name="image" value="xset.group.retcor.group.RData"/>\n@@ -59,6 +87,12 @@\n <test>\n <param name="image" value="faahKO.xset.group.retcor.group.RData"/>\n <param name="method" value="ch'..b'hose peak groups, integrate the signal\n in the region of that peak group and create a new peak.\n@@ -117,12 +154,12 @@\n +---------------------------+------------------+-----------------------+\n | Name | Output file | Format |\n +===========================+==================+=======================+\n-|xcms.diffreport | xset.retcor.RData| rdata.xcms.fillpeaks |\n+|CAMERA.annotate | xset.retcor.RData| rdata.xcms.fillpeaks |\n +---------------------------+------------------+-----------------------+\n-|xcms.annotateDiffreport | xset.retcor.RData| rdata.xcms.fillpeaks |\n+|xcms.summary | xset.retcor.RData| rdata.xcms.fillpeaks |\n +---------------------------+------------------+-----------------------+\n \n-The output file **xset.fillpeaks** is an RData file. You can continue your analysis using it in **xcms.diffreport** or **xcms.annotateDiffreport** tool as an next step of the workflow.\n+The output file **xset.fillpeaks** is a RData file. You can continue your analysis using it in **CAMERA.annotate** or **xcms.summary** tool as a following step of your workflow.\n \n \n **General schema of the metabolomic workflow**\n@@ -159,21 +196,50 @@\n \n | "MSW" is used for peaklists without retention-time information like those from direct-infusion spectra.\n \n+\n+Get a Peak List\n+---------------\n+\n+If \'true\', the module generates two additional files corresponding to the peak list:\n+- the variable metadata file (corresponding to information about extracted ions such as mass or retention time)\n+- the data matrix (corresponding to related intensities)\n+\n+**decimal places for [mass or retention time] values in identifiers**\n+\n+ | Ions\' identifiers are constructed as MxxxTyyy where \'xxx\' is the ion median mass and \'yyy\' the ion median retention time.\n+ | Two parameters are used to adjust the number of decimal places wanted in identifiers for mass and retention time respectively.\n+ | Theses parameters do not affect decimal places in columns other than the identifier one.\n+\n+**Reported intensity values**\n+\n+ | This parameter determines which values should be reported as intensities in the dataMatrix table; it correspond to xcms \'intval\' parameter:\n+ | - into: integrated area of original (raw) peak\n+ | - maxo: maximum intensity of original (raw) peak\n+ | - intb: baseline corrected integrated peak area (only available if peak detection was done by \xe2\x80\x98findPeaks.centWave\xe2\x80\x99)\n+\n ------------\n Output files\n ------------\n \n xset.fillPeaks.RData : rdata.xcms.fillpeaks format\n \n- | Rdata file that will be used in the **xcms.diffreport** or **xcms.annotateDiffreport** step of the workflow.\n- \n+ | Rdata file that will be used in the **CAMERA.annotate** or **xcms.summary** step of the workflow.\n+\n+xset.variableMetadata.tsv : tabular format\n+\n+ | Table containing information about ions; can be used as one input of **Quality_Metrics** or **Generic_filter* modules.\n+\n+xset.dataMatrix.tsv : tabular format\n+\n+ | Table containing ions\' intensities; can be used as one input of **Quality_Metrics** or **Generic_filter* modules.\n+\n ------\n \n-.. class:: infomark \n+.. class:: infomark\n \n-The output file is an group.RData file. You can continue your analysis using it in **xcms.diffreport** or **xcms.annotateDiffreport** tool.\n+The output file is a xset.fillPeaks.RData file. You can continue your analysis using it in **CAMERA.annotate** or **xcms.summary** tool.\n \n- \n+\n ---------------------------------------------------\n \n ---------------\n@@ -189,7 +255,8 @@\n ----------\n \n | method -> **chrom**\n- \n+ | Get a Peak List -> **false**\n+\n \n Output files\n ------------\n@@ -202,6 +269,10 @@\n Changelog/News\n --------------\n \n+**Version 2.0.8 - 22/12/2016**\n+\n+- IMPROVEMENT: Add an option to export the peak list at this step without having to wait for CAMERA.annotate\n+\n **Version 2.0.7 - 06/07/2016**\n \n - UPGRADE: upgrate the xcms version from 1.44.0 to 1.46.0\n' |
b |
diff -r cce30b3398e0 -r ee29f0a6e361 lib.r --- a/lib.r Wed Jul 06 17:43:29 2016 -0400 +++ b/lib.r Mon Jan 30 08:53:48 2017 -0500 |
[ |
b'@@ -1,14 +1,59 @@\n-# lib.r version="2.0.1"\n #Authors ABiMS TEAM\n-#Lib.r for Galaxy Workflow4Metabo\n+#Lib.r for Galaxy Workflow4Metabolomics xcms tools\n+#\n+#version 2.4: lecorguille\n+# add getPeaklistW4M\n+#version 2.3: yguitton\n+# correction for empty PDF when only 1 class\n #version 2.2\n-#Based on lib.r 2.1\n-#Modifications made by Guitton Yann \n-#correct bug in Base Peak Chromatogram (BPC) option, not only TIC when scanrange used in xcmsSet\n-#Note if scanrange is used a warning is prompted in R console but do not stop PDF generation\n+# correct bug in Base Peak Chromatogram (BPC) option, not only TIC when scanrange used in xcmsSet\n+# Note if scanrange is used a warning is prompted in R console but do not stop PDF generation\n+#version 2.1: yguitton\n+# Modifications made by Guitton Yann\n \n \n+#@author G. Le Corguille\n+#This function convert if it is required the Retention Time in minutes\n+RTSecondToMinute <- function(variableMetadata, convertRTMinute) {\n+ if (convertRTMinute){\n+ #converting the retention times (seconds) into minutes\n+ print("converting the retention times into minutes in the variableMetadata")\n+ variableMetadata[,"rt"]=variableMetadata[,"rt"]/60\n+ variableMetadata[,"rtmin"]=variableMetadata[,"rtmin"]/60\n+ variableMetadata[,"rtmax"]=variableMetadata[,"rtmax"]/60\n+ }\n+ return (variableMetadata)\n+}\n \n+#@author G. Le Corguille\n+#This function format ions identifiers\n+formatIonIdentifiers <- function(dataData, numDigitsRT=0, numDigitsMZ=0) {\n+ return(make.unique(paste0("M",round(dataData[,"mz"],numDigitsMZ),"T",round(dataData[,"rt"],numDigitsRT))))\n+}\n+\n+#@author G. Le Corguille\n+# value: intensity values to be used into, maxo or intb\n+getPeaklistW4M <- function(xset, intval="into",convertRTMinute=F,numDigitsMZ=4,numDigitsRT=0,variableMetadataOutput,dataMatrixOutput) {\n+ groups <- xset@groups\n+ values <- groupval(xset, "medret", value=intval)\n+ \n+ # renamming of the column rtmed to rt to fit with camera peaklist function output\n+ colnames(groups)[colnames(groups)=="rtmed"] <- "rt"\n+ colnames(groups)[colnames(groups)=="mzmed"] <- "mz"\n+ \n+ ids <- formatIonIdentifiers(groups, numDigitsRT=numDigitsRT, numDigitsMZ=numDigitsMZ)\n+ groups = RTSecondToMinute(groups, convertRTMinute)\n+\n+ rownames(groups) = ids\n+ rownames(values) = ids\n+\n+ #@TODO: add "name" as the first column name\n+ #colnames(groups)[1] = "name"\n+ #colnames(values)[1] = "name"\n+\n+ write.table(groups, file=variableMetadataOutput,sep="\\t",quote=F,row.names = T,col.names = NA)\n+ write.table(values, file=dataMatrixOutput,sep="\\t",quote=F,row.names = T,col.names = NA)\n+}\n \n #@author Y. Guitton\n getBPC <- function(file,rtcor=NULL, ...) {\n@@ -44,13 +89,13 @@\n for (j in 1:N) {\n \n TIC[[j]] <- getBPC(files[j])\n- #good for raw \n+ #good for raw\n # seems strange for corrected\n #errors if scanrange used in xcmsSetgeneration\n if (!is.null(xcmsSet) && rt == "corrected")\n rtcor <- xcmsSet@rt$corrected[[j]] else\n rtcor <- NULL\n- \n+\n TIC[[j]] <- getBPC(files[j],rtcor=rtcor)\n # TIC[[j]][,1]<-rtcor\n }\n@@ -68,11 +113,11 @@\n \n \n ##plot start\n- \n+\n if (length(class)>2){\n for (k in 1:(length(class)-1)){\n for (l in (k+1):length(class)){\n- #print(paste(class[k],"vs",class[l],sep=" ")) \n+ #print(paste(class[k],"vs",class[l],sep=" "))\n plot(0, 0, type="n", xlim = xlim/60, ylim = ylim, main = paste("Base Peak Chromatograms \\n","BPCs_",class[k]," vs ",class[l], sep=""), xlab = "Retention Time (min)", ylab = "BPC")\n colvect<-NULL\n for (j in 1:length(classnames[[k]])) {\n@@ -115,6 +160,24 @@\n \n }#end length ==2\n \n+ #case where only one class\n+ if (length(class)==1){\n+ k=1\n+\t\tylim = range(sapply(TIC, function(x) range(x[,2])))\n+ colvect<-NULL\n+ plot(0, 0, type="n", xlim = xlim/60, ylim = ylim, main = paste("Base Peak Chromatograms \\n","BPCs_",class[k], sep=""), xlab = "Retention Tim'..b'cmsSet@phenoData[,1]==class[i])\n }\n- \n+\n N <- length(files)\n TIC <- vector("list",N)\n \n@@ -178,7 +241,7 @@\n if (length(class)>2){\n for (k in 1:(length(class)-1)){\n for (l in (k+1):length(class)){\n- #print(paste(class[k],"vs",class[l],sep=" ")) \n+ #print(paste(class[k],"vs",class[l],sep=" "))\n plot(0, 0, type="n", xlim = xlim/60, ylim = ylim, main = paste("Total Ion Chromatograms \\n","TICs_",class[k]," vs ",class[l], sep=""), xlab = "Retention Time (min)", ylab = "TIC")\n colvect<-NULL\n for (j in 1:length(classnames[[k]])) {\n@@ -219,6 +282,25 @@\n legend("topright",paste(basename(files[c(classnames[[k]],classnames[[l]])])), col = colvect, lty = lty, pch = pch)\n \n }#end length ==2\n+\n+ #case where only one class\n+ if (length(class)==1){\n+\t k=1\n+\t ylim = range(sapply(TIC, function(x) range(x[,2])))\n+\n+\t plot(0, 0, type="n", xlim = xlim/60, ylim = ylim, main = paste("Total Ion Chromatograms \\n","TICs_",class[k], sep=""), xlab = "Retention Time (min)", ylab = "TIC")\n+ colvect<-NULL\n+\t\tfor (j in 1:length(classnames[[k]])) {\n+ tic <- TIC[[classnames[[k]][j]]]\n+\t\t\t# points(tic[,1]/60, tic[,2], col = cols[i], pch = pch[i], type="l")\n+\t\t\tpoints(tic[,1]/60, tic[,2], col = cols[classnames[[k]][j]], pch = pch[classnames[[k]][j]], type="l")\n+ colvect<-append(colvect,cols[classnames[[k]][j]])\n+\t }\n+\n+\t\tlegend("topright",paste(basename(files[c(classnames[[k]])])), col = colvect, lty = lty, pch = pch)\n+\n+\t}#end length ==1\n+\n dev.off() #pdf(pdfname,w=16,h=10)\n \n invisible(TIC)\n@@ -237,7 +319,7 @@\n sampleMetadata=xset@phenoData\n sampleNamesOrigin=rownames(sampleMetadata)\n sampleNamesMakeNames=make.names(sampleNamesOrigin)\n- \n+\n if (any(duplicated(sampleNamesMakeNames))) {\n write("\\n\\nERROR: Usually, R has trouble to deal with special characters in its column names, so it rename them using make.names().\\nIn your case, at least two columns after the renaming obtain the same name, thus XCMS will collapse those columns per name.", stderr())\n for (sampleName in sampleNamesOrigin) {\n@@ -285,7 +367,7 @@\n \n #Set the polarity attribute\n sampleMetadata$polarity[sampleMetadata$sampleMetadata==samplename]=polarity\n- \n+\n #Delete xcmsRaw object because it creates a bug for the fillpeaks step\n rm(xcmsRaw)\n }\n@@ -321,7 +403,7 @@\n filesystem_filepaths=filesystem_filepaths[grep(filepattern, filesystem_filepaths, perl=T)]\n \n # COMPARISON\n- if (!is.na(table(filesystem_filepaths %in% files)["FALSE"])) { \n+ if (!is.na(table(filesystem_filepaths %in% files)["FALSE"])) {\n write("\\n\\nERROR: List of the files which will not be imported by xcmsSet",stderr())\n write(filesystem_filepaths[!(filesystem_filepaths %in% files)],stderr())\n stop("\\n\\nERROR: One or more of your files will not be import by xcmsSet. It may due to bad characters in their filenames.")\n@@ -347,7 +429,7 @@\n write(capture, stderr())\n stop("ERROR: xcmsSet cannot continue with incorrect mzXML or mzML files")\n }\n- \n+\n }\n \n \n@@ -359,7 +441,7 @@\n cat("Checking Non ASCII characters in the XML...\\n")\n \n processed=F\n- l=system( paste("find",directory, "-not -name \'\\\\.*\' -not -path \'*conda-env*\' -type f -iname \'*.*ml*\'"),intern=TRUE) \n+ l=system( paste("find",directory, "-not -name \'\\\\.*\' -not -path \'*conda-env*\' -type f -iname \'*.*ml*\'"),intern=TRUE)\n for (i in l){\n cmd=paste("LC_ALL=C grep \'[^ -~]\' \\"",i,"\\"",sep="")\n capture=suppressWarnings(system(cmd,intern=TRUE))\n@@ -368,7 +450,7 @@\n print( paste("WARNING: Non ASCII characters have been removed from the ",i,"file") )\n c=system(cmd,intern=TRUE)\n capture=""\n- processed=T \n+ processed=T\n }\n }\n if (processed) cat("\\n\\n")\n@@ -376,7 +458,7 @@\n }\n \n \n-## \n+##\n ## This function will compute MD5 checksum to check the data integrity\n ##\n #@author Gildas Le Corguille lecorguille@sb-roscoff.fr\n@@ -397,4 +479,3 @@\n \n return(as.matrix(md5sum(files)))\n }\n-\n' |
b |
diff -r cce30b3398e0 -r ee29f0a6e361 macros.xml --- a/macros.xml Wed Jul 06 17:43:29 2016 -0400 +++ b/macros.xml Mon Jan 30 08:53:48 2017 -0500 |
b |
@@ -2,7 +2,6 @@ <macros> <xml name="requirements"> <requirements> - <requirement type="package" version="3.1.2">R</requirement> <requirement type="package" version="0.4_1">r-snow</requirement> <requirement type="package" version="1.46.0">bioconductor-xcms</requirement> <requirement type="package" version="1.1_4">r-batch</requirement> @@ -40,7 +39,7 @@ <conditional name="zipfile_load_conditional"> <param name="zipfile_load_select" type="select" label="Resubmit your zip file" help="Use only if you get a message which say that your original zip file have been deleted on the server." > <option value="no" >no need</option> - <option value="yes" selected="peakgroups">yes</option> + <option value="yes">yes</option> </param> <when value="no"> </when> |
b |
diff -r cce30b3398e0 -r ee29f0a6e361 test-data/faahKO.xset.group.retcor.group.fillPeaks.dataMatrix.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/faahKO.xset.group.retcor.group.fillPeaks.dataMatrix.tsv Mon Jan 30 08:53:48 2017 -0500 |
b |
b'@@ -0,0 +1,8158 @@\n+\tko15\tko16\twt15\twt16\n+M200.1T2873.7\t76871.5724822568\t506848.884266667\t54795.557051693\t70712.7019597617\n+M200.2T3876.7\t1144.01499999999\t508.190132093174\t167.153311923928\t0\n+M200.2T3676.2\t0\t0\t5108.15999999988\t3298.99587926868\n+M200.2T3485.7\t6029.94499999992\t0\t0\t0\n+M200.2T3529.2\t0\t0\t4586.52650000006\t0\n+M200.2T3184.4\t0\t4333.4849999999\t0\t0\n+M200.3T3816.6\t0\t0\t1018.81499999998\t0\n+M200.3T3977.6\t0\t0\t0\t1242.61000000004\n+M200.8T3543.6\t0\t2863.6449999999\t0\t0\n+M200.8T4062.6\t0\t0\t1339.64000000005\t212.633272048894\n+M200.8T3783.3\t0\t0\t1680.81000000006\t0\n+M200.9T3273.9\t0\t1428.56579382624\t4090.91000000014\t2632.56262635375\n+M200.9T2555.9\t0\t14307.2299999999\t0\t0\n+M200.9T3625.9\t0\t1129.74329389996\t846.832572052814\t2931.24499999993\n+M201.1T3138.4\t23998.304598303\t254581.758476187\t61872.928839246\t23938.5867670927\n+M201.2T3509.4\t4023.61499999999\t716.684794188254\t0\t0\n+M201.2T4065.7\t354.759136757153\t120.799333675191\t1275.47500000004\t217.235067034405\n+M201.2T3687.2\t0\t0\t2906.20499999993\t0\n+M201.2T3997.9\t0\t0\t1657.33500000006\t0\n+M201.2T3798.7\t0\t0\t628.988532860297\t3245.80999999992\n+M201.3T3936.4\t0\t0\t1284.72816666668\t0\n+M201.3T4036.9\t0\t0\t0\t1220.69999999998\n+M201.3T4155.1\t0\t774.575999999962\t0\t0\n+M201.3T3882.6\t0\t1220.70000000004\t596.06839236263\t0\n+M201.7T3854.6\t892.050000000031\t0\t0\t0\n+M201.7T4020\t0\t0\t831.015000000029\t0\n+M201.8T3300.5\t2759.095\t0\t203.041783144463\t0\n+M201.8T4068.9\t515.477113310478\t0\t754.233600000007\t0\n+M201.8T3280.2\t0\t3872.96250000005\t0\t0\n+M201.8T3321\t3588.54500000001\t0\t2184.14587440592\t680.752724149015\n+M201.8T3170.8\t7682.58500000004\t0\t0\t0\n+M201.8T3762.7\t0\t0\t1151.71733333335\t0\n+M201.8T3377.2\t9879.84499999977\t0\t0\t0\n+M201.9T3268.7\t77227.3769090911\t4845.50686607645\t43819.3479046752\t9586.93001142395\n+M201.9T4140.9\t0\t0\t0\t732.419999999983\n+M201.9T4032.8\t0\t688.600000000024\t0\t0\n+M201.9T3895.1\t248.545776466807\t841.96999999998\t0\t3098.52044641804\n+M201.9T4009.2\t1147.18712241809\t1629.165\t764.696680521557\t472.632308163321\n+M201.9T3186\t10430.8884626037\t3806.07999999999\t1823.13851904744\t2108.81069363708\n+M202T2899.5\t36435.3079999996\t5925.29111289948\t18920.5714858276\t5543.76952406103\n+M202T3942.7\t0\t0\t1461.71\t131.70361488243\n+M202.2T3292.2\t0\t0\t0\t3372.57500000002\n+M202.6T4038.5\t0\t0\t0\t978.124999999977\n+M202.8T3316.9\t0\t0\t0\t1136.19000000004\n+M202.9T3305.5\t431.124790089052\t1694.89499999996\t0\t2048.62135448795\n+M203.1T3979\t527.419034783012\t0\t2796.65500000002\t2329.6554046415\n+M203.2T4141\t0\t1020.37999999998\t124.572393433318\t691.733108650811\n+M203.2T3348\t0\t2974.74816666671\t0\t0\n+M203.2T3327.3\t3852.53759999981\t0\t0\t0\n+M203.2T2679.2\t0\t0\t0\t6346.07499999991\n+M203.2T4178.6\t257.608663224945\t804.409999999981\t0\t750.373044499613\n+M203.2T3790.1\t0\t2690.23500000009\t374.050323368023\t795.962510881292\n+M203.2T3722.2\t639.681095784589\t0\t0\t3345.96999999992\n+M203.3T4057.1\t0\t0\t832.191847925998\t1550.91499999999\n+M203.7T3522.9\t0\t110.759221778917\t967.169999999987\t0\n+M203.8T3060.6\t3905.96266666662\t0\t0\t0\n+M203.8T4128.5\t0\t0\t0\t793.455000000074\n+M203.8T3665.2\t3002.85120000003\t0\t401.30435850189\t0\n+M203.8T4022.7\t1111.14999999999\t1447.15657402239\t0\t109.024210593649\n+M204.1T4142.4\t0\t0\t0\t1089.24000000004\n+M204.1T3843.4\t0\t419.889287204237\t1676.11500000006\t1632.68532194826\n+M204.2T3397.1\t964.058693506483\t162.861069898986\t691.3363891851\t1586.91\n+M204.2T2627.4\t0\t0\t3518.12000000012\t0\n+M204.3T4075.1\t0\t1062.63500000004\t0\t0\n+M204.4T3703.4\t0\t0\t0\t1446.05999999997\n+M204.4T3596.6\t405.142351380973\t0\t0\t1032.90000000004\n+M204.8T3573.8\t1707.7862088125\t0\t0\t2466.43999999994\n+M204.9T2585.8\t0\t0\t2287.73759999989\t9189.67999999988\n+M205T2787.2\t1924712.01585714\t1757150.9648\t2129885.09357143\t1634341.9855862\n+M205.1T4040.1\t2600.69759999987\t0\t0\t0\n+M205.2T3782.1\t2777.8750000001\t0\t5180.14999999997\t0\n+M205.2T3916.9\t0\t3392.55866666671\t285.445337336418\t910.731294074392\n+M205.2T3761.1\t0\t0\t2425.44000000002\t0\n+M205.3T4064.1\t0\t0\t1198.79000000004\t0\n+M205.7T4079.9\t0\t575.630156425085\t793.454999999982\t0\n+M205.8T3292.2\t0\t0\t0\t1023.50999999998\n+M205.8T3088\t0\t0\t0\t4682.47999999989\n+M205.8T3349.8\t226.392005428193\t0\t641.649999999985\t0\n+M'..b'597.9T2566.3\t428.80999999999\t704.249999999984\t5259.96499999993\t419.366399999979\n+M598T3684.6\t0\t0\t0\t2907.39840000003\n+M598T3160.7\t0\t1976.32135156572\t0\t1547.78500000005\n+M598T3574.3\t4893.75500000017\t0\t0\t0\n+M598T3247.2\t0\t0\t11160.015\t0\n+M598.1T3740.1\t6735.75999999984\t1507.48470651824\t0\t1204.11021794332\n+M598.1T2986.1\t2726.56464877876\t7907.94500000028\t1858.99545730168\t0\n+M598.2T3720.5\t7601.78150954762\t29323.4050000004\t0\t48876.8056363635\n+M598.2T3847.9\t0\t19344.1924374998\t2689.81421000592\t19147.856234332\n+M598.2T4222.9\t0\t0\t0\t852.92499999998\n+M598.3T3217.7\t0\t16185.5021250003\t7823.81125148536\t2693.06700579228\n+M598.3T2830.6\t5337.7886250001\t2892.25018630074\t2041.28568142639\t0\n+M598.3T3698.7\t23655.1372269246\t0\t8555.87680238366\t28572.205000001\n+M598.3T3811\t10279.2954993742\t201593.909999999\t6054.00661583122\t38867.0801165145\n+M598.4T3705\t18053.2113055963\t307529.419597421\t16924.3734137891\t65022.6200000009\n+M598.4T3493.4\t0\t0\t9308.62000000032\t0\n+M598.4T3116.2\t3137.82499999993\t0\t0\t0\n+M598.4T4233.7\t1558.64039999994\t0\t433.505000000001\t282.560050600392\n+M598.4T3367.9\t6528.77505295252\t0\t0\t7501.04499999995\n+M598.4T3405.6\t2523.54098664481\t711.921989369875\t4532.24000000016\t0\n+M598.4T3822.3\t910.075584336678\t126881.278714286\t3278.69127651828\t0\n+M598.5T2677.3\t0\t2826.02880000002\t0\t0\n+M598.5T2662.1\t2139.08160000002\t0\t0\t238.034675483067\n+M598.5T2955.5\t5756.0700000002\t1517.11899102972\t0\t0\n+M598.5T3176.9\t0\t2838.6076666667\t0\t0\n+M598.5T2530.9\t0\t1600.99499999996\t0\t259.78999999999\n+M598.5T4019.5\t4444.59999999997\t0\t0\t0\n+M598.5T2761.6\t0\t5078.42499999999\t1057.00399020397\t0\n+M598.6T4229.1\t0\t267.670604372541\t0\t881.094999999979\n+M598.6T3183\t0\t0\t0\t2164.39499999999\n+M598.7T2931.4\t0\t2557.20999999994\t0\t0\n+M598.7T2849.9\t0\t0\t0\t3757.56499999997\n+M598.8T2618.5\t0\t2237.94999999995\t0\t1052.80414846231\n+M598.9T3091.1\t0\t0\t0\t5745.1150000002\n+M598.9T2620.4\t24597.6221333335\t1782.1843965059\t2466.61604554878\t2547.59399043552\n+M599T4187.1\t136.620679491087\t0\t769.979999999982\t0\n+M599.1T2880.5\t5238.07829488764\t1749.21839582845\t2554.91912426183\t3269.28500000002\n+M599.1T3739.2\t0\t8220.94499999976\t0\t1042.07319821065\n+M599.1T4202.3\t1370.93999999996\t0\t404.178568977319\t115.970242221925\n+M599.2T4160.4\t2031.49238929167\t8068.71033333314\t4524.36445961151\t5823.36499999964\n+M599.2T3701.2\t0\t0\t55051.9369090907\t0\n+M599.2T3473\t1906.58949953166\t1115.24697230194\t6239.51160209002\t6298.5500000001\n+M599.2T4136.6\t3531.90007828117\t607.713962924625\t13849.6178571426\t0\n+M599.2T3845\t0\t0\t5238.05500000018\t7674.11104164754\n+M599.2T3721.5\t22852.13\t0\t0\t0\n+M599.2T3977.8\t0\t15327.6100000005\t2043.71536740086\t0\n+M599.3T4054.7\t798856.451441174\t53721.8508316141\t897286.005000001\t60505.2372470137\n+M599.3T3925.8\t28263.7381960734\t1934575.64687074\t31095.0992688255\t2271127.28014893\n+M599.3T3741.1\t2472129.73859259\t0\t1909653.70493332\t7165.99058468708\n+M599.3T3433.3\t35592.8437333336\t1352.22852619787\t0\t7482.12284985986\n+M599.3T4126.9\t185983.548870884\t536493.298793183\t75567.9488087375\t707685.939314288\n+M599.4T3727.9\t93179.0431097422\t0\t797434.72246154\t0\n+M599.4T4125.3\t2425.45826820981\t354770.43852632\t19846.7110475478\t239730.793013582\n+M599.4T2844\t0\t5415.77280000005\t1593.6345093066\t1186.34708319397\n+M599.4T2969.9\t8188.19424252287\t7861.19461826181\t0\t12502.4521250001\n+M599.4T3812.2\t79625.6350000028\t11601.8667295452\t19502.9954796907\t1381.41279238145\n+M599.5T2728.1\t0\t0\t0\t1760.62499999996\n+M599.5T3604.8\t0\t0\t0\t5001.73999999997\n+M599.5T3409.6\t3353.79499999992\t0\t0\t0\n+M599.5T3001.7\t0\t5849.96999999986\t0\t0\n+M599.8T2525.6\t0\t0\t3209.81499999996\t0\n+M599.8T2559\t0\t2928.1150000001\t0\t0\n+M599.9T2604.6\t6022.12000000021\t796.585000000028\t0\t2331.63714285708\n+M599.9T2777.6\t0\t0\t0\t2608.74386666668\n+M600T3440.2\t0\t8782.77999999999\t0\t0\n+M600T3073.9\t2505.99623596844\t0\t0\t3430.04160000003\n+M600T2840.3\t0\t0\t0\t1987.33833333336\n+M600T3455.6\t4671.52499999989\t0\t0\t1358.70443022736\n+M600T3350.9\t2327.15500000008\t0\t0\t0\n+M600T2538.7\t0\t3639.80233333338\t0\t1359.81120000001\n+M600T3208.4\t7784.31000000027\t1147.23597499922\t0\t2048.69405448434\n+M600T2969.5\t9211.58999999991\t0\t0\t5345.43474031158\n' |
b |
diff -r cce30b3398e0 -r ee29f0a6e361 test-data/faahKO.xset.group.retcor.group.fillPeaks.variableMetadata.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/faahKO.xset.group.retcor.group.fillPeaks.variableMetadata.tsv Mon Jan 30 08:53:48 2017 -0500 |
b |
b'@@ -0,0 +1,8158 @@\n+\tmz\tmzmin\tmzmax\trt\trtmin\trtmax\tnpeaks\tKO\tWT\n+M200.1T2873.7\t200.100006103516\t200.100006103516\t200.100006103516\t2873.66790279219\t2873.66790279219\t2873.66790279219\t1\t1\t0\n+M200.2T3876.7\t200.199996948242\t200.199996948242\t200.199996948242\t3876.72559155354\t3876.72559155354\t3876.72559155354\t1\t1\t0\n+M200.2T3676.2\t200.199996948242\t200.199996948242\t200.199996948242\t3676.20857473389\t3676.20857473389\t3676.20857473389\t1\t0\t1\n+M200.2T3485.7\t200.199996948242\t200.199996948242\t200.199996948242\t3485.71318236608\t3485.71318236608\t3485.71318236608\t1\t1\t0\n+M200.2T3529.2\t200.199996948242\t200.199996948242\t200.199996948242\t3529.16673849327\t3529.16673849327\t3529.16673849327\t1\t0\t1\n+M200.2T3184.4\t200.199996948242\t200.199996948242\t200.199996948242\t3184.44736675265\t3184.44736675265\t3184.44736675265\t1\t1\t0\n+M200.3T3816.6\t200.300003051758\t200.300003051758\t200.300003051758\t3816.57302395962\t3816.57302395962\t3816.57302395962\t1\t0\t1\n+M200.3T3977.6\t200.300003051758\t200.300003051758\t200.300003051758\t3977.60008277685\t3977.60008277685\t3977.60008277685\t1\t0\t1\n+M200.8T3543.6\t200.800003051758\t200.800003051758\t200.800003051758\t3543.60312635477\t3543.60312635477\t3543.60312635477\t1\t1\t0\n+M200.8T4062.6\t200.800003051758\t200.800003051758\t200.800003051758\t4062.56884383761\t4062.56884383761\t4062.56884383761\t1\t0\t1\n+M200.8T3783.3\t200.800003051758\t200.800003051758\t200.800003051758\t3783.31394298599\t3783.31394298599\t3783.31394298599\t1\t0\t1\n+M200.9T3273.9\t200.900009155273\t200.900009155273\t200.900009155273\t3273.93376916172\t3273.93376916172\t3273.93376916172\t1\t0\t1\n+M200.9T2555.9\t200.900009155273\t200.900009155273\t200.900009155273\t2555.90497459635\t2555.90497459635\t2555.90497459635\t1\t1\t0\n+M200.9T3625.9\t200.900009155273\t200.900009155273\t200.900009155273\t3625.94998801881\t3625.94998801881\t3625.94998801881\t1\t0\t1\n+M201.1T3138.4\t201.100006103516\t201.100006103516\t201.100006103516\t3138.35441665664\t3138.35441665664\t3138.35441665664\t1\t1\t0\n+M201.2T3509.4\t201.199996948242\t201.199996948242\t201.199996948242\t3509.36563736658\t3509.36563736658\t3509.36563736658\t1\t1\t0\n+M201.2T4065.7\t201.199996948242\t201.199996948242\t201.199996948242\t4065.72082744082\t4065.72082744082\t4065.72082744082\t1\t0\t1\n+M201.2T3687.2\t201.199996948242\t201.199996948242\t201.199996948242\t3687.18932031058\t3687.18932031058\t3687.18932031058\t1\t0\t1\n+M201.2T3997.9\t201.199996948242\t201.199996948242\t201.199996948242\t3997.93594451384\t3997.93594451384\t3997.93594451384\t1\t0\t1\n+M201.2T3798.7\t201.199996948242\t201.199996948242\t201.199996948242\t3798.65479588899\t3798.65479588899\t3798.65479588899\t1\t0\t1\n+M201.3T3936.4\t201.300003051758\t201.300003051758\t201.300003051758\t3936.43507866832\t3936.43507866832\t3936.43507866832\t1\t0\t1\n+M201.3T4036.9\t201.300003051758\t201.300003051758\t201.300003051758\t4036.91062955396\t4036.91062955396\t4036.91062955396\t1\t0\t1\n+M201.3T4155.1\t201.300003051758\t201.300003051758\t201.300003051758\t4155.07274902879\t4155.07274902879\t4155.07274902879\t1\t1\t0\n+M201.3T3882.6\t201.300003051758\t201.300003051758\t201.300003051758\t3882.59075902174\t3882.59075902174\t3882.59075902174\t1\t1\t0\n+M201.7T3854.6\t201.699996948242\t201.699996948242\t201.699996948242\t3854.64092716079\t3854.64092716079\t3854.64092716079\t1\t1\t0\n+M201.7T4020\t201.699996948242\t201.699996948242\t201.699996948242\t4020.00883866426\t4020.00883866426\t4020.00883866426\t1\t0\t1\n+M201.8T3300.5\t201.800003051758\t201.800003051758\t201.800003051758\t3300.52179370591\t3300.52179370591\t3300.52179370591\t1\t1\t0\n+M201.8T4068.9\t201.800003051758\t201.800003051758\t201.800003051758\t4068.87273440628\t4068.87273440628\t4068.87273440628\t1\t0\t1\n+M201.8T3280.2\t201.800003051758\t201.800003051758\t201.800003051758\t3280.17819851714\t3280.17819851714\t3280.17819851714\t1\t1\t0\n+M201.8T3321\t201.800003051758\t201.800003051758\t201.800003051758\t3321.03357088832\t3321.03357088832\t3321.03357088832\t1\t1\t0\n+M201.8T3170.8\t201.800003051758\t201.800003051758\t201.800003051758\t3170.77113798805\t3170.77113798805\t3170.77113798805\t1\t1\t0\n+M201.8T3762.7\t201.800003051758\t201.800003051758\t201.800003051758\t3762.71208577947\t3762.71208577947\t3762.71208577947\t1\t0\t1\n+M2'..b'.14282299969\t4187.14282299969\t4187.14282299969\t1\t0\t1\n+M599.1T2880.5\t599.100036621094\t599.100036621094\t599.100036621094\t2880.51183997679\t2880.51183997679\t2880.51183997679\t1\t0\t1\n+M599.1T3739.2\t599.100036621094\t599.100036621094\t599.100036621094\t3739.17432644358\t3739.17432644358\t3739.17432644358\t1\t1\t0\n+M599.1T4202.3\t599.100036621094\t599.100036621094\t599.100036621094\t4202.26059093245\t4202.26059093245\t4202.26059093245\t1\t1\t0\n+M599.2T4160.4\t599.200012207031\t599.200012207031\t599.200012207031\t4160.41504391552\t4156.36374072209\t4164.46634710896\t2\t1\t1\n+M599.2T3701.2\t599.200012207031\t599.200012207031\t599.200012207031\t3701.23529883703\t3701.23529883703\t3701.23529883703\t1\t0\t1\n+M599.2T3473\t599.200012207031\t599.200012207031\t599.200012207031\t3473.04133608654\t3473.04133608654\t3473.04133608654\t1\t0\t1\n+M599.2T4136.6\t599.200012207031\t599.200012207031\t599.200012207031\t4136.64576660025\t4136.64576660025\t4136.64576660025\t1\t0\t1\n+M599.2T3845\t599.200012207031\t599.200012207031\t599.200012207031\t3844.97719520822\t3844.97719520822\t3844.97719520822\t1\t0\t1\n+M599.2T3721.5\t599.200012207031\t599.200012207031\t599.200012207031\t3721.5387075449\t3721.5387075449\t3721.5387075449\t1\t1\t0\n+M599.2T3977.8\t599.200012207031\t599.200012207031\t599.200012207031\t3977.82980682972\t3977.82980682972\t3977.82980682972\t1\t1\t0\n+M599.3T4054.7\t599.299987792969\t599.299987792969\t599.299987792969\t4054.68845399697\t4054.68845399697\t4059.09018753112\t3\t1\t1\n+M599.3T3925.8\t599.299987792969\t599.299987792969\t599.299987792969\t3925.84217251709\t3925.84217251709\t3925.84217251709\t2\t0\t1\n+M599.3T3741.1\t599.299987792969\t599.299987792969\t599.299987792969\t3741.10100087839\t3735.82337194686\t3746.37862980992\t2\t1\t1\n+M599.3T3433.3\t599.299987792969\t599.299987792969\t599.299987792969\t3433.26624059939\t3433.26624059939\t3433.26624059939\t1\t1\t0\n+M599.3T4126.9\t599.299987792969\t599.299987792969\t599.299987792969\t4126.89956529202\t4126.89956529202\t4126.89956529202\t1\t0\t1\n+M599.4T3727.9\t599.400024414062\t599.400024414062\t599.400024414062\t3727.93766242873\t3727.93766242873\t3727.93766242873\t1\t0\t1\n+M599.4T4125.3\t599.400024414062\t599.400024414062\t599.400024414062\t4125.3114579078\t4125.3114579078\t4125.3114579078\t1\t1\t0\n+M599.4T2844\t599.400024414062\t599.400024414062\t599.400024414062\t2844.03291905224\t2844.03291905224\t2844.03291905224\t1\t1\t0\n+M599.4T2969.9\t599.400024414062\t599.400024414062\t599.400024414062\t2969.89649835987\t2969.89649835987\t2969.89649835987\t1\t0\t1\n+M599.4T3812.2\t599.400024414062\t599.400024414062\t599.400024414062\t3812.23153189745\t3812.23153189745\t3812.23153189745\t1\t1\t0\n+M599.5T2728.1\t599.5\t599.5\t599.5\t2728.06725194668\t2728.06725194668\t2728.06725194668\t1\t0\t1\n+M599.5T3604.8\t599.5\t599.5\t599.5\t3604.78487735047\t3604.78487735047\t3604.78487735047\t1\t0\t1\n+M599.5T3409.6\t599.5\t599.5\t599.5\t3409.6137638498\t3409.6137638498\t3409.6137638498\t1\t1\t0\n+M599.5T3001.7\t599.5\t599.5\t599.5\t3001.73340037252\t3001.73340037252\t3001.73340037252\t1\t1\t0\n+M599.8T2525.6\t599.799987792969\t599.799987792969\t599.799987792969\t2525.60208488001\t2525.60208488001\t2525.60208488001\t1\t0\t1\n+M599.8T2559\t599.799987792969\t599.799987792969\t599.799987792969\t2559.03497459635\t2559.03497459635\t2559.03497459635\t1\t1\t0\n+M599.9T2604.6\t599.900024414062\t599.900024414062\t599.900024414062\t2604.63847751491\t2599.870668269\t2609.40628676082\t2\t1\t1\n+M599.9T2777.6\t599.900024414062\t599.900024414062\t599.900024414062\t2777.62270382815\t2777.62270382815\t2777.62270382815\t1\t0\t1\n+M600T3440.2\t600\t600\t600\t3440.21498381355\t3440.21498381355\t3440.21498381355\t1\t1\t0\n+M600T3073.9\t600\t600\t600\t3073.93667972513\t3073.93667972513\t3073.93667972513\t1\t0\t1\n+M600T2840.3\t600\t600\t600\t2840.34223529104\t2840.34223529104\t2840.34223529104\t1\t0\t1\n+M600T3455.6\t600\t600\t600\t3455.56264424004\t3455.56264424004\t3455.56264424004\t1\t1\t0\n+M600T3350.9\t600\t600\t600\t3350.85695421667\t3350.85695421667\t3350.85695421667\t1\t1\t0\n+M600T2538.7\t600\t600\t600\t2538.69097459635\t2538.69097459635\t2538.69097459635\t1\t1\t0\n+M600T3208.4\t600\t600\t600\t3208.3511612646\t3208.3511612646\t3208.3511612646\t1\t1\t0\n+M600T2969.5\t600\t600\t600\t2969.47546024467\t2969.47546024467\t2969.47546024467\t1\t1\t0\n' |
b |
diff -r cce30b3398e0 -r ee29f0a6e361 xcms.r --- a/xcms.r Wed Jul 06 17:43:29 2016 -0400 +++ b/xcms.r Mon Jan 30 08:53:48 2017 -0500 |
[ |
@@ -19,7 +19,7 @@ cat(pkg,"\t",as.character(packageVersion(pkg)),"\n",sep="") } source_local <- function(fname){ argv <- commandArgs(trailingOnly = FALSE); base_dir <- dirname(substring(argv[grep("--file=", argv)], 8)); source(paste(base_dir, fname, sep="/")) } -cat("\n\n"); +cat("\n\n"); @@ -64,18 +64,35 @@ xsetRdataOutput = listArguments[["xsetRdataOutput"]]; listArguments[["xsetRdataOutput"]]=NULL } +#saving the specific parameters rplotspdf = "Rplots.pdf" if (!is.null(listArguments[["rplotspdf"]])){ rplotspdf = listArguments[["rplotspdf"]]; listArguments[["rplotspdf"]]=NULL } - sampleMetadataOutput = "sampleMetadata.tsv" if (!is.null(listArguments[["sampleMetadataOutput"]])){ sampleMetadataOutput = listArguments[["sampleMetadataOutput"]]; listArguments[["sampleMetadataOutput"]]=NULL } - - - +variableMetadataOutput = "variableMetadata.tsv" +if (!is.null(listArguments[["variableMetadataOutput"]])){ + variableMetadataOutput = listArguments[["variableMetadataOutput"]]; listArguments[["variableMetadataOutput"]]=NULL +} +dataMatrixOutput = "dataMatrix.tsv" +if (!is.null(listArguments[["dataMatrixOutput"]])){ + dataMatrixOutput = listArguments[["dataMatrixOutput"]]; listArguments[["dataMatrixOutput"]]=NULL +} +if (!is.null(listArguments[["convertRTMinute"]])){ + convertRTMinute = listArguments[["convertRTMinute"]]; listArguments[["convertRTMinute"]]=NULL +} +if (!is.null(listArguments[["numDigitsMZ"]])){ + numDigitsMZ = listArguments[["numDigitsMZ"]]; listArguments[["numDigitsMZ"]]=NULL +} +if (!is.null(listArguments[["numDigitsRT"]])){ + numDigitsRT = listArguments[["numDigitsRT"]]; listArguments[["numDigitsRT"]]=NULL +} +if (!is.null(listArguments[["intval"]])){ + intval = listArguments[["intval"]]; listArguments[["intval"]]=NULL +} if (thefunction %in% c("xcmsSet","retcor")) { ticspdf = listArguments[["ticspdf"]]; listArguments[["ticspdf"]]=NULL @@ -116,15 +133,15 @@ suppressWarnings(unzip(zipfile, unzip="unzip")) #get the directory name - filesInZip=unzip(zipfile, list=T); + filesInZip=unzip(zipfile, list=T); directories=unique(unlist(lapply(strsplit(filesInZip$Name,"/"), function(x) x[1]))); directories=directories[!(directories %in% c("__MACOSX")) & file.info(directories)$isdir] directory = "." if (length(directories) == 1) directory = directories - + cat("files_root_directory\t",directory,"\n") - # + # md5sumList=list("origin"=getMd5sum(directory)) # Check and fix if there are non ASCII characters. If so, they will be removed from the *mzXML mzML files. @@ -187,6 +204,8 @@ #execution of the function "thefunction" with the parameters given in "listArguments" + +cat("\t\tCOMPUTE\n") xset = do.call(thefunction, listArguments) @@ -200,7 +219,7 @@ xset@filepaths<-sub(paste(getwd(),"/",sep="") ,"", xset@filepaths) if(exists("zipfile") && (zipfile!="")) { - + #Modify the samples names (erase the path) for(i in 1:length(sampnames(xset))){ @@ -217,17 +236,24 @@ # -- TIC -- if (thefunction == "xcmsSet") { + cat("\t\tGET TIC GRAPH\n") sampleNamesList = getSampleMetadata(xcmsSet=xset, sampleMetadataOutput=sampleMetadataOutput) getTICs(xcmsSet=xset, pdfname=ticspdf,rt="raw") getBPCs(xcmsSet=xset,rt="raw",pdfname=bicspdf) } else if (thefunction == "retcor") { + cat("\t\tGET TIC GRAPH\n") getTICs(xcmsSet=xset, pdfname=ticspdf,rt="corrected") getBPCs(xcmsSet=xset,rt="corrected",pdfname=bicspdf) } +if (thefunction == "fillPeaks") { + cat("\t\tGET THE PEAK LIST\n") + getPeaklistW4M(xset,intval,convertRTMinute,numDigitsMZ,numDigitsRT,variableMetadataOutput,dataMatrixOutput) +} + + cat("\n\n") - # ----- EXPORT ----- cat("\tXSET OBJECT INFO\n") @@ -243,4 +269,3 @@ cat("\tDONE\n") - |