Description Objects from the Class Slots Extends Methods Author(s) See Also Examples
An implementation of xcmsSource which can load
from netCDF files.
Objects can be created by calling new("rampSource", path).
Upon creation, the presence and format of the file at path is
checked.
.Data:Object of class "character". File path
of a file from which to read raw data as the object's data part.
cdf:Object of class "integer". Internal file
descriptor of netCDF file. There is no need to access this
slot.
Class "xcmsFileSource", directly.
Class "character", by class "xcmsFileSource", distance 2.
Class "xcmsSource", by class "xcmsFileSource", distance 2.
signature(.Object = "rampSource", path = "character"):
Create a new rampSource and try to open the file at path
signature(object = "rampSource"):
Read and return the data from the file. Value is that of
loadRaw
Daniel Hackney, dan@haxney.org
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
library(xcms)
library(msdata)
mzpath <- system.file("iontrap", package = "msdata")
mzfile <- list.files(mzpath, pattern = "extracted.mzData",
recursive = TRUE, full.names = TRUE)[[1]]
## nc is a reference to the netCDF file
ramp <- new("rampSource", mzfile)
rawdata <- loadRaw(ramp)
## The raw data has over 1,000 scans, so don't try to print them all out!
summary(rawdata)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.