suggest_best_k-ConsensusPartition-method {cola}R Documentation

Suggest the best number of partitions

Description

Suggest the best number of partitions

Usage

## S4 method for signature 'ConsensusPartition'
suggest_best_k(object, jaccard_index_cutoff = 0.95)

Arguments

object

A ConsensusPartition-class object.

jaccard_index_cutoff

The cutoff for Jaccard index compared to previous k.

Details

The best k is selected according to following rules:

Additionally, if 1-PAC for the best k is larger than 0.9 (10 the partition), cola marks it as a stable partition. It should be noted that it is difficult to find the best k deterministically, we encourage users to compare results for all k and determine a proper one which best explain their studies.

Value

The best k.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

data(cola_rl)
obj = cola_rl["sd", "kmeans"]
suggest_best_k(obj)

[Package cola version 1.2.1 Index]