NicheXpert
Multi-view, Multi-omics Integration for cell niches identification using Mixture-of-Expert (MoE) model from spatial omics data
NicheXpert is a deep-learning algorithm to identify and characterize cell niches using Mixture-of-Expert (MoE) model
Requirements and Installation
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.
pyg-lib: Heterogeneous GNN operators and graph sampling routinestorch-scatter: Accelerated and efficient sparse reductionstorch-sparse:SparseTensorsupporttorch-cluster: Graph clustering routinestorch-spline-conv:SplineConvsupport
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...
Metadata
Release files for nichexpert 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nichexpert-0.1.2.tar.gz | 27.8 kB | Without provenance | Details for nichexpert-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nichexpert-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for nichexpert-0.1.2-py3-none-any.whl |
Total release size: 56.5 kB
Release files / nichexpert-0.1.2.tar.gz
| Download URL | nichexpert-0.1.2.tar.gz |
|---|---|
| Size | 27.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99a1b15aaced205befb3da39a6ddf659d1cb5e399b197ad5e63d78eb5f5cd0b5
|
|
BLAKE2b-256 checksum How to use checksums |
feaaa653a705b3e826c57acc0c3988f1bcd457c06973a12587d3d1c42c6a9f12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / nichexpert-0.1.2-py3-none-any.whl
| Download URL | nichexpert-0.1.2-py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3dcea6cd2d3c801a371542967a877014e365dd262a0b3a88bd29a18925b7e5cd
|
|
BLAKE2b-256 checksum How to use checksums |
d6133e5a150643d5b9e3529c6da9139342c22c8b47e9e4c7f2504e4b5905a668
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for nichexpert 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.