Description Objects from the Class Slots Methods Author(s) See Also Examples
This is a class to represent retention index markers.
Objects can be created by the function ImportFameSettings or by calls
of the form new("tsRim", limits = [two column matrix with time limits],
standard = [a vector with RI standards], mass = [m/z marker]).
limits:"matrix", two column matrix with lower and upper
limits where the standards will be search. One row per standard.
standard:"numeric", the marker RI values.
mass:"numeric", the m/z marker.
[signature(x = "tsRim"): Selects a subset of markers.
rimLimitssignature(obj = "tsRim"): gets the time limits.
rimLimits<-signature(obj = "tsRim"): sets the time limits.
rimMasssignature(obj = "tsRim"): gets the m/z marker.
rimMass<-signature(obj = "tsRim"): sets the m/z marker.
rimStandardsignature(obj = "tsRim"): gets the standars.
rimStandard<-signature(obj = "tsRim"): sets the standars.
Alvaro Cuadros-Inostroza, Matthew Hannah, Henning Redestig
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | showClass("tsRim")
# create a rimLimit object:
# - set the lower (first column) and upper (second column) time limites to
# search for standards.
Lim <- rbind(c(200, 300), c(400,450), c(600,650))
# - set the retention indices of the standard
Std <- c(250000, 420000, 630000)
# - set the mass marker
mass <- 87
# - create the object
rimLimits <- new("tsRim", limits = Lim, standard = Std, mass = mass)
# sometimes you need to change the limits of a particular standard
rimLimits(rimLimits)[2,] <- c(410, 450)
# to change the mass value
rimMass(rimLimits) <- 85
# to select a subset
rim <- rimLimits[1:2]
# remove a marker (number 3 in this case)
rim <- rimLimits[-3]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.