registerNormalizationMethod {RPPASPACE}R Documentation

Normalization Method Registration Methods

Description

These routines represent the high-level access for normalization method registration, which enables data-driven access by other routines. This represents the initial implementation and may change in the future.

Usage

getRegisteredNormalizationMethod(key)
getRegisteredNormalizationMethodLabel(key)
getRegisteredNormalizationMethodKeys()
registerNormalizationMethod(key, method, ui.label=names(key))

Arguments

key

character string representing a registered normalization method

method

function to invoke for normalization

ui.label

character string specifying label to display by UI

Value

getRegisteredNormalizationMethod returns the method associated with key.

getRegisteredNormalizationMethodLabel returns the ui.label associated with key.

getRegisteredNormalizationMethodKeys returns vector of keys for all registered normalization methods.

registerNormalizationMethod is invoked for its side effect, which is registering method and ui.label by association to key.

Author(s)

P. Roebuck paul_roebuck@comcast.net, James M. Melott jmmelott@mdanderson.org

See Also

getRegisteredObject, getRegisteredObjectKeys, registerMethod

Examples

  ## Not run: 
## Not run due to lack of capability to unregister methods
## Create new normalization method
normalize.testNorm <- function(concs, bar) {
    return(normconcs <- concs - bar)
}

## Register normalization method to enable its use by package
registerNormalizationMethod("testNorm", normalize.testNorm, "Registered Test Normalization Class")

## Use it...
concs <- matrix(runif(500), nrow=10)
normalize(concs, method="testNorm", bar=0.005)

## Show all registered fit models
sapply(getRegisteredNormalizationMethodKeys(),
       function(key) {
           c(key = key,
             label=getRegisteredNormalizationMethodLabel(key))
       })
  
## End(Not run)

[Package RPPASPACE version 1.0.10 Index]