NiCo: Niche covariation analysis of spatial transcriptomics data

Important

πŸš€ NEW USERS β€” START HERE!

For new NiCo analyses, please use nico-wrapper as the preferred way to apply NiCo.

Since August 1, 2026, nico-wrapper provides streamlined command-line and Python interfaces for the main NiCo workflow while continuing to use NiCo for the underlying scientific computations.

πŸ‘‰ Start with nico-wrapper on Gruenlab GitHub

The direct NiCo installation and tutorials on this website are primarily retained for existing users, legacy analyses, and reproducibility.

NiCo spatial analysis

Infer cellular crosstalk from spatial transcriptomics and scRNA-seq data

Important

πŸ†• Recommended workflow for new analyses

If you are starting a new project with NiCo, please start with nico-wrapper rather than the legacy direct NiCo installation.

nico-wrapper provides a streamlined interface to the main NiCo workflow through both CLI and Python interfaces, while NiCo remains the underlying scientific computation framework.

πŸ‘‰ Start with nico-wrapper

Existing users who need to reproduce previous analyses can continue using the direct NiCo package and the tutorials provided in this documentation.

The Niche Covariation (NiCo) package is developed for the integration of single-cell resolution spatial transcriptomics and scRNA-seq data (or from sequencing-based spatial transcriptomics data alone) to (1) perform cell type annotations in the spatial modality by label transfer, (2) predict niche cell type interactions within local neighborhoods, and (3) infer cell state covariation and the underlying molecular crosstalk in the niche. NiCo infers factors capturing cell state variability in both modalities and identifies genes correlated to these latent factors for the prediction of ligand-receptor interactions and factor-associated pathways.

For new analyses, we recommend using nico-wrapper as the preferred interface to the NiCo workflow.

Highlights of NiCo

  1. Annotations of cell types in spatial data by label transfer

  2. Prediction of niche interactions using neighborhood analysis

  3. Covariation analysis of latent factors across niche cell types

  4. Prediction of ligand-receptor interactions mediating niche crosstalk

  5. Inference of pathways aassociated with covarying cell states

Installation

Warning

For new analyses, please use nico-wrapper instead of the direct NiCo installation below.

Since August 1, 2026, nico-wrapper provides a streamlined command-line and Python interface for the main NiCo workflow while continuing to use NiCo as the underlying scientific computation framework.

Note

Please install using following commands:

conda create -n nicoUser python=3.11
conda activate nicoUser
pip install nico-sc-sp
pip install jupyterlab

For more details, follow the python package index guidelines from nico-sc-sp pypi

Tutorials

Note

New users: For new analyses, please start with nico-wrapper.

The tutorials below describe the direct NiCo workflow and are retained for existing users, previous analyses, and reproducibility.

Please prepare the input files with scRNA-seq count data and cell type annotation (cluster partition), spatial count data, and spatial cell coordinates to run the complete NiCo tutorials.

NiCo tutorials for imaging-based spatial transcriptomics (Xenium, MERSCOPE, seqFISH) or sequencing-based methods, e.g., Slide-seqV2, are available here

Contents:

Indices and tables