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. Submitted (under review), 2024

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.7.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.7.0
File Size Uploaded
nico_sc_sp-1.7.0.tar.gz 95.4 kB Details

Built distribution (wheel)

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

Total release size: 190.8 kB

Release files / nico_sc_sp-1.7.0.tar.gz

Download URL nico_sc_sp-1.7.0.tar.gz
Size 95.4 kB
Tags Source
SHA-256 checksum
How to use checksums
89e294132afc43a89d0900afa74e49f5bc3c768c5868790237d71b9905f27c58
BLAKE2b-256 checksum
How to use checksums
5bb104e5f7e3241b2b0681be7b4b356c9aec89e2a2799877fbfcaa499fa17688
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.7.0-py3-none-any.whl

Download URL nico_sc_sp-1.7.0-py3-none-any.whl
Size 95.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8589e3dbed7e84a1a9f8793e0d7b01977aebb0fd608c76d079ea0940d3d0e335
BLAKE2b-256 checksum
How to use checksums
c831f9c5fb1c8d9db069dbcb46c62a9f37d1c8d235ec430bde4082cfaa8bbc57
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

1.8.0

2 release files

This release

1.7.0 This release

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