sc80-registerNormalizationMethod: Normalization Method Registration Methods

Description Usage Arguments Value Author(s) See Also Examples

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

1
2
3
4

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 proebuck@mdanderson.org

See Also

getRegisteredObject, getRegisteredObjectKeys, registerMethod

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  ## Not run: 
## Create new normalization method
normalize.foo <- function(concs, bar) {
    return(normconcs <- concs - bar)
}

## Register normalization method to enable its use by package
registerNormalizationMethod("foo", normalize.foo, "Foo is as foo does")

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

SuperCurve documentation built on May 2, 2019, 6:14 p.m.