PySpacell: A Python Package for Spatial Analysis of Cell Images

Cytometry A. 2020 Mar;97(3):288-295. doi: 10.1002/cyto.a.23955. Epub 2019 Dec 24.

Abstract

Technologies such as microscopy, sequential hybridization, and mass spectrometry enable quantitative single-cell phenotypic and molecular measurements in situ. Deciphering spatial phenotypic and molecular effects on the single-cell level is one of the grand challenges and a key to understanding the effects of cell-cell interactions and microenvironment. However, spatial information is usually overlooked by downstream data analyses, which usually consider single-cell read-out values as independent measurements for further averaging or clustering, thus disregarding spatial locations. With this work, we attempt to fill this gap. We developed a toolbox that allows one to test for the presence of a spatial effect in microscopy images of adherent cells and estimate the spatial scale of this effect. The proposed Python module can be used for any light microscopy images of cells as well as other types of single-cell data such as in situ transcriptomics or metabolomics. The input format of our package matches standard output formats from image analysis tools such as CellProfiler, Fiji, or Icy and thus makes our toolbox easy and straightforward to use, yet offering a powerful statistical approach for a wide range of applications. © 2019 International Society for Advancement of Cytometry.

Keywords: cell graph; imaging; microscopy; neighborhood matrix; single cell; spatial analysis; spatial autocorrelation; spatial dependence; spatial heterogeneity; statistics.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Cluster Analysis
  • Image Processing, Computer-Assisted*
  • Mass Spectrometry
  • Microscopy*
  • Spatial Analysis