avantonder/assembleBAC-ONT is a bioinformatics pipeline that de novo assembles and annotates Oxford Nanopore (ONT) long-read sequence data.
- Read QC (
FastQCorfalcoas an alternative option) - Performs optional read pre-processing
- Adapter clipping and merging (
porechop,Porechop_ABI) - Low complexity and quality filtering (
Filtlong,Nanoq)
- Adapter clipping and merging (
- Downsample fastq files (
Rasusa) - de novo assembly (
Flye) - Polish assemblies with ONT data (
Medaka) - Assembly metrics (
Quast) - Assembly completeness (
CheckM2) - Sequence Type assignment (
mlst) - Annotation (
Bakta) - Present QC, visualisation and custom reporting for filtering and assembly results (
MultiQC)
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.
You will need to Download the Bakta light database (Bakta version 1.10.4 is required to run the amrfinder_update command):
wget https://zenodo.org/record/7669534/files/db-light.tar.gz
tar -xzf db-light.tar.gz
rm db-light.tar.gz
amrfinder_update --force_update --database db-light/amrfinderplus-db/Additionally, you will need to download the CheckM2 database (CheckM2 is required):
checkm2 database --download --path path/to/checkm2dbYou will need to create a samplesheet with information about the samples you would like to analyse before running the pipeline. It has to be a comma-separated file with 2 columns, and a header row as shown in the example below. An executable Python script called build_samplesheet.py has been provided to auto-create an input samplesheet based on a directory containing sub-directories with the prefix barcode which contain the FastQ files before you run the pipeline (requires Python 3 installed locally) e.g.
wget -L https://github.com/avantonder/assembleBAC-ONT/blob/master/assets/build_samplesheet.py
python build_samplesheet.py -i <FASTQ_DIR> sample,fastq
SAMPLE_1,path/to/fastq/file1
SAMPLE_1,path/to/fastq/file2
SAMPLE_2,path/to/fastq/file1 Now you can run the pipeline using:
nextflow run avantonder/assembleBAC-ONT \
-profile singularity \
-c <INSTITUTION>.config \
--input samplesheet.csv \
--genome_size <ESTIMATED GENOME SIZE e.g. 4M> \
--medaka_model <MEDAKA MODEL> \
--outdir <OUTDIR> \
--baktadb path/to/baktadb/dir \
--checkm2db path/to/checkm2db/dir/uniref100.KO.1.dmnd \
-resumeSee usage docs for all of the available options when running the pipeline.
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 (<INSTITUTION>.config 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,charliecloudandcondawhich 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 eitherdockerorsingularityand set the appropriate execution settings for your local compute environment.- If you are using
singularity, please use thenf-core downloadcommand to download images first, before running the pipeline. Setting theNXF_SINGULARITY_CACHEDIRorsingularity.cacheDirNextflow 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_CACHEDIRorconda.cacheDirsettings to store the environments in a central location for future pipeline runs.
The avantonder/assembleBAC-ONT pipeline comes with documentation about the pipeline usage, parameters and output.
avantonder/assembleBAC-ONT was originally written by Andries van Tonder. I wouldn't have been able to write this pipeline with out the tools, documentation, pipelines and modules made available by the fantastic nf-core community. In particular, the excellent viralrecon pipeline was a source of code and inspiration. Finally, a shout out to Robert Petit's Dragonflye as an additional source of inspiration.
If you have any issues, questions or suggestions for improving assembleBAC-ONT, please submit them to the Issue Tracker.
If you use the avantonder/assembleBAC-ONT pipeline, please cite it using the following doi: 10.5281/zenodo.15040673
An extensive list of references for the tools used by the pipeline can be found in the CITATIONS.md file.
