Description Usage Arguments Value See Also Examples
Converts an msList
object to an msSet
object by
truncating the spectra to the mass range of interest,
interpolating the spectra to a common set of m/z
values, and
transforming the intensity values if specified.
1 |
x |
An object of class |
mass.min |
A numeric value denoting the lowest mass (in Dalton) of interest. The portion of the spectra below this value will be removed. The low mass region is generally considered suspicious as matrix contamination may be a problem. Default: 1500. |
transform |
A function to be used to transform the intensity values.
The main purpose of the transformation is to reduce the variance of the
intensity values and to stabilize the noise component of the spectra.
Some possible choices are logarithm ( |
data.name |
name for the data. Default: |
An object of class msSet
that has the same number of spectra
as in the input msList
object x
.
1 2 3 4 5 6 7 8 9 10 11 12 | if (!exists("qclist")) data("qclist", package="msProcess")
## extract several spectra from the build-in
## dataset qclist
zList <- qclist[1:8]
## convert the subset to an msSet object
cbrt <- function(x) x^(1/3)
zSet <- msPrepare(zList, mass.min=950, transform=cbrt)
## visualize a portion of the spectra
plot(zSet, subset=NULL, xlim=c(13000, 17000), offset=0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.