Skip to content

SpatialExperiment

Bioc current

S4 Class for Spatially Resolved -omics Data

v1.22.0 · software · GPL-3

Release Lineage

Entered 3.12 · Oct 28, 2020

Current · Requires R 4.6

1.0 In 12 of 49 releases 3.23

Description

Defines an S4 class for storing data from spatial -omics experiments. The class extends SingleCellExperiment to support storage and retrieval of additional information from spot-based and molecule-based platforms, including spatial coordinates, images, and image metadata. A specialized constructor function is included for data from the 10x Genomics Visium platform.

Test coverage

Line coverage

Expression

Tests / Examples

Functions

29 5 exported

Complexity

4.5 avg / 27 max

Call network

29 nodes / 15 edges

Test coverage is not measured for Bioconductor packages; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

5,964

Files

71

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,861 (48%)Tests 1,114 (18.7%)Docs 1,393 (23.4%)Vignettes 596 (10%)

API

Exported functions

31

Internal functions

24

Testing & CI

Has tests

Yes

Test-to-code ratio

0.39

testthat edition

CI present

Yes

CI type

["github-actions"]

PR gated

Yes

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

12

First release

2020-10-27

Latest release

2026-04-28

Avg cadence

182 days

Cold removal rate

100%

Dep drift

9

LOC over versions

v3.12: 1,194 LOCv3.13: 4,126 LOCv3.14: 4,337 LOCv3.15: 5,327 LOCv3.16: 5,387 LOCv3.17: 5,418 LOCv3.18: 5,942 LOCv3.19: 5,942 LOCv3.20: 5,961 LOCv3.21: 5,961 LOCv3.22: 5,964 LOCv3.23: 5,964 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/bioc-code-metrics.

Documentation

Documentation
READMEYes · 178 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
67%
References docs
0%

Topics

Depended on by (90)

CRAN (2)

People

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("SpatialExperiment")
Righelli, D., Crowell, H. L., Eagles, N. J., Risso, D., & Weber, L. M. (2026). SpatialExperiment: S4 Class for Spatially Resolved -omics Data (Version 1.22.0) [Computer software]. https://bioconductor.org/packages/SpatialExperiment

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for SpatialExperiment version 1.22.0 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy