Tutorial: Running the Test Dataset¶
This tutorial walks through running the bundled integration test from scratch. By the end you will have produced real output files and understood every config option and sample-sheet column — making it straightforward to adapt the pipeline to your own data.
The test dataset is a chr19 subset of GSE130735, a paired-end mouse lung RNA-seq experiment comparing wild-type (WT) and knockout (KO) animals.
1. Set Up the Environment¶
If you haven't done this yet, follow Getting Started to install Pixi, git-lfs, and the pipeline dependencies.
git clone https://github.com/boulardlab/3t-seq.git
cd 3t-seq
pixi run -e dev setup # install the dev environment, pull LFS test data
Using the dev branch
When cloning the repository, the main branch is checked out by default.
Some features described here may only be available on the dev branch.
To clone it instead:
2. The Test Data¶
The integration test lives under .tests/integration/.
.tests/integration/
├── sample-sheet.csv ← the 4-sample manifest
├── configs/
│ ├── local-references.yaml ← config used for the test
│ ├── remote-references.yaml
│ ├── adaptive-trim.yaml
│ └── *-default-params.yaml ← same, with tool parameters left at their defaults
├── profiles/
│ ├── laptop/ ← local execution: 2 cores, 1 job (default)
│ ├── ci/ ← GitHub Actions runner: 4 cores, 2 jobs
│ └── hpc/
├── references/ ← chr19 FASTA and GFF3 (via git-lfs)
└── GSE130735-subset/ ← chr19-subset FASTQ files (via git-lfs)
The sample sheet¶
name,filename_1,filename_2,genotype
SRX5795112_SRR9016958,GSE130735-subset/SRX5795112_SRR9016958_1.fq.gz,GSE130735-subset/SRX5795112_SRR9016958_2.fq.gz,WT
SRX5795113_SRR9016959,GSE130735-subset/SRX5795113_SRR9016959_1.fq.gz,GSE130735-subset/SRX5795113_SRR9016959_2.fq.gz,WT
SRX5795117_SRR9016963,GSE130735-subset/SRX5795117_SRR9016963_1.fq.gz,GSE130735-subset/SRX5795117_SRR9016963_2.fq.gz,KO
SRX5795118_SRR9016964,GSE130735-subset/SRX5795118_SRR9016964_1.fq.gz,GSE130735-subset/SRX5795118_SRR9016964_2.fq.gz,KO
Four columns:
name— a unique sample identifier (required, fixed column name).filename_1/filename_2— paths to the paired-end FASTQ files (required for paired-end, fixed column names). Paths are relative to the directory from which Snakemake is launched.genotype— a metadata column you choose freely. Here it encodes the biological condition used for the differential expression contrast (WT vs KO). The column name must matchdeseq2.variablein the config (see below).
The config¶
comparisons:
- name: GSE130735-subset # (1)
protocol: pe # (2)
sample_sheet: sample-sheet.csv # (3)
trimmomatic: "ILLUMINACLIP:..." # (4)
star: "--seedSearchStartLmax 30 ..."
bamCoverage: "--binSize 10 --normalizeUsing None"
deseq2:
test: Wald # (5)
variable: genotype # (6)
reference_level: WT # (7)
disable_TE_analysis: false
disable_salmonTE_analysis: false
disable_tRNA_analysis: false
globals:
results_folder: results/ # (8)
genome:
label: mm10 # (9)
fasta_path: references/GRCm38.primary_assembly.genome.chr19.fa # (10)
gtf_path: references/MGI.chr19.gff3
annotation_type: mgi
selected_chromosomes:
- chr19 # (11)
- A label for this comparison — used to name output subdirectories.
- Required:
pe= paired-end (columnsfilename_1/filename_2);se= single-end (columnfilename). It is not inferred from the sample sheet. - Path to the sample sheet, relative to the Snakemake working directory.
- Fixed Trimmomatic parameters. Omit this key to use the defaults, or set
adaptive: trueto let the pipeline derive parameters automatically from FastQC output. - DESeq2 test type (
WaldorLRT). - Which sample-sheet column to use for the contrast. Must match a column name in the CSV.
- The level of
variableused as the baseline (denominator) of the fold-change. Here WT is the reference, so positive LFC means higher in KO. - Where all output files will be written.
- Genome label. Without
fasta_path/gtf_paththe pipeline downloads references formm10andmm39. Here the local files are an mm10 subset, so the label staysmm10and the RepeatMasker and GtRNAdb annotations are still fetched for it. - For the test we override with local chr19-only files so the run completes quickly.
- Restrict analysis to chr19 — drastically speeds up the integration test.
3. Run the Pipeline¶
From the repository root:
It first runs the setup task (git-lfs pull), then:
snakemake \
--directory .tests/integration \
--conda-frontend conda \
--workflow-profile .tests/integration/profiles/laptop \
--configfile .tests/integration/configs/local-references.yaml \
--snakefile workflow/Snakefile
--directorysets the working directory, so relative paths in the config and sample sheet resolve against.tests/integration/.--workflow-profileloads thelaptoptest profile: local execution, 2 cores, 1 job at a time, Conda + Apptainer.--configfilepoints to the config above.
Snakemake will print a job plan, then start executing. On the GitHub Actions runner used
by CI (4 cores, ci profile) the pipeline takes about 5 minutes with the container image
already cached; the first run also downloads the container images.
Dry run first
See exactly what will be executed without running anything:
4. Explore the Results¶
When the run finishes, outputs are in .tests/integration/results/:
results/
├── qc/
│ └── multiqc/GSE130735-subset/multiqc_report.html ← QC overview
├── alignments/
│ ├── star/GSE130735-subset/ ← BAM files
│ └── starTE/GSE130735-subset/DESeq2/ ← TE differential expression
├── salmonTE/
│ ├── quant/GSE130735-subset/ ← SalmonTE TE quantification
│ └── de_analysis/GSE130735-subset/ ← SalmonTE differential expression
├── analysis/
│ ├── tables/deseq2/GSE130735-subset/ ← gene DESeq2 results
│ └── datavzrd/GSE130735-subset/ ← interactive gene report
└── tRNA_coverage/
└── GSE130735-subset/ ← tRNA quantification
The full tree is described in Results layout.
Open results/qc/multiqc/GSE130735-subset/multiqc_report.html in your browser for a
summary of read counts, mapping rates, and duplication metrics.
5. Generate a Snakemake Report¶
This re-runs the test task first (nothing is redone if the results are up to date),
then creates a report.zip in .tests/integration/. Unzip it and open report.html for
an interactive provenance report that includes tool versions, rule parameters, and QC plots.
Next Steps¶
Now that you've run the test, adapt the pipeline to your own data:
- Preparing Data & Samples: how to write your own sample sheet and config.
- Advanced Profiles: resource settings and HPC/Slurm execution.
- Running & Reporting: execution patterns and monitoring.