get_membership-ConsensusPartition-method {cola} | R Documentation |
Get membership matrix
## S4 method for signature 'ConsensusPartition' get_membership(object, k, each = FALSE)
object |
A |
k |
Number of partitions. |
each |
Whether return the percentage membership matrix which is summarized from all partitions or the individual membership in every random partition. |
If each == FALSE
, the value in the membership matrix is the probability
to be in one class, while if each == TRUE
, the membership matrix contains the
class labels for every single partitions which are from randomly sampling subset
of rows in the matrix.
The percent membership matrix is calculated by cl_consensus
.
If each == TRUE
, it returns a membership matrix where rows correspond to the columns in the original matrix.
Zuguang Gu <z.gu@dkfz.de>
get_membership,ConsensusPartitionList-method
summarizes membership from partitions from all combinations
of top-value methods and partition methods.
data(cola_rl) obj = cola_rl["sd", "kmeans"] get_membership(obj, k = 2) get_membership(obj, k = 2, each = TRUE)