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):
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:
Then activate it globally (once per machine):
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:
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¶
-
Clone the repository:
-
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 installonly installs thedefaultenvironment. Thedevenvironment (needed bysetup,testand the other-e devtasks) is installed the first time you use-e dev, or explicitly withpixi 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:
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:
Then make them take precedence over the BSD tools. Choose one option:
-
Project-local shims (recommended): Pixi puts
.pixi/macos-shimsfirst onPATHinside 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 runcommands, not your normal shell. - Shell-wide: put thegnubindirectories first onPATHin your shell profile: -
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/amd64andlinux/arm64, so an arm64 VM runs them without emulation.