https://github.com/bioconductor/matrixgenerics
S4 Generic Summary Statistic Functions that Operate on Matrix-Like Objects
https://github.com/bioconductor/matrixgenerics
bioconductor-package core-package
Last synced: about 1 year ago
JSON representation
S4 Generic Summary Statistic Functions that Operate on Matrix-Like Objects
- Host: GitHub
- URL: https://github.com/bioconductor/matrixgenerics
- Owner: Bioconductor
- Created: 2017-11-03T14:13:49.000Z (over 8 years ago)
- Default Branch: devel
- Last Pushed: 2024-04-30T18:12:37.000Z (about 2 years ago)
- Last Synced: 2024-05-09T07:46:36.667Z (about 2 years ago)
- Topics: bioconductor-package, core-package
- Language: R
- Homepage: https://bioconductor.org/packages/MatrixGenerics
- Size: 367 KB
- Stars: 11
- Watchers: 14
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[
](https://bioconductor.org/)
**MatrixGenerics** is an R/Bioconductor package that provides the S4 generics for popular row and column aggregation functions for matrices (e.g. `colVars()`, `rowMedians()`). It follows the API developed by the [**matrixStats**](https://cran.r-project.org/package=matrixStats) package. The target audience for **MatrixGenerics** are R package developers that want to write code that can automatically handle different kind of matrix implementations: for example base R `matrix`, the S4 `Matrix` (including sparse representations), and `DelayedMatrix` objects.
A prerequisite to handle these matrix objects is that a package with the corresponding implementation is available. So far, there are six packages:
* [**matrixStats**](https://cran.r-project.org/package=matrixStats) for base R `matrix` objects
* [**Matrix**](https://cran.r-project.org/package=Matrix) and [**sparseMatrixStats**](https://github.com/const-ae/sparseMatrixStats) for `dgCMatrix` (sparse matrix) objects from the **Matrix** package
* [**SparseArray**](https://bioconductor.org/packages/SparseArray) for `SVT_SparseMatrix` objects from the same package
* [**DelayedArray**](https://bioconductor.org/packages/DelayedArray) and [**DelayedMatrixStats**](https://bioconductor.org/packages/DelayedMatrixStats) for `DelayedMatrix` objects from the **DelayedArray** package.
This package imports **matrixStats** and automatically forwards all function calls on `matrix`, `array`, or `numeric` objects to **matrixStats**. To handle other matrix-like objects, the user must manually install the package that implements row and column aggregation methods for those objects (e.g. the **sparseMatrixStats**, **SparseArray**, **DelayedArray**, or **DelayedMatrixStats** package).
See https://bioconductor.org/packages/MatrixGenerics for more information including how to install the release version of the package (please refrain from installing directly from GitHub).