Get Column Order from a Heatmap List

# S4 method for HeatmapList
column_order(object, name = NULL)

Arguments

object

A HeatmapList-class object.

name

Name of a specific heatmap.

Value

The format of the returned object depends on whether rows/columns of the heatmaps are split.

Examples

mat = matrix(rnorm(100), 10) ht_list = Heatmap(mat) + Heatmap(mat) ht_list = draw(ht_list)
column_order(ht_list)
#> $matrix_28 #> [1] 3 9 10 8 7 1 5 4 2 6 #> #> $matrix_29 #> [1] 3 9 10 8 7 1 5 4 2 6 #>
ht_list = Heatmap(mat, column_km = 2) + Heatmap(mat, column_km = 2) ht_list = draw(ht_list)
column_order(ht_list)
#> $matrix_30 #> $matrix_30$`1` #> [1] 7 1 5 4 2 6 #> #> $matrix_30$`2` #> [1] 3 9 10 8 #> #> #> $matrix_31 #> $matrix_31$`1` #> [1] 5 4 6 10 8 #> #> $matrix_31$`2` #> [1] 3 9 7 1 2 #> #>
ht_list = Heatmap(mat) %v% Heatmap(mat) ht_list = draw(ht_list)
column_order(ht_list)
#> [1] 3 9 10 8 7 1 5 4 2 6
ht_list = Heatmap(mat, column_km = 2) %v% Heatmap(mat) ht_list = draw(ht_list)
column_order(ht_list)
#> $`1` #> [1] 7 1 5 4 2 6 #> #> $`2` #> [1] 3 9 10 8 #>