\name{readMzXMLData} \alias{readMzXMLData} \concept{MSnExp} \title{ Import mzXML files as 'MSnExp' instances. } \description{ Reads mzXML files and generates an \code{"\linkS4class{MSnExp}"} object. } \usage{ readMzXMLData(files, pdata = NULL, msLevel = 2, verbose = TRUE, centroided = FALSE, smoothed = FALSE, removePeaks = 0, clean = FALSE) } \arguments{ \item{files}{ file names to be read in a character vector. } \item{pdata}{ an object of class \code{"\linkS4class{NAnnotatedDataFrame}"}. } \item{msLevel}{ MS level spectra to be read. Use '1' for MS1 spectra of any larger numeric for MSn spectra. Default is '2'. } \item{verbose}{ verbosity flag. } \item{centroided}{ \code{Logical} indicating whether spectra are centroided or not. Default is 'FALSE'. Used to initialise \code{"\linkS4class{MSnProcess}"} object in \code{processingData} slot. } \item{smoothed}{ \code{Logical} indicating whether spectra already smoothed or not. Default is 'FALSE'. Used to initialise \code{"\linkS4class{MSnProcess}"} object in \code{processingData} slot. } \item{removePeaks}{ If > 0 (default), all peaks less or equal then value will set to 0. See \code{\link{removePeaks}} for more details and examples. } \item{clean}{ Logical indicating whether 0 intensity peaks should be discarded from spectra. Useful is removePeaks is set. Default is 'FALSE'. See \code{\link{clean}} for more details and examples. } } % \details{ % %% ~~ If necessary, more details than the description above ~~ % } \value{ An \code{"\linkS4class{MSnExp}"} object. } % \references{ % %% ~put references to the literature/web site here ~ % } \author{ Laurent Gatto } % \note{ % %% ~~further notes~~ % } \seealso{ \code{"\linkS4class{MSnExp}"} } \examples{ file <- dir(system.file(package="MSnbase",dir="extdata"), full.name=TRUE, pattern="mzXML$") aa <- readMzXMLData(file) aa } % Add one or more standard keywords, see file 'KEYWORDS' in the % R documentation directory. \keyword{ file } \keyword{ manip }