Learn R Programming

tofsims (version 1.0.2)

nnMNF: Class nnMNF

Description

Class nnMNF contains methods for Maximum Autocorrelation Factors analysis

This method calculates MNF transform using an nearest neighbour estimate as implemented in mzImage from Stone et al. (2012).

Usage

nnMNF(dataObject, limitSNR = 1.5)

nnMNF(dataObject, limitSNR = 1.5)

Arguments

dataObject
object of type MassImage
limitSNR
numeric

Value

  • object of class MNF

Details

Class nnMNF contains methods for Maximum Autocorrelation Factors analysis

Minimum Noise Fraction according Green et al. (1988) but using a nearest neighbour estimate for the noise determination as seen in the package mzImage from Stone et al. (2012). As the mentioned package is no longer maintained, we used an archieved version as code base for a new version. The C code was implemented through Rcpp (Eddelbuettel and Francois, 2011). The present function is a user constructur that will create a new analysis slot in the chosen MassSpectra/MassImage object.

Examples

Run this code
testImage<-MassImage('dummy')
testImage<-MNF(testImage)
image(analysis(testImage,1), comp = 1)
library(tofsimsData)
data(tofsimsData)
testImage<-nnMNF(testImage)
image(analysis(testImage,1), comp = 1)

Run the code above in your browser using DataLab