airrflow
B-cell and T-cell Adaptive Immune Receptor Repertoire (AIRR) sequencing analysis pipeline using the Immcantation framework
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 14 DOI reference(s) in README -
○Academic publication links
-
✓Committers with academic emails
5 of 17 committers (29.4%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.1%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
B-cell and T-cell Adaptive Immune Receptor Repertoire (AIRR) sequencing analysis pipeline using the Immcantation framework
Basic Info
- Host: GitHub
- Owner: nf-core
- License: mit
- Language: Nextflow
- Default Branch: master
- Homepage: https://nf-co.re/airrflow
- Size: 13.7 MB
Statistics
- Stars: 65
- Watchers: 165
- Forks: 45
- Open Issues: 35
- Releases: 17
Topics
Metadata Files
README.md
Introduction
nf-core/airrflow is a bioinformatics best-practice pipeline to analyze B-cell receptor (BCR) or T-cell receptor (TCR) repertoire sequencing data. It allows the processing of targeted bulk and single-cell adaptive immune receptor sequencing data (AIRR-seq), as well as the extraction of TCR and BCR sequences from untargeted bulk and single-cell RNA-seq data. The pipeline enables and end-to-end analysis, departing from raw reads or readily assembled sequences, and performs sequence assembly, V(D)J assignment, clonal group inference, lineage reconstruction and repertoire analysis using the Immcantation framework, as well as other immune repertoire analysis tools.

The pipeline is built using Nextflow, a workflow tool to run tasks across multiple compute infrastructures in a very portable manner. It uses Docker/Singularity containers making installation trivial and results highly reproducible. The Nextflow DSL2 implementation of this pipeline uses one container per process which makes it much easier to maintain and update software dependencies. Where possible, these processes have been submitted to and installed from nf-core/modules in order to make them available to all nf-core pipelines, and to everyone within the Nextflow community!
On release, automated continuous integration tests run the pipeline on a full-sized dataset on the AWS cloud infrastructure. This ensures that the pipeline runs on AWS, has sensible resource allocation defaults set to run on real-world datasets, and permits the persistent storage of results to benchmark between pipeline releases and other analysis sources. The results obtained from the full-sized test can be viewed on the nf-core website.
Pipeline summary
nf-core/airrflow allows the end-to-end processing of BCR and TCR bulk and single cell targeted sequencing data, as well as extracting BCR and TCR sequences from bulk and single-cell RNA-seq datasets. Several protocols are supported, please see the usage documentation for more details on the supported protocols. The pipeline has been certified as AIRR compliant by the AIRR community, which means that it is compatible with downstream analysis tools also supporting this format.

- QC and sequence assembly
- Bulk
- Raw read quality control, adapter trimming and clipping (
Fastp). - Filter sequences by base quality (
pRESTO FilterSeq). - Mask amplicon primers (
pRESTO MaskPrimers). - Pair read mates (
pRESTO PairSeq). - For UMI-based sequencing:
- Cluster sequences according to similarity (optional for insufficient UMI diversity) (
pRESTO ClusterSets). - Build consensus of sequences with the same UMI barcode (
pRESTO BuildConsensus). - Assemble R1 and R2 read mates (
pRESTO AssemblePairs). - Remove and annotate read duplicates (
pRESTO CollapseSeq). - Filter out sequences that do not have at least 2 duplicates (
pRESTO SplitSeq).
- Raw read quality control, adapter trimming and clipping (
- Single cell
- cellranger vdj
- Assemble contigs
- Annotate contigs
- Call cells
- Generate clonotypes
- V(D)J annotation and filtering (bulk and single-cell)
- Assign gene segments with
IgBlastusing a germline reference (Change-O AssignGenes). - Annotate alignments in AIRR format (
Change-O MakeDB) - Filter by alignment quality (locus matching v_call chain, min 200 informative positions, max 10% N nucleotides)
- Filter productive sequences (
Change-O ParseDB split) - Filter junction length multiple of 3
- Annotate metadata (
EnchantR)
- QC filtering (bulk and single-cell)
- Bulk sequencing filtering:
- Remove chimeric sequences (optional) (
SHazaM,EnchantR) - Detect cross-contamination (optional) (
EnchantR) - Collapse duplicates (
Alakazam,EnchantR)
- Remove chimeric sequences (optional) (
- Single-cell QC filtering (
EnchantR)- Remove cells without heavy chains.
- Remove cells with multiple heavy chains.
- Remove sequences in different samples that share the same
cell_idand nucleotide sequence, and thus are very likely contaminants. - Modify
cell_ids to ensure they are unique in each run.
- Clonal analysis (bulk and single-cell)
- Find threshold for clone definition (
SHazaM,EnchantR). - Create germlines and define clones, repertoire analysis (
SCOPer,EnchantR). - Build lineage trees (
Dowser,IgphyML,RAxML,EnchantR).
- Repertoire analysis and reporting
- Custom repertoire analysis pipeline report (
Alakazam). - Aggregate QC reports (
MultiQC).
Usage
[!NOTE] If you are new to Nextflow and nf-core, please refer to this page on how to set-up Nextflow. You will also need to install a container engine such as Docker or Apptainer - formerly singularity - prior to running the pipeline. Make sure to test your setup with
-profile testbefore running the workflow on actual data.
First, ensure that the pipeline tests run on your infrastructure:
bash
nextflow run nf-core/airrflow -profile test,<docker/singularity/apptainer/podman/shifter/charliecloud/conda/institute> --outdir <OUTDIR>
To run nf-core/airrflow with your data, you will need to first prepare a tab-separated samplesheet with the paths to your input data and necessary metadata to run the analysis. Depending on the input data type (bulk or single-cell, raw reads or assembled reads) the input samplesheet will vary. Please follow the documentation on samplesheets for more details. An example samplesheet for running the pipeline on bulk BCR / TCR sequencing data departing from raw reads looks as follows:
| sampleid | filenameR1 | filenameR2 | filenameI1 | subjectid | species | pcrtargetlocus | tissue | sex | age | biomaterialprovider | singlecell | intervention | collectiontimepointrelative | cellsubset | | --------- | ------------------------------- | ------------------------------- | ------------------------------- | ---------- | ------- | ---------------- | ------ | ------ | --- | -------------------- | ----------- | -------------- | ------------------------------ | ------------ | | sample01 | sample1S8L001R1001.fastq.gz | sample1S8L001R2001.fastq.gz | sample1S8L001I1001.fastq.gz | Subject02 | human | IG | blood | NA | 53 | sequencingfacility | FALSE | Drugtreatment | Baseline | plasmablasts | | sample02 | sample2S8L001R1001.fastq.gz | sample2S8L001R2001.fastq.gz | sample2S8L001I1001.fastq.gz | Subject02 | human | IG | blood | female | 78 | sequencingfacility | FALSE | Drug_treatment | Baseline | plasmablasts |
Each row represents a sample with fastq files (paired-end).
A typical command to run the pipeline from bulk raw fastq files is:
bash
nextflow run nf-core/airrflow \
-r <release> \
-profile <docker/singularity/podman/shifter/charliecloud/conda/institute> \
--mode fastq \
--input input_samplesheet.tsv \
--library_generation_method specific_pcr_umi \
--cprimers CPrimers.fasta \
--vprimers VPrimers.fasta \
--umi_length 12 \
--umi_position R1 \
--outdir ./results
For common bulk sequencing protocols we provide pre-set profiles that specify primers, UMI length, etc for common commercially available sequencing protocols. Please check the Supported protocol profiles for a full list of available profiles. An example command running the NEBNext UMI protocol profile with docker containers is:
bash
nextflow run nf-core/airrflow \
-profile nebnext_umi,docker \
--mode fastq \
--input input_samplesheet.tsv \
--outdir results
A typical command to run the pipeline from single cell raw fastq files (10X genomics) is:
bash
nextflow run nf-core/airrflow -r dev \
-profile <docker/singularity/podman/shifter/charliecloud/conda/institute> \
--mode fastq \
--input input_samplesheet.tsv \
--library_generation_method sc_10x_genomics \
--reference_10x reference/refdata-cellranger-vdj-GRCh38-alts-ensembl-5.0.0.tar.gz \
--outdir ./results
A typical command to run the pipeline from single-cell AIRR rearrangement tables or assembled bulk sequencing fasta data is:
bash
nextflow run nf-core/airrflow \
-r <release> \
-profile <docker/singularity/podman/shifter/charliecloud/conda/institute> \
--input input_samplesheet.tsv \
--mode assembled \
--outdir results
See the usage documentation and the parameter documentation for more details on how to use the pipeline and all the available parameters.
:::warning
Please provide pipeline parameters via the CLI or Nextflow -params-file option. Custom config files including those
provided by the -c Nextflow option can be used to provide any configuration except for parameters;
see docs.
:::
For more details and further functionality, please refer to the usage documentation and the parameter documentation.
Pipeline output
To see the the results of a test run with a full size dataset refer to the results tab on the nf-core website pipeline page. For more details about the output files and reports, please refer to the output documentation.
Credits
nf-core/airrflow was originally written by:
We thank the following people for their extensive assistance in the development of the pipeline:
Contributions and Support
If you would like to contribute to this pipeline, please see the contributing guidelines.
For further information or help, don't hesitate to get in touch on the Slack #airrflow channel (you can join with this invite).
Citations
If you use nf-core/airrflow for your analysis, please cite the article as follows:
nf-core/airrflow: an adaptive immune receptor repertoire analysis workflow employing the Immcantation framework
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.
The specific pipeline version using the following DOI: 10.5281/zenodo.2642009
Please also cite all the tools that are being used by the pipeline. An extensive list of references for the tools used by the pipeline can be found in the CITATIONS.md file.
You can cite the nf-core publication as follows:
The nf-core framework for community-curated bioinformatics pipelines.
Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen.
Nat Biotechnol. 2020 Feb 13. doi: 10.1038/s41587-020-0439-x.
Owner
- Name: nf-core
- Login: nf-core
- Kind: organization
- Email: core@nf-co.re
- Website: http://nf-co.re
- Twitter: nf_core
- Repositories: 84
- Profile: https://github.com/nf-core
A community effort to collect a curated set of analysis pipelines built using Nextflow.
Citation (CITATIONS.md)
# nf-core/airrflow: Citations ## [nf-core/airrflow](https://doi.org/10.1101/2024.01.18.576147) > **nf-core/airrflow: an adaptive immune receptor repertoire analysis workflow employing the Immcantation framework** > > 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](https://doi.org/10.1371/journal.pcbi.1012265). Pubmed PMID: 39058741. ## [nf-core](https://pubmed.ncbi.nlm.nih.gov/32055031/) > Ewels PA, Peltzer A, Fillinger S, Patel H, Alneberg J, Wilm A, Garcia MU, Di Tommaso P, Nahnsen S. The nf-core framework for community-curated bioinformatics pipelines. Nat Biotechnol. 2020 Mar;38(3):276-278. doi: 10.1038/s41587-020-0439-x. PubMed PMID: 32055031. ## [Nextflow](https://pubmed.ncbi.nlm.nih.gov/28398311/) > Di Tommaso P, Chatzou M, Floden EW, Barja PP, Palumbo E, Notredame C. Nextflow enables reproducible computational workflows. Nat Biotechnol. 2017 Apr 11;35(4):316-319. doi: 10.1038/nbt.3820. PubMed PMID: 28398311. ## Pipeline tools - [FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/) > Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online]. - [Fastp](https://doi.org/10.1093/bioinformatics/bty560) > Shifu Chen, Yanqing Zhou, Yaru Chen, Jia Gu, fastp: an ultra-fast all-in-one FASTQ preprocessor, Bioinformatics. 2018 Sept 1; 34(17):i884–i890. doi: 10.1093/bioinformatics/bty560. - [pRESTO](https://doi.org/10.1093/bioinformatics/btu138) > Vander Heiden, J. A., Yaari, G., Uduman, M., Stern, J. N. H., O’Connor, K. C., Hafler, D. A., … Kleinstein, S. H. (2014). pRESTO: a toolkit for processing high-throughput sequencing raw reads of lymphocyte receptor repertoires. Bioinformatics, 30(13), 1930–1932. - [SHazaM, Change-O](https://doi.org/10.1093/bioinformatics/btv359) > Gupta, N. T., Vander Heiden, J. A., Uduman, M., Gadala-Maria, D., Yaari, G., & Kleinstein, S. H. (2015). Change-O: a toolkit for analyzing large-scale B cell immunoglobulin repertoire sequencing data: Table 1. Bioinformatics, 31(20), 3356–3358. - [IgBLAST](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3692102/) > Ye J, Ma N, Madden TL, Ostell JM. (2013). IgBLAST: an immunoglobulin variable domain sequence analysis tool. Nucleic Acids Res. - [Alakazam](https://doi.org/10.1126/scitranslmed.3008879) > Stern, J. N. H., Yaari, G., Vander Heiden, J. A., Church, G., Donahue, W. F., Hintzen, R. Q., … O’Connor, K. C. (2014). B cells populating the multiple sclerosis brain mature in the draining cervical lymph nodes. Science Translational Medicine, 6(248). - [SCOPer](https://doi.org/10.1093/bioinformatics/bty235) > Nouri N, Kleinstein S (2018). “A spectral clustering-based method for identifying clones from high-throughput B cell repertoire sequencing data.” Bioinformatics, i341-i349. > Nouri N, Kleinstein S (2020). “Somatic hypermutation analysis for improved identification of B cell clonal families from next-generation sequencing data.” PLOS Computational Biology, 16(6), e1007977. > Gupta N, Adams K, Briggs A, Timberlake S, Vigneault F, Kleinstein S (2017). “Hierarchical clustering can identify B cell clones with high confidence in Ig repertoire sequencing data.” The Journal of Immunology, 2489-2499. - [Dowser](https://doi.org/10.1371/journal.pcbi.1009885) > Hoehn K, Pybus O, Kleinstein S (2022). “Phylogenetic analysis of migration, differentiation, and class switching in B cells.” PLoS Computational Biology. - [IgPhyML](https://www.pnas.org/doi/10.1073/pnas.1906020116) > Hoehn K, Van der Heiden J, Zhou J, Lunter G, Pybus O, Kleinstein S (2019). “Repertoire-wide phylogenetic models of B cell molecular evolution reveal evolutionary signatures of aging and vaccination. PNAS, 116(45) 22664-22672." - [RAxML](10.1093/bioinformatics/btu033) > Stamatakis A. (2014) RAxML version 8: a tool for phylogenetic analysis and post-analysis of large phylogenies. Bioinformatics, 30(9): 1312-1313. - [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/) > Ewels P, Magnusson M, Lundin S, Käller M. MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics. 2016 Oct 1;32(19):3047-8. doi: 10.1093/bioinformatics/btw354. Epub 2016 Jun 16. PubMed PMID: 27312411; PubMed Central PMCID: PMC5039924. ## Software packaging/containerisation tools - [Anaconda](https://anaconda.com) > Anaconda Software Distribution. Computer software. Vers. 2-2.4.0. Anaconda, Nov. 2016. Web. - [Bioconda](https://pubmed.ncbi.nlm.nih.gov/29967506/) > Grüning B, Dale R, Sjödin A, Chapman BA, Rowe J, Tomkins-Tinch CH, Valieris R, Köster J; Bioconda Team. Bioconda: sustainable and comprehensive software distribution for the life sciences. Nat Methods. 2018 Jul;15(7):475-476. doi: 10.1038/s41592-018-0046-7. PubMed PMID: 29967506. - [BioContainers](https://pubmed.ncbi.nlm.nih.gov/28379341/) > da Veiga Leprevost F, Grüning B, Aflitos SA, Röst HL, Uszkoreit J, Barsnes H, Vaudel M, Moreno P, Gatto L, Weber J, Bai M, Jimenez RC, Sachsenberg T, Pfeuffer J, Alvarez RV, Griss J, Nesvizhskii AI, Perez-Riverol Y. BioContainers: an open-source and community-driven framework for software standardization. Bioinformatics. 2017 Aug 15;33(16):2580-2582. doi: 10.1093/bioinformatics/btx192. PubMed PMID: 28379341; PubMed Central PMCID: PMC5870671. - [Docker](https://dl.acm.org/doi/10.5555/2600239.2600241) > Merkel, D. (2014). Docker: lightweight linux containers for consistent development and deployment. Linux Journal, 2014(239), 2. doi: 10.5555/2600239.2600241. - [Singularity](https://pubmed.ncbi.nlm.nih.gov/28494014/) > Kurtzer GM, Sochat V, Bauer MW. Singularity: Scientific containers for mobility of compute. PLoS One. 2017 May 11;12(5):e0177459. doi: 10.1371/journal.pone.0177459. eCollection 2017. PubMed PMID: 28494014; PubMed Central PMCID: PMC5426675.
GitHub Events
Total
- Create event: 10
- Release event: 2
- Issues event: 31
- Watch event: 11
- Delete event: 2
- Member event: 1
- Issue comment event: 70
- Push event: 26
- Pull request event: 54
- Pull request review comment event: 61
- Pull request review event: 57
- Fork event: 10
Last Year
- Create event: 10
- Release event: 2
- Issues event: 31
- Watch event: 11
- Delete event: 2
- Member event: 1
- Issue comment event: 70
- Push event: 26
- Pull request event: 54
- Pull request review comment event: 61
- Pull request review event: 57
- Fork event: 10
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| ggabernet | g****t@q****e | 1,186 |
| ssnn-airr | 2****r | 243 |
| Gisela Gabernet | g****t@g****m | 182 |
| Alexander Peltzer | a****r@g****m | 79 |
| David Ladd | d****d@m****u | 35 |
| nf-core-bot | c****e@n****e | 29 |
| David Ladd | d****d@g****m | 20 |
| subwaystation | s****s@q****e | 4 |
| Matt De Both | m****h@t****g | 2 |
| thebugfinder | g****b@o****s | 2 |
| MaxUlysse | m****a@g****m | 2 |
| Alexander Peltzer | a****r | 2 |
| Harshil Patel | d****h | 2 |
| FriederikeHanssen | F****n@q****e | 1 |
| runner | r****r@f****0 | 1 |
| kevinmenden | k****n@t****e | 1 |
| Rike | f****n@q****e | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 55
- Total pull requests: 132
- Average time to close issues: 8 months
- Average time to close pull requests: 14 days
- Total issue authors: 17
- Total pull request authors: 10
- Average comments per issue: 0.91
- Average comments per pull request: 1.14
- Merged pull requests: 102
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 18
- Pull requests: 23
- Average time to close issues: 25 days
- Average time to close pull requests: 15 days
- Issue authors: 9
- Pull request authors: 4
- Average comments per issue: 0.11
- Average comments per pull request: 0.39
- Merged pull requests: 9
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- ggabernet (39)
- ssnn-airr (3)
- eba28 (2)
- LiuH2020 (2)
- giulioisac (1)
- margaretc-ho (1)
- obrien-james (1)
- jowkar (1)
- mdeboth (1)
- zhanyinx (1)
- pnatarajan9 (1)
- jen-reeve (1)
- fabio-t (1)
- dladd (1)
- loipf (1)
Pull Request Authors
- ggabernet (107)
- nf-core-bot (28)
- ssnn-airr (16)
- mapo9 (11)
- Vivian0105 (5)
- adamrtalbot (2)
- JustBioinfo (2)
- dladd (1)
- drpatelh (1)
- FriederikeHanssen (1)
- mdeboth (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/upload-artifact v3 composite
- nf-core/tower-action v3 composite
- actions/upload-artifact v3 composite
- nf-core/tower-action v3 composite
- mshick/add-pr-comment v1 composite
- actions/checkout v2 composite
- nf-core/setup-nextflow v1 composite
- actions/checkout v3 composite
- actions/setup-node v2 composite
- actions/checkout v2 composite
- actions/setup-node v2 composite
- actions/setup-python v3 composite
- actions/upload-artifact v2 composite
- mshick/add-pr-comment v1 composite
- nf-core/setup-nextflow v1 composite
- psf/black stable composite
- dawidd6/action-download-artifact v2 composite
- marocchino/sticky-pull-request-comment v2 composite
- actions/checkout v3 composite
- actions/upload-artifact v2 composite
- nf-core/setup-nextflow v1 composite
- actions/stale v7 composite