Extract.HeatmapList.Rd
Subset a HeatmapList object
# S3 method for HeatmapList [(x, i, j)
x | A |
---|---|
i | row indices |
j | column indices |
If the heatmap list is horizontal, i
is the row indices and j
corresponds to heatmap names and single annotation names.
and if the heatlist is vertical, i
corresponds to heatmap/annotation names and j
is the column indices.
ht_list = Heatmap(matrix(rnorm(100), 10), name = "rnorm") + rowAnnotation(foo = 1:10, bar = anno_points(10:1)) + Heatmap(matrix(runif(100), 10), name = "runif") summary(ht_list[1:5, ])#> A horizontal heamtap list with 3 heatmap/annotations. #> rnorm: a matrix with 5 rows and 10 columns #> heatmap_annotation_3: a list of 2 annotations #> foo: a simple annotation. #> bar: a complex annotation. #> runif: a matrix with 5 rows and 10 columns#> A horizontal heamtap list with 1 heatmap/annotations. #> rnorm: a matrix with 5 rows and 10 columns#> A horizontal heamtap list with 1 heatmap/annotations. #> rnorm: a matrix with 5 rows and 10 columns#> A horizontal heamtap list with 2 heatmap/annotations. #> rnorm: a matrix with 5 rows and 10 columns #> heatmap_annotation_3: a list of 1 annotations #> foo: a simple annotation.ht_list = Heatmap(matrix(rnorm(100), 10), name = "rnorm") %v% columnAnnotation(foo = 1:10, bar = anno_points(10:1)) %v% Heatmap(matrix(runif(100), 10), name = "runif") summary(ht_list[, 1:5])#> A vertical heamtap list with 3 heatmap/annotations. #> rnorm: a matrix with 10 rows and 5 columns #> heatmap_annotation_4: a list of 2 annotations #> foo: a simple annotation. #> bar: a complex annotation. #> runif: a matrix with 10 rows and 5 columns#> A vertical heamtap list with 1 heatmap/annotations. #> rnorm: a matrix with 10 rows and 5 columns#> A vertical heamtap list with 1 heatmap/annotations. #> rnorm: a matrix with 10 rows and 5 columns#> A vertical heamtap list with 2 heatmap/annotations. #> rnorm: a matrix with 10 rows and 5 columns #> heatmap_annotation_4: a list of 1 annotations #> foo: a simple annotation.