nf-core/stampseq
Bioinformatics pipeline for processing Ribo-STAMP single cell and bulk data.
Introduction
nf-core/stampseq is a bioinformatics pipeline for analysing STAMP (Surveying Targets by APOBEC-Mediated Profiling) experiments, in which an RNA base editor deposits C-to-U (or A-to-I) edits on the transcripts it contacts. It takes a samplesheet of FASTQ or aligned BAM files, calls edit sites, filters them against dbSNP and gene annotation, normalises them to expression, and summarises their metagene distribution.
The pipeline covers three assay designs from a single entry point:
- Ribo-STAMP (bulk) β ribosome association, quantified as edits per gene normalised to expression.
- RBP-STAMP (bulk) β RBP binding sites, called as edit clusters with FLARE.
- Single-cell STAMP β per-cell edit calls from 10x Genomics libraries.
In case the image above is not loading, please have a look at the static version (light / dark) or the interactive version (light / dark).
- Read QC (
FastQC) - Adapter and quality trimming (
fastp) - Alignment (
STAR) orCell Rangerfor single-cell - Strandedness inference (
RSeQC) - Edit calling (
MARINE), optionally alsoSAILOR - Gene quantification (
featureCounts) - Edit filtering (multiallelic, dbSNP, editing fraction, annotation) and normalisation to expression
- Metagene distribution of edit sites (
metaPlotR) - Edit-cluster identification for RBP-STAMP (
FLARE, opt-in via--run_flare) - Aggregate QC report (
MultiQC)
Usage
If you are new to Nextflow and nf-core, please refer to this page on how to set-up Nextflow. Make sure to test your setup with -profile test before running the workflow on actual data.
First, prepare a samplesheet with your input data. For bulk samples starting from FASTQ:
samplesheet.csv:
sample,fastq_1,fastq_2,library_typeCONTROL_REP1,ctrl_R1.fastq.gz,ctrl_R2.fastq.gz,PETREATMENT_REP1,dox_R1.fastq.gz,dox_R2.fastq.gz,PEEach row is one sample. Samples may instead start from an aligned bam, and single-cell runs use fastq_dir or bam + matrix_dir. The columns you provide determine the start point β see the usage documentation for the column combinations accepted in each mode.
Now, you can run the pipeline using:
nextflow run nf-core/stampseq \ -profile <docker/singularity/.../institute> \ --mode bulk \ --input samplesheet.csv \ --outdir <OUTDIR> \ --fasta <GENOME FASTA> \ --gtf <GTF> \ --gene_bed <GENE BED6> \ --dbsnp_bed <DBSNP BED> \ --star_index <STAR INDEX> \ --genome hg38 \ --edit_type 'C>T'To call RBP binding sites from an RBP-STAMP experiment, add --run_flare (bulk mode only; requires SAILOR). To analyse single-cell libraries, use --mode sc.
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.
Running on an HPC without internet access
SAILOR and FLARE run Snakemake, which pulls its own Singularity containers at run time. If your HPC blocks outbound network access, pre-download every image into a local cache first β follow RUNNING_ON_HPC.md, then launch with bin/run_pipeline_test_offline.sh.
Pipeline output
To see the results of an example 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.
The primary outputs are per-sample filtered edit sites normalised to gene expression, their metagene distribution, and β for RBP-STAMP β FDR-scored edit clusters representing candidate RBP binding sites.
Credits
nf-core/stampseq was originally written and tested by Aravind Sundaravadivelu and Dr. Luiz H. Maniero
We thank the following people for their extensive assistance in the development of this pipeline:
- The Brannan Lab at Houston Methodist Research Institute.
- The Yeo Lab at UC San Diego, for MARINE, SAILOR and FLARE.
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 #stampseq channel (you can join with this invite).
Citations
If you use nf-core/stampseq for your analysis, please cite it using the following doi: 10.5281/zenodo.XXXXXX
Sundaravadivelu A, Maniero L, Kofman ER, Xu S, Yeo GW, Beltrame E, Brannan KW. nf-core/STAMP: a Nextflow pipeline for STAMP analysis. 2026. In preparation.
If you use nf-core/stampseq for your analysis, please also cite the tools it wraps β in particular STAMP, MARINE, SAILOR and FLARE:
Brannan KW, Chaim IA, Marina RJ, et al. Robust single-cell discovery of RNA targets of RNA-binding proteins and ribosomes. Nat Methods. 2021;18(5):507-519. doi: 10.1038/s41592-021-01128-0.
Kofman E, Yee B, Medina-Munoz HC, Yeo GW. FLARE: a fast and flexible workflow for identifying RNA editing foci. BMC Bioinformatics. 2023;24(1):370. doi: 10.1186/s12859-023-05452-4.
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.