Installation

Step 2: Install ONTraC

Using pip

pip install ONTraC
python -m ipykernel install --user --name ONTraC --display-name "Python 3.11 (ONTraC)"

Use this command if you want to visualise the results by ONTraC_analysis.

pip install "ONTraC[analysis]""

Using conda

NOTE: For ARM-based macOS, we recommend installing via pip for now, as the dependency package, pytorh-geometric, does not have a conda build for it. NOTE: For x86-based macOS, conda install only supports Python 3.10 and 3.11 for now. WARNING: Installing with conda can be very slow.

conda install -c gyuanlab -c pytorch -c pyg -c default -c nvidia -c conda-forge ontrac

Install the development version from GitHub

git clone git@github.com:gyuanlab/ONTraC.git .
cd ONTraC
pip install .
pip install ".[analysis]"

Optional dependencies

Deconvolution

STdeconvolve is a reference-free cell-type deconvolution method. Please install through the following command if you want to use it in the preprocessing step when analyzing low resolution data.

conda install bioconda::bioconductor-stdeconvolve -y