Installation

From PyPI

pip install genevector

From Source

git clone https://github.com/nceglia/genevector.git
cd genevector
pip install -e .

With Numba Acceleration

pip install genevector[fast]

With Rust Backend

Requires the Rust toolchain:

pip install maturin
maturin develop --release

Dependencies

Required:

  • Python >= 3.9

  • PyTorch

  • Scanpy, AnnData

  • NumPy, SciPy, Pandas

  • Matplotlib, Seaborn

Optional:

Package

Required for

Install

numba

Fast MI computation

pip install numba

squidpy

Building spatial neighbor graphs

pip install squidpy

torch_geometric

PyG-backed aggregations

See PyG docs