concordance {cola} | R Documentation |
Concordance to the consensus partition
concordance(membership_each, class)
membership_each |
A matrix which contains partitions in every single runs where columns correspond to runs. |
class |
Consensus class IDs. |
Note class IDs in membership_each
should already be adjusted to the consensus class IDs
to let sum(x_single == x_consensus)
reach maximum.
The concordance score is the mean proportion of samples having the same class ID as the consensus class ID among runs.
This function is used internally.
A numeric value.
Zuguang Gu <z.gu@dkfz.de>
data(cola_rl) membership_each = get_membership(cola_rl["sd", "kmeans"], each = TRUE, k = 3) consensus_classes = get_classes(cola_rl["sd", "kmeans"], k = 3)$class concordance(membership_each, consensus_classes)