Installation Guide
Follow the steps below to install and set up CytoBulk.
Setting Up the Environment for Python and R
The CytoBulk package is developed based on the pytorch framework and can be implemented on both GPU and CPU. We recommend running the package on GPU. Please ensure that pytorch and CUDNN are installed correctly.
Option 1: Set Python and R Together
conda config --append channels conda-forge
conda create --name cytobulk python=3.10 r-base=4.4
conda activate cytobulk
pip install cytobulk
If you have installed cytobulk package, please run following code to update the latest version
pip install cytobulk==0.1.20
Option 2: Set Only Python and Specify R Path Separately
conda create --name cytobulk python=3.10
conda activate cytobulk
pip install cytobulk
import os
# Set the R installation path (adjust the path based on your R installation)
os.environ['R_HOME'] = r_path
pip install cytobulk==0.1.20
Install required R packages
To run CytoBulk, make sure all the following prerequisites are installed.
R 4.4.0 or higher and the following packages