removeNoise: A function for removing bins below noise level.

View source: R/mrbin.R

removeNoiseR Documentation

A function for removing bins below noise level.

Description

This function checks for each bin (column) whether its level is below the individual noise level times the signal-to-noise ratio. If less than the defined threshold level are above noise*SNR, the whole bin is removed.

Usage

removeNoise(mrbinResults, verbose = TRUE, errorsAsWarnings = FALSE)

Arguments

mrbinResults

An mrbin object

verbose

Should a summary be printed?

errorsAsWarnings

If TRUE, errors will be turned into warnings. Should be used with care, as errors indicate undocumented changes to the data.

Value

An invisible mrbin object

Examples

mrbinResults<-mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",
                    binwidth1D=0.05,noiseRemoval="No",PQNScaling="No",tryParallel=TRUE,
                    fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE,
                    NMRfolders=c(system.file("extdata/1/10/pdata/10",package="mrbin"),
                                system.file("extdata/2/10/pdata/10",package="mrbin"),
                                system.file("extdata/3/10/pdata/10",package="mrbin"))))
mrbinResults<-removeNoise(mrbinResults)

mrbin documentation built on June 22, 2024, 9:39 a.m.