# Overview of the SPIAT package

Anna Trigos, Yuzhou Feng, Tianpei Yang, Mabel Li, John Zhu, Volkan Ozcoban, Maria Doyle

#### 20 December 2022

#### Package

SPIAT 1.0.4

# 1 Introduction

SPIAT (Spatial Image Analysis of Tissues) is an R package with a suite of data processing, quality control, visualisation and data analysis tools. SPIAT is compatible with data generated from single-cell spatial proteomics platforms (e.g. OPAL, CODEX, MIBI, cellprofiler). SPIAT reads spatial data in the form of X and Y coordinates of cells, marker intensities and cell phenotypes.

SPIAT includes six analysis modules that allow visualisation, calculation of cell colocalisation, categorisation of the immune microenvironment relative to tumour areas, analysis of cellular neighborhoods, and the quantification of spatial heterogeneity, providing a comprehensive toolkit for spatial data analysis.

An overview of the functions available is shown in the figure below.

# 2 You can access the vignettes for other modules of SPIAT here:

## 2.1 Data reading and formatting

## 2.2 Quality control and visualisation

## 2.3 Basic analysis

## 2.4 Cell colocalisation

## 2.5 Spatial heterogeneity

## 2.6 Tissue structure

## 2.7 Cellular neighborhood

# 3 Installing `SPIAT`

SPIAT is a `R` package available via the Bioconductor repository for packages.

    if (!requireNamespace("BiocManager", quietly = TRUE)) {
          install.packages("BiocManager")}
    BiocManager::install("SPIAT")

You can also install the latest development version from Github.

    if (!requireNamespace("devtools", quietly = TRUE)) {
          install.packages("devtools")}
    devtools::install_github("TrigosTeam/SPIAT")

# 4 Citing `SPIAT`

We hope that SPIAT will be useful for your research. Please use the following information to cite the package and the overall approach. Thank you!

    ## Citation info
    citation("SPIAT")
    #>
    #> To cite package 'SPIAT' in publications use:
    #>
    #>   Trigos A, Feng Y, Yang T, Li M, Zhu J, Ozcoban V, Doyle M (2022).
    #>   _SPIAT: Spatial Image Analysis of Cells in Tissues_. R package
    #>   version 1.0.3, <https://trigosteam.github.io/SPIAT/>.
    #>
    #>   Yang T, Ozcoban V, Pasam A, Kocovski N, Pizzolla A, Huang Y, Bass G,
    #>   Keam S, Neeson P, Sandhu S, Goode D, Trigos A (2020). "SPIAT: An R
    #>   package for the Spatial Image Analysis of Cells in Tissues."
    #>   _bioRxiv_. doi:10.1101/2020.05.28.122614
    #>   <https://doi.org/10.1101/2020.05.28.122614>.
    #>
    #> To see these entries in BibTeX format, use 'print(<citation>,
    #> bibtex=TRUE)', 'toBibtex(.)', or set
    #> 'options(citation.bibtex.max=999)'.

# 5 Author Contributions

AT, YF, TY, ML, JZ, VO, MD are authors of the package code. MD and YF wrote the vignette. AT, YF and TY designed the package.