Skip to main content

A tool to identify niche for spatial transcriptomics data.

Project description

NicheXpert

Multi-view, Multi-omics Integration for cell niches identification using Mixture-of-Expert (MoE) model from spatial omics data

python >=3.11

NicheXpert is a deep-learning algorithm to identify and characterize cell niches using Mixture-of-Expert (MoE) model

Requirements and Installation

anndata 0.10.9 matplotlib 3.7.3 numpy 1.23.4 pandas 2.1.0 scanpy 1.9.8 scikit-learn 1.4.1.post1 seaborn 0.13.2 squidpy 1.4.1 tqdm 4.67.1 pydantic 2.12.2

Note: Owing to hardware-specific dependency requirements, deep learning frameworks including PyTorch and DGL are excluded from the explicit dependency list. Unspecified packages comprise: torch, dgl, torchdata, torch-geometric, pyg_lib, torch_cluster, torch_scatter, torch_sparse, and torch_spline_conv.

Installation Tutorial

Create and activate conda environment with requirements installed.

For NicheXpert, the Python version need is over 3.11. If you have already installed a lower version of Python, consider installing Anaconda, and then you can create a new environment.

conda create -n nichexpert python=3.11

If a GPU is not available on your system, please install the CPU versions of PyTorch and DGL instead. You can still proceed by running the commands below to install essential dependencies.

This package is distributed via uv.

conda activate nichexpert
pip install uv
uv pip install nichexpert

Install PyTorch and DGL with CPU version

The primary complexity lies in installing DGL and its associated PyTorch dependencies. Notably,since June 27, 2024, the DGL development team has ceased official support for Windows and macOS platforms. Here I recommend a feasible approach to install these packages.

uv pip install  dgl -f https://data.dgl.ai/wheels/torch-2.1/repo.html
uv pip install torch==2.1.0
uv pip install torchdata==0.7.1
uv pip install torch==2.1.0
uv pip install torch_geometric==2.6.1

Additional Libraries should be installed, including pyg_lib,torch_cluster, torch_scatter, torch_sparse, and torch_spline_conv.

These packages come with their own CPU and GPU kernel implementations based on the PyTorch C++/CUDA/hip(ROCm) extension interface. For a basic usage of PyG, these dependencies are fully optional. For ease of installation of these extensions, the team of PyG also provides pip wheels for all major OS/PyTorch/CUDA combinations, see here.

For details, please refer to the PyTorch Geometric GitHub repository: https://github.com/pyg-team/pytorch_geometric/tree/master

In this tutorial, we will use the macOS system and install the CPU version of these packages with the following commands:

uv pip install https://data.pyg.org/whl/torch-2.1.0%2Bcpu/pyg_lib-0.3.0+pt21-cp311-cp311-macosx_11_0_universal2.whl
uv pip install https://data.pyg.org/whl/torch-2.1.0%2Bcpu/torch_cluster-1.6.2-cp311-cp311-macosx_10_9_universal2.whl
uv pip install https://data.pyg.org/whl/torch-2.1.0%2Bcpu/torch_scatter-2.1.2-cp311-cp311-macosx_10_9_universal2.whl
uv pip install https://data.pyg.org/whl/torch-2.1.0%2Bcpu/torch_sparse-0.6.18-cp311-cp311-macosx_10_9_universal2.whl
uv pip install https://data.pyg.org/whl/torch-2.1.0%2Bcpu/torch_spline_conv-1.2.2-cp311-cp311-macosx_10_9_universal2.whl

Install PyTorch and DGL with GPU version

Building...

Tutorials (identify cell niches)

Building...

Acknowledgements

Building...

About

NicheXpert is developed by Jiyuan Yang. For any inquiries, please feel free to reach out to me via email at jiyuanyang0828@163.com.

References

Building...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nichexpert-0.1.2.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nichexpert-0.1.2-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file nichexpert-0.1.2.tar.gz.

File metadata

  • Download URL: nichexpert-0.1.2.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for nichexpert-0.1.2.tar.gz
Algorithm Hash digest
SHA256 99a1b15aaced205befb3da39a6ddf659d1cb5e399b197ad5e63d78eb5f5cd0b5
MD5 0747fe3627bfc21b2b7eec5fb4e8776c
BLAKE2b-256 feaaa653a705b3e826c57acc0c3988f1bcd457c06973a12587d3d1c42c6a9f12

See more details on using hashes here.

File details

Details for the file nichexpert-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: nichexpert-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for nichexpert-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3dcea6cd2d3c801a371542967a877014e365dd262a0b3a88bd29a18925b7e5cd
MD5 2d04209ed857e97dec33e0bf7852612c
BLAKE2b-256 d6133e5a150643d5b9e3529c6da9139342c22c8b47e9e4c7f2504e4b5905a668

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page