Authors: Koki Tsuyuzaki [aut, cre]
Compiled: Wed May 1 16:59:49 2024

# 1 Setting

suppressPackageStartupMessages(library("DelayedTensor"))
suppressPackageStartupMessages(library("DelayedArray"))
suppressPackageStartupMessages(library("HDF5Array"))
suppressPackageStartupMessages(library("DelayedRandomArray"))

darr <- RandomUnifArray(c(3,4,5))

setVerbose(FALSE)
setSparse(FALSE)
setAutoBlockSize(1E+8)
## automatic block size set to 1e+08 bytes (was 1e+08)
tmpdir <- tempdir()
setHDF5DumpDir(tmpdir)

# 2 Tensor Decomposition

Tensor decomposition models decompose multiple factor matrices and core tensor. Each factor matrix means the patterns of each mode and is used for the visualization and the downstream analysis. Core tensor means the intensity of the patterns and is used to decide which patterns are informative.

We reimplemented some of the tensor decomposition functions of rTensor using block processing of DelayedArray.

Only tensor decomposition algorithms and utility functions that require Fast Fourier Transform (e.g., t_mult, t_svd, and t_svd_reconstruct) are exceptions and have not yet been implemented in DelayedArray because we are still investigating how to calculate them with out-of-core manner.

## 2.1 Tucker Decomposition

Suppose a tensor $$\mathcal{X} \in \Re^{I \times J \times K}$$. Tucker decomposition models decomposes a tensor $$\mathcal{X}$$ into a core tensor $$\mathcal{G} \in \Re^{p \times q \times r}$$, and multiple factor matrices $$A \in \Re^{I \times p}$$, $$B \in \Re^{J \times q}$$, and $$C \in \Re^{K \times r}$$ ($$p \leq I, q \leq J, \textrm{and}\ r \leq K$$).

$\mathcal{X} = \mathcal{G} \times_{1} A \times_{2} B \times_{3} C$

For simplicity, here we will use a third-order tensor but the Tucker decomposition can be applied to tensors of larger orders.

There are well-known two algorithms; Higher-Order Singular Value Decomposition (HOSVD) and Higher-order Orthogonal Iteration (HOOI).

hosvd performs the HOSVD Tucker decomposition and tucker performs HOOI Tucker decomposition.

For the details, check the hosvd and tucker functions of rTensor.

