Skip to main content

NiCo: Niche Covariation Analysis DOI

Developed by Ankit Agrawal (c) Grün lab 2024

NiCo package designed to uncover covariation patterns between interacting cell types from image-based single-cell resolution spatial transcriptomics data. It enables comprehensive cell type annotations, niche interaction discoveries, and the analysis of covariation patterns between interacting cell types.


🚀 Start Here — Use nico-wrapper for New Analyses


Key Features

  • Cell Type Annotation: Perform accurate cell type annotations on single cell resolution spatial transcriptomics data.
  • Niche Interaction: Identify and analyze colocalized interactions between different cell types within their tissue niches.
  • Covariation: Discover covariates between colocalized cell types to understand the cross-talk of gene modules and the enrichment of pathways in the niche.

Ready for use!
Tutorials and documentation are available!


Installation

Install the NiCo package using the conda environment. This ensures all dependencies are correctly managed and installed.

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

Sometimes, the pygraphviz package cannot be installed via pip, or during the cell type interaction part, it gives an error that "neato" is not found in path, so an alternative conda way of installation is recommended. Please follow the installation of pygraphviz here

conda create -y -n nicoUser python=3.12
conda activate nicoUser
conda install -c conda-forge pygraphviz
pip install nico-sc-sp
pip install jupyterlab

Required packages built upon

By default, these packages should install automatically. However, if any version conflicts arise, you can manually install the specific versions using pip.

scanpy==1.12.4
seaborn==0.13.2
scipy==1.18.1
matplotlib==3.11.2
numpy==2.5.3
gseapy==1.3.1
xlsxwriter==3.2.9
numba==0.67.0
pydot==4.0.1
KDEpy==1.1.12
pygraphviz==2.0.2
networkx==3.7
scikit-learn==1.9.1
pandas==3.0.6
leidenalg

Usage

Import the NiCo functions in your Python script or Jupyter Notebook as follows:

from nico import Annotations as sann
from nico import Interactions as sint
from nico import Covariations as scov

Tutorials (Jupyter notebook)

Detailed tutorials are available to help you get started quickly. These tutorials will guide you through setting up and using NiCo for various applications.
https://github.com/ankitbioinfo/nico_tutorial

Documentations, tutorials (html) and API reference

Comprehensive documentation is available to guide you through the installation, usage, and features of NiCo.
https://nico-sc-sp.readthedocs.io/en/latest/

Reference

Ankit Agrawal, Stefan Thomann, Sukanya Basu, Dominic Grün. NiCo identifies extrinsic drivers of cell state modulation by niche covariation analysis. Nature Communications (2024) 15:10628. https://doi.org/10.1038/s41467-024-54973-w

Additional Resources:

Special thanks to the following utility packages used in the development of NiCo:

SCTransformPy
https://github.com/atarashansky/SCTransformPy

pyliger
https://github.com/welch-lab/pyliger

Contact

For any questions or issues, please feel free to contact [ankitplusplus at gmail.com]. Your feedback and contributions are always welcome!

Release files for nico-sc-sp 1.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nico-sc-sp 1.8.0
File Size Uploaded
nico_sc_sp-1.8.0.tar.gz 95.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nico-sc-sp 1.8.0
File Interpreter ABI Platform
nico_sc_sp-1.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 190.9 kB

Release files / nico_sc_sp-1.8.0.tar.gz

Download URL nico_sc_sp-1.8.0.tar.gz
Size 95.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e8456ca8b3c67741305b7017a87dca2f8a6c40aeaf15305ab2fe69bba7a6d5d9
BLAKE2b-256 checksum
How to use checksums
153a3016a7cb0c92ba5ba1eff21155c14f502b5068e2d7b9d356bb2b44be16d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / nico_sc_sp-1.8.0-py3-none-any.whl

Download URL nico_sc_sp-1.8.0-py3-none-any.whl
Size 95.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c587c3fb8161c9c7579172fff6f1a141a708ab811316b714bff5e51b157de593
BLAKE2b-256 checksum
How to use checksums
49bd4a1bffa7c7479c7d09ba56da9873d902d324ea71eca29977c1fefeb14778
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

1.8.0 This release

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page