Installation Guide

1. Create a virtual environment

Users can install anaconda by following this tutorial if there is no Anaconda.

Create a separated virtual environment:

conda create -n STAID_env python=3.9
conda activate STAID_env

2. Install STAID

Install STAID from Github and install it by:

git clone https://github.com/jxLiu-bio/STAID.git
cd STAID
pip install .

3. Install Torch

Install the torch according to the tutorial in its official website: Pytorch to install the appropriate version for your system.

For example, to install PyTorch with CUDA 12.4 support, you can run:

pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu124

4. Test installation and set up Jupyter Notebook (optional)

To verify that STAID is installed correctly, start Python:

python

and

import staid

If no error appears, the installation is successful.

Optionally, you can install Jupyter Notebook and create a kernel for your STAID environment:

conda install jupyter
python -m ipykernel install --user --name STAID_env --display-name STAID_env