CLIMB-TRE/chimera is a bioinformatics pipeline for profiling Illumina and Nanopore (ONT) sequencing reads against a curated reference database and flagging how confidently each detected reference is actually supported by the read data. It runs sylph for fast taxonomic profiling of raw reads, aligns reads to the reference database with minimap2 (ONT) or bwa-mem2 (Illumina), and combines per-reference coverage and alignment-quality statistics into a scored confidence report — helping to distinguish genuine hits from cross-mapping, contamination, or other low-confidence alignments.
The pipeline:
- Profiles each sample's taxonomic composition against a sylph database (
SYLPH_PROFILE) - Aligns reads to a reference database with minimap2 (ONT) or bwa-mem2 (Illumina) (
MINIMAP2_ALIGN/BWAMEM2_MEM) - For Illumina data, expands multi-mapping loci into full secondary alignment records with sequence filled in (
FILL_SECONDARY_SEQ) - Optionally filters out reads with a low proportion of aligned bases (
FILTER_BAM) - Computes per-base, per-reference depth of coverage (
SAMTOOLS_DEPTH) - Resolves the sylph profile's reference genomes to NCBI taxIDs (
SYLPH_TAXONOMY) - Produces a per-reference alignment report with configurable confidence scoring (
ALIGNMENT_REPORT)
Note
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 that looks as follows:
samplesheet.csv:
sample,platform,fastq_1,fastq_2
CONTROL_REP1,illumina,AEG588A1_S1_L002_R1_001.fastq.gz,AEG588A1_S1_L002_R2_001.fastq.gzEach row represents a fastq file (platform of ont or illumina.se) or a pair of fastq files (platform of illumina). See docs/usage.md for the full samplesheet specification and for the reference database parameters (--mm2_index, --bwa_index_prefix, --sylph_db, --sylph_taxdb, --database_metadata) the pipeline requires.
Now, you can run the pipeline using:
nextflow run CLIMB-TRE/chimera \
-profile <docker/singularity/.../institute> \
--input samplesheet.csv \
--outdir <OUTDIR> \
--mm2_index /path/to/reference.mmi \
--bwa_index_prefix /path/to/reference.fa \
--sylph_db /path/to/reference.syldb \
--sylph_taxdb /path/to/sylph_taxdb.tsv \
--database_metadata /path/to/database_metadata.tsvWarning
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.
CLIMB-TRE/chimera was originally written by biowilko.
If you would like to contribute to this pipeline, please see the contributing guidelines.
An extensive list of references for the tools used by the pipeline can be found in the CITATIONS.md file.
This pipeline uses code and infrastructure developed and maintained by the nf-core community, reused here under the MIT license.
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.