Description Usage Arguments Value Author(s) See Also Examples
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.
1 2 3 4 | getRegisteredNormalizationMethod(key)
getRegisteredNormalizationMethodLabel(key)
getRegisteredNormalizationMethodKeys()
registerNormalizationMethod(key, method, ui.label=names(key))
|
key |
character string representing a registered normalization method |
method |
function to invoke for normalization |
ui.label |
character string specifying label to display by UI |
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.
P. Roebuck proebuck@mdanderson.org
getRegisteredObject,
getRegisteredObjectKeys,
registerMethod
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.