out_hosvd <- hosvd(darr, ranks=c(2,1,3))
##
|
|                                                                      |   0%
|
|=======================                                               |  33%
|
|===============================================                       |  67%
|
|======================================================================| 100%
str(out_hosvd)
## List of 4
##  $Z :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot ## .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots ## .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e1e1fe39b.h5" ## .. .. .. ..@ name : chr "/HDF5ArrayAUTO00125" ## .. .. .. ..@ as_sparse: logi FALSE ## .. .. .. ..@ type : chr NA ## .. .. .. ..@ dim : int [1:3] 2 1 3 ## .. .. .. ..@ chunkdim : int [1:3] 2 1 3 ## .. .. .. ..@ first_val: num -3.99 ##$ U          :List of 3
##   ..$:Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot ## .. .. ..@ seed: num [1:3, 1:2] -0.519 -0.538 -0.664 0.731 0.124 ... ## ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
##   .. .. ..@ seed: num [1:4, 1] -0.532 -0.481 -0.468 -0.517
##   ..$:Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot ## .. .. ..@ seed: num [1:5, 1:3] -0.491 -0.507 -0.476 -0.394 -0.347 ... ##$ est        :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot
##   .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
##   .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e4475ed3e.h5"
##   .. .. .. ..@ name     : chr "/HDF5ArrayAUTO00142"
##   .. .. .. ..@ as_sparse: logi FALSE
##   .. .. .. ..@ type     : chr NA
##   .. .. .. ..@ dim      : int [1:3] 3 4 5
##   .. .. .. ..@ chunkdim : int [1:3] 3 4 5
##   .. .. .. ..@ first_val: num 0.491
##  $fnorm_resid: num 2.21 out_tucker <- tucker(darr, ranks=c(2,3,2)) ## | | | 0% | |=== | 4% | |====== | 8% | |======== | 12% | |=========== | 16% | |============== | 20% | |================= | 24% | |==================== | 28% | |======================================================================| 100% str(out_tucker) ## List of 7 ##$ Z           :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot
##   .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
##   .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e19727fcc.h5"
##   .. .. .. ..@ name     : chr "/HDF5ArrayAUTO00572"
##   .. .. .. ..@ as_sparse: logi FALSE
##   .. .. .. ..@ type     : chr NA
##   .. .. .. ..@ dim      : int [1:3] 2 3 2
##   .. .. .. ..@ chunkdim : int [1:3] 2 3 2
##   .. .. .. ..@ first_val: num 3.99
##  $U :List of 3 ## ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
##   .. .. ..@ seed: num [1:3, 1:2] -0.494 -0.552 -0.672 0.855 -0.45 ...
##   ..$:Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot ## .. .. ..@ seed: num [1:4, 1:3] -0.527 -0.483 -0.467 -0.52 0.122 ... ## ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
##   .. .. ..@ seed: num [1:5, 1:2] 0.511 0.508 0.472 0.388 0.328 ...
##  $conv : logi TRUE ##$ est         :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot
##   .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
##   .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e72ff2d4c.h5"
##   .. .. .. ..@ name     : chr "/HDF5ArrayAUTO00606"
##   .. .. .. ..@ as_sparse: logi FALSE
##   .. .. .. ..@ type     : chr NA
##   .. .. .. ..@ dim      : int [1:3] 3 4 5
##   .. .. .. ..@ chunkdim : int [1:3] 3 4 5
##   .. .. .. ..@ first_val: num 0.641
##  $norm_percent: num 59.8 ##$ fnorm_resid : num 1.84
##  $all_resids : num [1:7] 1.85 1.84 1.84 1.84 1.84 ... ## 2.2 CANDECOMP/PARAFAC (CP) Decomposition Suppose a tensor $$\mathcal{X} \in \Re^{I \times J \times K}$$. CP decomposition models decomposes a tensor $$X$$ into a core diagonal tensor $$\mathcal{G} \in \Re^{r \times r \times r}$$, and multiple factor matrices $$A \in \Re^{I \times r}$$, $$B \in \Re^{J \times r}$$, and $$C \in \Re^{K \times r}$$ ($$r \leq \min{\left(I,J,K\right)}$$). $\mathcal{X} = \mathcal{G} \times_{1} A \times_{2} B \times_{3} C$ For simplicity, here we will use a third-order tensor but the CP decomposition can be applied to tensors of larger orders. Alternating least squares (ALS) is a well-known algorithm for CP decomposition and cp performs the ALS CP decomposition. For the details, check the cp function of rTensor. out_cp <- cp(darr, num_components=2) ## | | | 0% | |=== | 4% | |====== | 8% | |======== | 12% | |=========== | 16% | |============== | 20% | |================= | 24% | |==================== | 28% | |====================== | 32% | |========================= | 36% | |============================ | 40% | |======================================================================| 100% str(out_cp) ## List of 7 ##$ lambdas     : num [1:2] 6.91 30.35
##  $U :List of 3 ## ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
##   .. .. ..@ seed:Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots
##   .. .. .. .. ..@ perm: int [1:2] 2 1
##   .. .. .. .. ..@ seed:Formal class 'DelayedUnaryIsoOpWithArgs' [package "DelayedArray"] with 6 slots
##   .. .. .. .. .. .. ..@ OP    :function (e1, e2)
##   .. .. .. .. .. .. ..@ Largs : list()
##   .. .. .. .. .. .. ..@ Rargs :List of 1
##   .. .. .. .. .. .. .. ..$: num [1:2] 6.9 30.4 ## .. .. .. .. .. .. ..@ Lalong: int(0) ## .. .. .. .. .. .. ..@ Ralong: int 1 ## .. .. .. .. .. .. ..@ seed :Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots ## .. .. .. .. .. .. .. .. ..@ perm: int [1:2] 2 1 ## .. .. .. .. .. .. .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots ## .. .. .. .. .. .. .. .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e4770f0e5.h5" ## .. .. .. .. .. .. .. .. .. .. ..@ name : chr "/HDF5ArrayAUTO01239" ## .. .. .. .. .. .. .. .. .. .. ..@ as_sparse: logi FALSE ## .. .. .. .. .. .. .. .. .. .. ..@ type : chr NA ## .. .. .. .. .. .. .. .. .. .. ..@ dim : int [1:2] 3 2 ## .. .. .. .. .. .. .. .. .. .. ..@ chunkdim : int [1:2] 3 2 ## .. .. .. .. .. .. .. .. .. .. ..@ first_val: num 3.33 ## ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
##   .. .. ..@ seed:Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots
##   .. .. .. .. ..@ perm: int [1:2] 2 1
##   .. .. .. .. ..@ seed:Formal class 'DelayedUnaryIsoOpWithArgs' [package "DelayedArray"] with 6 slots
##   .. .. .. .. .. .. ..@ OP    :function (e1, e2)
##   .. .. .. .. .. .. ..@ Largs : list()
##   .. .. .. .. .. .. ..@ Rargs :List of 1
##   .. .. .. .. .. .. .. ..$: num [1:2] 6.9 30.4 ## .. .. .. .. .. .. ..@ Lalong: int(0) ## .. .. .. .. .. .. ..@ Ralong: int 1 ## .. .. .. .. .. .. ..@ seed :Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots ## .. .. .. .. .. .. .. .. ..@ perm: int [1:2] 2 1 ## .. .. .. .. .. .. .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots ## .. .. .. .. .. .. .. .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e18d2141d.h5" ## .. .. .. .. .. .. .. .. .. .. ..@ name : chr "/HDF5ArrayAUTO01262" ## .. .. .. .. .. .. .. .. .. .. ..@ as_sparse: logi FALSE ## .. .. .. .. .. .. .. .. .. .. ..@ type : chr NA ## .. .. .. .. .. .. .. .. .. .. ..@ dim : int [1:2] 4 2 ## .. .. .. .. .. .. .. .. .. .. ..@ chunkdim : int [1:2] 4 2 ## .. .. .. .. .. .. .. .. .. .. ..@ first_val: num -2.11 ## ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
##   .. .. ..@ seed:Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots
##   .. .. .. .. ..@ perm: int [1:2] 2 1
##   .. .. .. .. ..@ seed:Formal class 'DelayedUnaryIsoOpWithArgs' [package "DelayedArray"] with 6 slots
##   .. .. .. .. .. .. ..@ OP    :function (e1, e2)
##   .. .. .. .. .. .. ..@ Largs : list()
##   .. .. .. .. .. .. ..@ Rargs :List of 1
##   .. .. .. .. .. .. .. ..$: num [1:2] 6.91 30.35 ## .. .. .. .. .. .. ..@ Lalong: int(0) ## .. .. .. .. .. .. ..@ Ralong: int 1 ## .. .. .. .. .. .. ..@ seed :Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots ## .. .. .. .. .. .. .. .. ..@ perm: int [1:2] 2 1 ## .. .. .. .. .. .. .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots ## .. .. .. .. .. .. .. .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e6ffc8573.h5" ## .. .. .. .. .. .. .. .. .. .. ..@ name : chr "/HDF5ArrayAUTO01285" ## .. .. .. .. .. .. .. .. .. .. ..@ as_sparse: logi FALSE ## .. .. .. .. .. .. .. .. .. .. ..@ type : chr NA ## .. .. .. .. .. .. .. .. .. .. ..@ dim : int [1:2] 5 2 ## .. .. .. .. .. .. .. .. .. .. ..@ chunkdim : int [1:2] 5 2 ## .. .. .. .. .. .. .. .. .. .. ..@ first_val: num 1.24 ##$ conv        : logi TRUE
##  $est :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot ## .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots ## .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e26411fcb.h5" ## .. .. .. ..@ name : chr "/HDF5ArrayAUTO01302" ## .. .. .. ..@ as_sparse: logi FALSE ## .. .. .. ..@ type : chr NA ## .. .. .. ..@ dim : int [1:3] 3 4 5 ## .. .. .. ..@ chunkdim : int [1:3] 3 4 5 ## .. .. .. ..@ first_val: num 0.351 ##$ norm_percent: num 58.3
##  $fnorm_resid : num 1.91 ##$ all_resids  : num [1:10] 4.3 2.35 1.92 1.91 1.91 ...

