treat.DB | R Documentation |
This function transforms the “raw” data in an msp DB object into preprocessed data. Even if no scale and no mass.weight is applied, the intensities are still changed: scaled to unit length.
treat.DB(DB, scale.p = c("sqrt", "none"), mass.weight = TRUE, isMSP = TRUE)
DB |
A database of spectra in the original intensity units. |
scale.p |
scale intensities with a square-root function, or leave them as they are. Default is to use scaling. |
mass.weight |
Logical: if TRUE, higher masses are given more weight. |
isMSP |
Logical: if TRUE, then the spectra are stored in slot
|
The function returns the database, where intensities are scaled.
Ron Wehrens
data(threeStdsNIST) ## provides object smallDB, excerpt from NIST DB smallDB.scaled <- treat.DB(smallDB)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.