Installation

TiRank supports multiple installation methods. We recommend using a dedicated conda environment.

Method 2: Docker

  1. Install Docker.

  2. Pull the TiRank Docker image:

docker pull lenislin/tirank_v1:latest
  1. Run the Docker container:

docker run -p 8050:8050 lenislin/tirank_v1:latest /bin/bash
  1. Verify TiRank inside the container:

conda activate TiRank
python -c "import tirank; print(tirank.__version__)"
  1. (Optional) Mount a local directory for persistent storage:

docker run -it -v /path/to/local/data:/container/data lenislin/tirank_v1:latest /bin/bash

Method 3: Interactive Web Tool (GUI)

This method runs the TiRank web application locally.

  1. Set up the web server directory:

cd TiRank/Web
mkdir -p data
  1. Download and extract the archived example datasets and pretrained model files from Zenodo:

  2. Ensure the following directory structure under Web/:

Web/
├── assets/
├── components/
├── img/
├── layout/
├── data/
│   ├── pretrainModel/
│   │   └── ctranspath.pth
│   ├── ExampleData/
│   │   ├── CRC_ST_Prog/
│   │   └── SKCM_SC_Res/
├── tiRankWeb/
└── app.py
  1. Run the web application:

python app.py
  1. Open a browser at: http://localhost:8050

Method 4: Snakemake Workflow (Reproducible Execution)

For end-to-end workflow execution with automated environment provisioning, we recommend running the provided Snakemake workflow with integrated conda environment management.

  1. Install a fixed Snakemake version:

conda create -n tirank_smk -c conda-forge -c bioconda python=3.9 snakemake=7.32.4
conda activate tirank_smk
  1. From the TiRank repository root, run:

snakemake --snakefile workflow/Snakefile \
          --configfile workflow/config/config.yaml \
          --use-conda --cores 8

For details (including recommended folder layout and configuration), see: Snakemake Workflow