Installation

PyPI and pip

To install sainsc from PyPI using pip just run

pip install sainsc

If you want to have support for spatialdata use

pip install sainsc[spatialdata]

Bioconda and conda

If you prefer the installation using Miniconda you can install from the bioconda channel.

conda install bioconda::sainsc

Note

Of course, it is also possible to use mamba instead of conda to speed up the installation.

From Source

If you want to to build the package from source (either from GitHub or PyPI) you will need a Rust compiler. You can follow the official Rust documentation or, if you are using conda install it via conda install conda-forge::rust.

To build the package from PyPI use

pip install --no-binary sainsc

GitHub

You can install the latest versions directly from GitHub. To do so clone the repository using the git clone command. Navigate into the downloaded directory and install using

pip install .

If you want to install the development version you can install the additional optional dependencies with

pip install -e .[dev]

Warning

If you install editable builds (-e) the Rust compiler will default to a debug build, i.e., the code is not optimized and slow. Don’t use this for analysis (only for development)!