## 2.3 Multilinear Principal Component Analysis (MPCA)

MPCA is a kind of Tucker decomposition and when the order of tensor is 3, this is also known as the Generalized Low-Rank Approximation of Matrices (GLRAM). For the details, check the mpca function of rTensor.

out_mpca <- mpca(darr, ranks=c(2,2))
##
|
|                                                                      |   0%
|
|===                                                                   |   4%
|
|======                                                                |   8%
|
|========                                                              |  12%
|
|===========                                                           |  16%
|
|==============                                                        |  20%
|
|======================================================================| 100%
str(out_mpca)
## List of 7
##  $Z_ext :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot ## .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots ## .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e70938b2f.h5" ## .. .. .. ..@ name : chr "/HDF5ArrayAUTO01468" ## .. .. .. ..@ as_sparse: logi FALSE ## .. .. .. ..@ type : chr NA ## .. .. .. ..@ dim : int [1:3] 2 2 5 ## .. .. .. ..@ chunkdim : int [1:3] 2 2 5 ## .. .. .. ..@ first_val: num 1.97 ##$ U           :List of 3
##   ..$:Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot ## .. .. ..@ seed: num [1:3, 1:2] -0.508 -0.535 -0.675 0.861 -0.346 ... ## ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
##   .. .. ..@ seed: num [1:4, 1:2] -0.527 -0.48 -0.469 -0.521 0.13 ...
##   ..$: NULL ##$ conv        : logi TRUE
##  $est :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot ## .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots ## .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e4e4b82aa.h5" ## .. .. .. ..@ name : chr "/HDF5ArrayAUTO01490" ## .. .. .. ..@ as_sparse: logi FALSE ## .. .. .. ..@ type : chr NA ## .. .. .. ..@ dim : int [1:3] 3 4 5 ## .. .. .. ..@ chunkdim : int [1:3] 3 4 5 ## .. .. .. ..@ first_val: num 0.42 ##$ norm_percent: num 60.8
##  $fnorm_resid : num 1.79 ##$ all_resids  : num [1:5] 1.79 1.79 1.79 1.79 1.79

