Demonstration only. Corollary is a non-commercial research demo — no warranty, no support, not for commercial use or clinical decisions. Read the disclaimer

All tools and pipelines

nf-core pipeline · airr, b-cell, immcantation

nf-core/airrflow

Analyse bulk and single-cell BCR and TCR sequencing data using the Immcantation framework.

What nf-core/airrflow is

nf-core/airrflow is a bioinformatics pipeline for analysing B-cell receptor (BCR) and T-cell receptor (TCR) adaptive immune receptor repertoire sequencing (AIRR-seq) data. Adaptive immune receptors are proteins on the surface of B and T lymphocytes responsible for recognising antigens. The pipeline evaluates targeted bulk and single-cell sequencing libraries, and can also recover BCR and TCR sequences from untargeted bulk and single-cell RNA sequencing datasets.

Originally developed by Gisela Gabernet, Susanna Marquez, and Alexander Peltzer, the workflow provides an end-to-end framework starting from either raw FASTQ reads or previously assembled sequences. It standardises quality control, sequence assembly, V(D)J germline gene segment assignment, quality filtering, clonal inference, phylogenetic lineage reconstruction, and sequence representation learning using the Immcantation software suite alongside other immune repertoire tools.

Certified as AIRR compliant by the AIRR Community, the pipeline outputs data in standardised formats compatible with community-developed downstream analytical tools. It is constructed in Nextflow DSL2 and runs inside Docker or Apptainer and Singularity containers to deliver reproducible computational workflows across varying infrastructures.

What the pipeline does

Input processing depends on the source assay. For bulk sequencing, Fastp performs adapter trimming, after which the pRESTO toolkit filters reads by base quality, masks primer sequences, pairs read mates, clusters reads, constructs consensus sequences for unique molecular identifier (UMI) libraries, and assembles paired-end reads. For single-cell data, Cell Ranger VDJ assembles contigs, annotates sequences, calls cells, and defines clonotypes. Alternatively, users can supply pre-assembled FASTA files or AIRR rearrangement tables. IgBLAST and Change-O then assign V(D)J gene segments using germline references, discarding alignments with poor quality, uninformative base lengths, non-functional frame shifts, or non-triplet junction lengths.

Following initial assignment, EnchantR and SHazaM execute quality-filtering steps to eliminate chimeric reads, detect cross-contamination, and collapse duplicates. Single-cell workflows remove cell barcodes missing heavy chains, containing multiple heavy chains, or displaying cross-sample contamination. If enabled for BCR data, TIgGER detects novel germline alleles and infers sample-specific genotypes. Clonal thresholds and definitions are subsequently established using SHazaM and SCOPer, while Dowser, IgphyML, and RAxML reconstruct clonal lineage trees. Finally, AMULETY generates sequence embeddings with pre-trained models, and QC and repertoire summary reports are compiled using Alakazam and MultiQC.

Key facts

Workflow framework
Nextflow DSL2
Core analytical suite
Immcantation
Supported receptor types
B-cell receptors (BCR) and T-cell receptors (TCR)
Supported inputs
Bulk FASTQ, single-cell 10x FASTQ, assembled FASTA, AIRR rearrangement tables
Standard certification
AIRR compliant
Original developers
Gisela Gabernet, Susanna Marquez, Alexander Peltzer
Latest release
5.1.1

What you can use it for

Bulk AIRR-seq analysis
Assemble raw paired-end bulk BCR or TCR amplicons with or without UMI barcodes, perform primer masking, assign V(D)J genes, and quantify clone frequency.
Single-cell immune repertoire profiling
Process 10x Genomics single-cell immune profiling FASTQ reads to assemble contigs, call cells, remove aberrant multi-heavy-chain barcodes, and infer clonotypes.
Novel BCR allele and genotype inference
Detect previously uncharacterised V-gene alleles and infer donor-specific genomic BCR genotypes from repertoire data using TIgGER.
B-cell phylogenetic lineage reconstruction
Define clonal groups, construct inferred germline sequences, and generate phylogenetic lineage trees using SCOPer, Dowser, IgphyML, and RAxML.
Receptor sequence embedding
Translate nucleotide sequences to amino acids and extract feature representations using pre-trained AMULETY models for machine learning analyses.

Run it here

The research agent runs nf-core/airrflow with Nextflow on its own machine — up to 32 cores, 256 GiB of memory and 24 hours per run, which covers the test profile and real single-sample runs. It builds the samplesheet, checks it against the pipeline's schema and reads the results back. When a run is too big for one machine, it gives you the exact command for your own cluster instead.

Strengths and limits

Good at

  • Certified as AIRR compliant, ensuring output files conform to standardised data specifications for downstream compatibility.
  • Accommodates multiple entry points, including raw bulk reads, 10x Genomics raw data, pre-assembled contigs, and existing AIRR rearrangement tables.
  • Integrates complete UMI handling and consensus construction routines via pRESTO for targeted bulk libraries.
  • Combines clonal clustering, donor genotype inference, and phylogenetic lineage tree generation within a single execution.

Watch out for

  • Novel allele discovery and donor genotype inference via TIgGER are limited to BCR sequences and do not support TCR data.
  • Single-cell quality control routines automatically drop cells lacking heavy chains or bearing more than one heavy chain.

Questions

Can I run nf-core/airrflow without my own cluster?

The research agent runs nf-core/airrflow with Nextflow on its own machine — up to 32 cores, 256 GiB of memory and 24 hours per run, which covers the test profile and real single-sample runs. It builds the samplesheet, checks it against the pipeline's schema and reads the results back. When a run is too big for one machine, it gives you the exact command for your own cluster instead.

What licence is nf-core/airrflow under?

MIT, like every nf-core pipeline.

Can the pipeline be run on pre-assembled sequence data?

Yes. The pipeline supports an assembled mode that takes pre-assembled FASTA sequences or AIRR rearrangement tables directly, skipping initial read quality control and assembly steps.

How are unique molecular identifiers (UMIs) handled?

For UMI-based bulk sequencing libraries, pRESTO clusters related sequences, builds consensus sequences sharing identical UMI barcodes, and collapses PCR duplicates.

Can TIgGER novel allele detection be applied to TCR libraries?

No. The genotyping and novel allele discovery steps in the pipeline are implemented specifically for BCR repertoires.

Which single-cell platform is supported from raw reads?

The pipeline provides direct integration for 10x Genomics single-cell data starting from raw FASTQ files via Cell Ranger VDJ.

How to cite it

Gisela Gabernet, Susanna Marquez, Robert Bjornson, Alexander Peltzer, Hailong Meng, Edel Aron, Noah Y. Lee, Cole G. Jensen, David Ladd, Mark Polster, Friederike Hanssen, Simon Heumos, nf-core community, Gur Yaari, Markus C. Kowarik, Sven Nahnsen, Steven H. Kleinstein. (2024) PLOS Computational Biology, 20(7), e1012265. doi: https://doi.org/10.1371/journal.pcbi.1012265. Pubmed PMID: 39058741.

Written from nf-core/airrflow's own README. Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.