raw.dir
, calculates the baselines from them,
and writes the results in the directory base.dir
.
run.baselines(root.dir = ".", raw.dir, base.dir, overwrite = FALSE, use.par.file = FALSE, par.file = "parameters.RData", sm.par = 1e-11, sm.ord = 2, max.iter = 20, tol = 5e-8, sm.div = NA, sm.norm.by = c("baseline", "overestimate", "constant"), neg.div = NA, neg.norm.by = c("baseline", "overestimate", "constant"), rel.conv.crit = TRUE, zero.rm = TRUE, halve.search = FALSE)
paste(root.dir, "/Raw_Data", sep = "")
paste(root.dir, "/Baselines", sep = "")
TRUE
, then parameters are read from par.file
in directory root.dir
raw.dir
file-by-file and computes each
baseline using baseline
, then writes the spectrum and the baseline
to a file in directory base.dir
. The name of the new file is the same as
the name of the old file with .txt replaced by .RData, and the
new file is ready to be used by run.peaks
.The files in raw.dir
must be in a specific format (future versions of the
package will allow for more flexibility). The files should be two-column text
files with mass in the first column and spectrum intensity in the second column.
There should be no header row (just start the file with the first data point).
The columns can be either comma-separated or whitespace-separated and the
program will automatically detect which each file is. The decimal separator
should be "."
, as using ","
will cause errrors in reading the
files.
See baseline
for details of all the parameters after
par.file
.
Barkauskas, D.A. et al. (2009) Detecting glycan cancer biomarkers in serum samples using MALDI FT-ICR mass spectrometry data. Bioinformatics, 25:2, 251--257.
Xi, Y. and Rocke, D.M. (2008) Baseline Correction for NMR Spectroscopic Metabolomics Data Analysis. BMC Bioinformatics, 9:324.
baseline
, run.peaks