## 2.4 Population Value Decomposition (PVD)

Suppose a series of 2D data X_{j}, where $$X_{j} \in \Re^{n_{1} \times n_{2}}$$, and $$j = 1, \ldots , n_{3}$$. PVD models decomposes a tensor $$X_{j}$$ into two common factor matrices across all $$X_{j}$$, $$P \in \Re^{n_{1} \times r_{1}}$$ and $$D \in \Re^{n_{2} \times r_{2}}$$, and a $$X_{j}$$ specific factor matrix $$V_{j} \in \Re^{r_{1} \times r_{2}}$$ ($$r_{1} \leq n_{1}, \textrm{and}\ r_{2} \leq n_{2}$$).

$X_{j} = P \times V_{j} \times D$

For the details, check the pvd function of rTensor.

out_pvd <- pvd(darr,
uranks=rep(2,dim(darr)[3]), wranks=rep(3,dim(darr)[3]), a=2, b=3)
##
|
|                                                                      |   0%
|
|=========                                                             |  12%
|
|==================                                                    |  25%
|
|==========================                                            |  38%
|
|===================================                                   |  50%
|
|============================================                          |  62%
|
|====================================================                  |  75%
|
|=============================================================         |  88%
|
|======================================================================| 100%
str(out_pvd)
## List of 6
##  $P :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot ## .. ..@ seed: num [1:3, 1:2] -0.55 -0.486 -0.679 0.827 -0.205 ... ##$ D           :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
##   .. ..@ seed:Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots
##   .. .. .. ..@ perm: int [1:2] 2 1
##   .. .. .. ..@ seed: num [1:4, 1:3] 0.696 0.536 0.449 0.167 0.256 ...
##  $V :List of 5 ## ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
##   .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
##   .. .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e179aab1b.h5"
##   .. .. .. .. ..@ name     : chr "/HDF5ArrayAUTO01524"
##   .. .. .. .. ..@ as_sparse: logi FALSE
##   .. .. .. .. ..@ type     : chr NA
##   .. .. .. .. ..@ dim      : int [1:2] 2 3
##   .. .. .. .. ..@ chunkdim : int [1:2] 2 3
##   .. .. .. .. ..@ first_val: num -1.77
##   ..$:Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot ## .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots ## .. .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e689b09c4.h5" ## .. .. .. .. ..@ name : chr "/HDF5ArrayAUTO01530" ## .. .. .. .. ..@ as_sparse: logi FALSE ## .. .. .. .. ..@ type : chr NA ## .. .. .. .. ..@ dim : int [1:2] 2 3 ## .. .. .. .. ..@ chunkdim : int [1:2] 2 3 ## .. .. .. .. ..@ first_val: num -1.9 ## ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
##   .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
##   .. .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e1e541f11.h5"
##   .. .. .. .. ..@ name     : chr "/HDF5ArrayAUTO01536"
##   .. .. .. .. ..@ as_sparse: logi FALSE
##   .. .. .. .. ..@ type     : chr NA
##   .. .. .. .. ..@ dim      : int [1:2] 2 3
##   .. .. .. .. ..@ chunkdim : int [1:2] 2 3
##   .. .. .. .. ..@ first_val: num -1.86
##   ..$:Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot ## .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots ## .. .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e316275cf.h5" ## .. .. .. .. ..@ name : chr "/HDF5ArrayAUTO01542" ## .. .. .. .. ..@ as_sparse: logi FALSE ## .. .. .. .. ..@ type : chr NA ## .. .. .. .. ..@ dim : int [1:2] 2 3 ## .. .. .. .. ..@ chunkdim : int [1:2] 2 3 ## .. .. .. .. ..@ first_val: num -1.37 ## ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
##   .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
##   .. .. .. .. ..@ filepath : chr "/tmp/RtmpZoOLIU/auto760e578d804.h5"
##   .. .. .. .. ..@ name     : chr "/HDF5ArrayAUTO01548"
##   .. .. .. .. ..@ as_sparse: logi FALSE
##   .. .. .. .. ..@ type     : chr NA
##   .. .. .. .. ..@ dim      : int [1:2] 2 3
##   .. .. .. .. ..@ chunkdim : int [1:2] 2 3
##   .. .. .. .. ..@ first_val: num -1.22
##  $est :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot ## .. ..@ seed: num [1:3, 1:4, 1:5] 0.51 0.526 0.754 0.444 0.437 ... ##$ norm_percent: num 64
##  \$ fnorm_resid : num 1.65

