transformIntensity-methods | R Documentation |
This method performs a transformation (e.g. sqrt-transformation) on the
intensities of an AbstractMassObject
object.
## S4 method for signature 'AbstractMassObject'
transformIntensity(object,
method=c("sqrt", "log", "log2", "log10"))
## S4 method for signature 'list'
transformIntensity(object, ...)
object |
|
method |
used transformation method. |
... |
arguments to be passed to underlying functions. If
|
Sebastian Gibb mail@sebastiangibb.de
AbstractMassObject
,
MassSpectrum
Website: https://strimmerlab.github.io/software/maldiquant/
## load package
library("MALDIquant")
## load example data
data("fiedler2009subset", package="MALDIquant")
## choose only the first mass spectrum
s <- fiedler2009subset[[1]]
## transform spectrum
t <- transformIntensity(s, method="sqrt")
## plot spectrum
par(mfrow=c(2, 1))
plot(s, main="raw spectrum")
plot(t, main="transformed spectrum")
par(mfrow=c(1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.