Bioc2026 Registration Open!

SparseArray

High-performance sparse data representation and manipulation in R

Bioconductor version: 3.23 · Package version: 1.12.2

The SparseArray package provides array-like containers for efficient in-memory representation of multidimensional sparse data in R (arrays and matrices). The package defines the SparseArray virtual class and two concrete subclasses: COO_SparseArray and SVT_SparseArray. Each subclass uses its own internal representation of the nonzero multidimensional data: the "COO layout" and the "SVT layout", respectively. SVT_SparseArray objects mimic as much as possible the behavior of ordinary matrix and array objects in base R. In particular, they suppport most of the "standard matrix and array API" defined in base R and in the matrixStats package from CRAN.

Installation

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("SparseArray")

Details

MaintainerHervé Pagès <hpages.on.github@gmail.com>
AuthorHervé Pagès [aut, cre] (ORCID: <https://orcid.org/0009-0002-8272-4522>), Vince Carey [fnd] (ORCID: <https://orcid.org/0000-0003-4046-0063>), Rafael A. Irizarry [fnd] (ORCID: <https://orcid.org/0000-0002-3944-4309>), Jacques Serizay [ctb] (ORCID: <https://orcid.org/0000-0002-4295-0624>)
LicenseArtistic-2.0
URLhttps://bioconductor.org/packages/SparseArray
Bug Reportshttps://github.com/Bioconductor/SparseArray/issues
Downloads rank56608
Source branchRELEASE_3_23
biocViewsDataRepresentation, Infrastructure, Software

Documentation

Download

Dependencies

Depends: R (>= 4.3.0), methods, Matrix, BiocGenerics (>= 0.43.1), MatrixGenerics (>= 1.11.1), S4Vectors (>= 0.43.2), S4Arrays (>= 1.11.1)

Imports: utils, stats, matrixStats, IRanges, XVector

LinkingTo: S4Vectors, IRanges, XVector

Suggests: HDF5Array, ExperimentHub, testthat, knitr, rmarkdown, BiocStyle

Reverse dependencies

Depends On Me (6): DelayedArray, DelayedRandomArray, h5mread, HDF5Array, TileDBArray, ZarrArray

Imports Me (19): alabaster.matrix, BatChef, batchelor, beachmat, DelayedMatrixStats, DelayedTensor, dreamlet, DropletUtils, glmGamPoi, GSVA, IDLFM, SCArray, scater, scone, scrapper, scRNAseq, scuttle, TSCAN, zellkonverter

Suggests Me (5): BiocGenerics, MatrixGenerics, metagenomeSeq, S4Arrays, SummarizedExperiment