# Session information

## R version 4.4.0 RC (2024-04-16 r86468)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 22.04.4 LTS
##
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.20-bioc/R/lib/libRblas.so
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
##
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
##  [3] LC_TIME=en_GB              LC_COLLATE=C
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
##
## time zone: America/New_York
## tzcode source: system (glibc)
##
## attached base packages:
## [1] stats4    stats     graphics  grDevices utils     datasets  methods
## [8] base
##
## other attached packages:
##  [1] DelayedRandomArray_1.13.0 HDF5Array_1.33.0
##  [3] rhdf5_2.49.0              DelayedArray_0.31.0
##  [5] SparseArray_1.5.0         S4Arrays_1.5.0
##  [7] abind_1.4-5               IRanges_2.39.0
##  [9] S4Vectors_0.43.0          MatrixGenerics_1.17.0
## [11] matrixStats_1.3.0         BiocGenerics_0.51.0
## [13] Matrix_1.7-0              DelayedTensor_1.11.0
## [15] BiocStyle_2.33.0
##
## loaded via a namespace (and not attached):
##  [1] jsonlite_1.8.8      compiler_4.4.0      BiocManager_1.30.22
##  [4] crayon_1.5.2        rsvd_1.0.5          Rcpp_1.0.12
##  [7] rhdf5filters_1.17.0 parallel_4.4.0      jquerylib_0.1.4
## [10] BiocParallel_1.39.0 yaml_2.3.8          fastmap_1.1.1
## [13] lattice_0.22-6      R6_2.5.1            XVector_0.45.0
## [16] ScaledMatrix_1.13.0 knitr_1.46          einsum_0.1.2
## [19] bookdown_0.39       bslib_0.7.0         rlang_1.1.3
## [22] cachem_1.0.8        xfun_0.43           sass_0.4.9
## [25] cli_3.6.2           Rhdf5lib_1.27.0     BiocSingular_1.21.0
## [28] zlibbioc_1.51.0     digest_0.6.35       grid_4.4.0
## [31] irlba_2.3.5.1       rTensor_1.4.8       dqrng_0.3.2
## [34] lifecycle_1.0.4     evaluate_0.23       codetools_0.2-20
## [37] beachmat_2.21.0     rmarkdown_2.26      tools_4.4.0
## [40] htmltools_0.5.8.1