Installation

Installing using python

To use TARDIS (python version), first install its dependencies using pip or conda.

Attention

To run TARDIS with cluster dependent modules, you must specify cluster fields. One recommended spatial clustering method is Cellcharter [1].

Alternatively, we provide a Non-negative Matrix Factorization (NMF) model for simple analysis.

You can simply install TARDIS dependencies using pip through:

(.venv) $ pip install numpy pandas scipy scikit-learn anndata scanpy

TARDIS can be ran on both Linux and Mac OS, since it is interpreted by python and R.

Note

Both python and R version requires python to run Cluster dependent analysis. since they require Cellcharter to perform clustering.

If other clustering method is performed, follow the instructions in Build your first project to perform downstream analysis.

Installing using R

To install TARDIS (R version), first intall dev-tools

$ install.packages('devtools')
$ devtools::install_github("zenglab-pku/TARDIS")

R will automatically install all the dependencies.

Note

R version 4.2.2 is recommended.