nfvibrio is a bioinformatics pipeline for the analysis Vibrio parahaemolyticus.
The pipeline is built using Nextflow, a workflow tool to run tasks across multiple compute infrastructures in a highly 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.
- Read QC Filtering and Trimming (
FASTP
,TRIMMOMATIC
) - Metagenomic read classification (optional,
KRAKEN2
) - Contamination detection (optional,
CONFINDR
) - Read QC Metrics (
FastQC
) - Assemble quality controlled reads (
SHOVILL
) - Perform assembly QC (
QUAST
) - Annotate assembled contigs (
PROKKA
) - Pan-genome analysis (
ROARY
) - Virulence factor screening (
ABRICATE
)- Custom heatmap plot
- Find antimicrobial resistance genes and point mutations in assembled contigs (
AMRFINDERPLUS
) - Scan contig files against traditional PubMLST typing schemes (
MLST
) - Variant calling and consensus sequence generation (
SNIPPY
) - General QC report generation (
MULTIQC
)
graph TD
A[FASTQ Samplesheet] --> AA(Input Check)
AA --> AAA(Trimmomatic \n- Adapter Removal)
AA --> AB(ConFindr \n- Contamination QC)
AAA --> AC(Fastp \n- Trim & Filter)
AC --> ACB(Kraken2 \n- Metagenomic Classifier)
AC --> ACA(FASTQC \n- QC Checks)
AC --> B(Shovill \n- De-novo Assembly)
B --> BA(Abricate \n- Virulence Factors)
BA --> BAA(Custom Heatmap Plot)
B --> BB(AMRFinderPlus \n- AMR Gene Detection)
B --> BC(MLST \n- Sequence Typing)
B --> BD(Quast \n- Assembly QC)
B --> BE(Prokka \n- Genome Annotation)
BE --> BEA(Roary \n- PanGenome Analysis)
B --> BF(Snippy \n- Variant Calls & Consensus)
AAA --> Z(MultiQC \n- QC Report)
AC --> Z
BF --> Z
BD --> Z
BE --> Z
-
Install
Nextflow
(>=21.0.0
) -
Install any of
Docker
,Singularity
(you can follow this tutorial),Podman
,Shifter
orCharliecloud
for full pipeline reproducibility (you can useConda
both to install Nextflow itself and also to manage software within pipelines. Please only use it within pipelines as a last resort; see docs). -
Given a directory of FASTQ files, use the
extra/make_sample_sheet.sh
script to automatically generate a corresponding samplesheet.
bash make_sample_sheet.sh [FASTQ_DIRECTORY] [SAMPLESHEET_FILENAME]
- Download the pipeline and test it on a minimal dataset with a single command:
nextflow run nfvibrio/main.nf -profile <conda,singularity,YOURPROFILE> --input sample_sheet.csv --outdir <OUTDIR>
Note that some form of configuration will be needed so that Nextflow knows how to fetch the required software. This is usually done in the form of a config profile (YOURPROFILE
in the example command above). You can chain multiple config profiles in a comma-separated string.
- The pipeline comes with config profiles called
docker
,singularity
,podman
,shifter
,charliecloud
andconda
which instruct the pipeline to use the named tool for software management. For example,-profile test,docker
.- Please check nf-core/configs to see if a custom config file to run nf-core pipelines already exists for your Institute. If so, you can simply use
-profile <institute>
in your command. This will enable eitherdocker
orsingularity
and set the appropriate execution settings for your local compute environment.- If you are using
singularity
, please use thenf-core download
command to download images first, before running the pipeline. Setting theNXF_SINGULARITY_CACHEDIR
orsingularity.cacheDir
Nextflow options enables you to store and re-use the images from a central location for future pipeline runs.- If you are using
conda
, it is highly recommended to use theNXF_CONDA_CACHEDIR
orconda.cacheDir
settings to store the environments in a central location for future pipeline runs.
Currently this README serves as the only documentation for this workflow. More detailed documentation is under development. If you have questions, open a issue or connect at [email protected].
The majority of the nfvibrio pipeline in its current state was developed by John Palmer for routine analysis of Vibrio parahaemolyticus at the BC Centre for Disease Control (BCCDC) and abroad. Special thanks to colleagues and supervisors who made this work possible at BCCDC (James Zlosnik, Linda Hoang, Tess MacIntyre). The original foundations of this pipeline were developed by Muhammad Zohaib Anwar under the supervision of William Hsiao at the Centre for Infectious Disease Genomics and One Health at Simon Fraser University.
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.
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.