Extract.ConsensusPartitionList: Subset a ConsensusPartitionList object

Description Usage Arguments Details Value Author(s) Examples

Description

Subset a ConsensusPartitionList object

Usage

1
2
## S3 method for class 'ConsensusPartitionList'
x[i, j, drop = TRUE]

Arguments

x

A ConsensusPartitionList-class object.

i

Index for top-value methods, character or nummeric.

j

Index for partitioning methods, character or nummeric.

drop

Whether drop class

Details

For a specific combination of top-value method and partitioning method, you can also subset by e.g. x['SD:hclust'].

Value

A ConsensusPartitionList-class object or a ConsensusPartition-class object.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(golub_cola)
golub_cola[c("SD", "MAD"), c("hclust", "kmeans")]
golub_cola["SD", "kmeans"] # a ConsensusPartition object
golub_cola["SD:kmeans"] # a ConsensusPartition object
golub_cola[["SD:kmeans"]] # a ConsensusPartition object
golub_cola["SD", "kmeans", drop = FALSE] # still a ConsensusPartitionList object
golub_cola["SD:kmeans", drop = FALSE] # still a ConsensusPartitionList object
golub_cola["SD", ]
golub_cola[, "hclust"]
golub_cola[1:2, 1:2]

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