Skip to content

Getting Started

Prerequisites

Pixi

3t-seq uses Pixi to install and manage all software dependencies. Without it you would need to manually install and version-lock Snakemake, conda/mamba, STAR, Trimmomatic, featureCounts, DESeq2, samtools, deeptools, and a dozen other tools — and ensure they all agree on Python and R versions. Pixi replaces that entire process with a single command.

Install it once on your machine (Linux / macOS):

curl -fsSL https://pixi.sh/install.sh | bash

Or follow the official instructions.

Git LFS

3t-seq uses Git Large File Storage (LFS) to store the integration test data (chr19-subset FASTQs and reference files). Without git-lfs those files are downloaded as small pointer stubs, not real data. The setup step will then fail, and the test run will silently process empty inputs.

Install it before cloning:

brew install git-lfs
sudo apt install git-lfs
module load git-lfs

Then activate it globally (once per machine):

git lfs install

Apptainer

Tools run inside the pinned 3t-seq containers, so you need Apptainer ≥ 1.2.5 on Linux. Pixi does not install it: use your system package or your cluster's module (e.g. module load Apptainer). On Ubuntu:

sudo add-apt-repository -y ppa:apptainer/ppa
sudo apt install -y apptainer

Do not use the conda-forge Apptainer

The squashfuse_ll shipped with conda-forge's apptainer / squashfuse packages can hang indefinitely while reading files inside the image (seen with Trimmomatic; see conda-forge/squashfuse-feedstock#21). Make sure which apptainer does not point into a conda environment.

On macOS, see Apple Silicon & macOS notes.

Installation

  1. Clone the repository:

    git clone https://github.com/boulardlab/3t-seq.git
    cd 3t-seq
    

    Development branch

    For the latest (potentially unstable) features, clone dev instead:

    git clone -b dev https://github.com/boulardlab/3t-seq.git
    

  2. Pull the LFS assets and install all dependencies:

    pixi run -e dev setup   # installs the dev environment, pulls git-lfs test data
    pixi install            # installs the default environment (Snakemake and plugins)
    

    pixi install only installs the default environment. The dev environment (needed by setup, test and the other -e dev tasks) is installed the first time you use -e dev, or explicitly with pixi install -e dev. The analysis tools themselves come from per-rule Conda environments inside the 3t-seq container, which Snakemake pulls on the first run.


Your First Run

Run the integration test to verify the installation:

pixi run -e dev test local-references laptop

This processes a 4-sample chr19 subset of the GSE130735 mouse lung dataset (WT vs KO, paired-end) and checks that all pipeline stages complete successfully. On the GitHub Actions runner used by CI (4 cores, ci profile) the pipeline step takes about 5 minutes with the container image already cached; the first run on a new machine also downloads the 3t-seq and SalmonTE container images, which takes longer.

Step-by-step walkthrough

The Tutorial walks through this exact test run in detail — explaining every config option, sample sheet column, and output file.


Apple Silicon & macOS notes

3t-seq supports macOS including Apple Silicon (M1/M2/M3). A few things to be aware of:

  • GNU coreutils shims: macOS ships BSD versions of ln, sed, etc. that differ from the Linux versions bioinformatics tools expect. Install the GNU versions with Homebrew:
brew install coreutils gnu-sed

Then make them take precedence over the BSD tools. Choose one option:

  • Project-local shims (recommended): Pixi puts .pixi/macos-shims first on PATH inside the project environment. Link the GNU tools there under their plain names:

    mkdir -p .pixi/macos-shims
    ln -sf "$(brew --prefix coreutils)"/libexec/gnubin/* .pixi/macos-shims/
    ln -sf "$(brew --prefix gnu-sed)"/libexec/gnubin/sed .pixi/macos-shims/
    

    This changes only pixi run commands, not your normal shell. - Shell-wide: put the gnubin directories first on PATH in your shell profile:

    export PATH="$(brew --prefix coreutils)/libexec/gnubin:$(brew --prefix gnu-sed)/libexec/gnubin:$PATH"
    
  • Singularity / Apptainer: does not run natively on macOS. Container-based execution requires a Linux VM (e.g., Lima or Colima). The 3t-seq and SalmonTE images are built for both linux/amd64 and linux/arm64, so an arm64 VM runs them without emulation.