register_top_value_methods: Register user-defined top-value methods

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/z.register.R

Description

Register user-defined top-value methods

Usage

1

Arguments

...

A named list of functions.

Details

The user-defined function should accept one argument which is the data matrix where the scores are calculated by rows. Rows with top scores are treated as "top rows" in cola analysis. Following is how we register "SD" (standard deviation) top-value method:

1

Of course, you can use rowSds to give a faster calculation of row SD:

1

The registered top-value method will be used as defaults in run_all_consensus_partition_methods.

To remove a top-value method, use remove_top_value_methods.

There are four default top-value methods:

"SD"

standard deviation, by rowSds.

"CV"

coefficient variance, calculated as sd/(mean+s) where s is the 10^th percentile of all row means.

"MAD"

median absolute deviation, by rowMads.

"ATC"

the ATC method.

Value

No value is returned.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

See Also

all_top_value_methods lists all registered top-value methods.

Examples

1
2
3
4
5
6
all_top_value_methods()
register_top_value_methods(
    ATC_spearman = function(mat) ATC(mat, method = "spearman")
)
all_top_value_methods()
remove_top_value_methods("ATC_spearman")

cola documentation built on Nov. 8, 2020, 8:12 p.m.