DOI: 10.18129/B9.bioc.spaSim  

Spatial point data simulator for tissue images

Bioconductor version: Release (3.18)

A suite of functions for simulating spatial patterns of cells in tissue images. Output images are multitype point data in SingleCellExperiment format. Each point represents a cell, with its 2D locations and cell type. Potential cell patterns include background cells, tumour/immune cell clusters, immune rings, and blood/lymphatic vessels.

Author: Yuzhou Feng [aut, cre] , Anna Trigos [aut]

Maintainer: Yuzhou Feng <yuzhou.feng at>

Citation (from within R, enter citation("spaSim")):


To install this package, start R (version "4.3") and enter:

if (!require("BiocManager", quietly = TRUE))


For older versions of R, please refer to the appropriate Bioconductor release.


To view documentation for the version of this package installed in your system, start R and enter:



HTML R Script vignette
PDF   Reference Manual
Text   NEWS


biocViews BiomedicalInformatics, Software, Spatial, StatisticalMethod
Version 1.4.0
In Bioconductor since BioC 3.16 (R-4.2) (1 year)
License Artistic-2.0
Depends R (>= 4.2.0)
Imports ggplot2, methods, stats, dplyr, spatstat.geom, spatstat.random, SpatialExperiment, SummarizedExperiment, RANN
Suggests RefManageR, BiocStyle, knitr, testthat (>= 3.0.0), sessioninfo, rmarkdown, markdown
Depends On Me
Imports Me
Suggests Me
Links To Me
Build Report  

Package Archives

Follow Installation instructions to use this package in your R session.

Source Package spaSim_1.4.0.tar.gz
Windows Binary
macOS Binary (x86_64) spaSim_1.4.0.tgz
macOS Binary (arm64) spaSim_1.4.0.tgz
Source Repository git clone
Source Repository (Developer Access) git clone
Bioc Package Browser
Package Short Url
Package Downloads Report Download Stats
Old Source Packages for BioC 3.18 Source Archive

Documentation »


R / CRAN packages and documentation

Support »

Please read the posting guide. Post questions about Bioconductor to one of the following locations: