ont-seq-analysis
ONT-Seq-analysis is a specialized pipeline designed for analyzing Oxford Nanopore Technologies (ONT) sequencing data from Mpox isolates. It performs reference-based assemblies, identifies variants, designates clades, and generates a detailed quality control (QC) report.
Science Score: 57.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 4 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.2%) to scientific vocabulary
Repository
ONT-Seq-analysis is a specialized pipeline designed for analyzing Oxford Nanopore Technologies (ONT) sequencing data from Mpox isolates. It performs reference-based assemblies, identifies variants, designates clades, and generates a detailed quality control (QC) report.
Basic Info
Statistics
- Stars: 0
- Watchers: 3
- Forks: 6
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
General disclaimer This repository was created for use by CDC programs to collaborate on public health related projects in support of the CDC mission. GitHub is not hosted by the CDC, but is a third party website used by CDC and its partners to share information and collaborate on software. CDC use of GitHub does not imply an endorsement of any one particular service, product, or enterprise.
Privacy Standard Notice
This repository contains only non-sensitive, publicly available data and information. All material and community participation is covered by the Disclaimer and Code of Conduct. For more information about CDC's privacy policy, please visit http://www.cdc.gov/other/privacy.html.
Full disclaimer can be found at the end of this file.
Introduction

Schematic of the main steps in the workflow
ONT-Seq-analysis is a pipeline that inputs ONT sequencing data of Mpox isolates and performs a reference-based assembly followed by a variant table analysis relative to the reference used. It takes a samplesheet and FASTQ files as input, performs quality control (QC), trimming, alignment, nextclade run to identify viral genetic variants, and produces an extensive QC report.
Main steps of the workflow:
- Read QC (
FastQC). - Sequencing Toolkit (
SEQTK) Trim to remove primers. - Trimming of raw reads to specific length using (
Trimmomatic). - Maps raw reads to reference and generate a refined consensus using (
Minimap2) and (IVAR Consensus). - (
Samtools) to manage alignment files and obtain depth of coverage. - Polish consensus using (
MEDAKA). - Generate a variant table using (
IVAR Variants). - (
Nextclade) for clade assignment, mutation calling, phylogenetic placement, and quality checks for Mpox (Monkeypox). - Present QC for raw reads (
MultiQC).
Usage
[!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 testbefore running the workflow on actual data.
First, prepare a samplesheet with your input data containing single-end ONT fastq files:
samplesheet.csv:
csv
sample,fastq_1,fastq_2
SAMPLE_NAME_1,RANDOM_NAME_S1_L002_R1_001.fastq.gz,
A script is available to concatenate barcoded FASTQ files in a directory and generate a samplesheet in the required input format. You can find this script in /assets/ont_fastq_concat_and_samplesheet_create.sh. Ensure you’re in the working directory where you’d like the files merged and saved, as the script will automatically create a directory to store the resulting files, placing the samplesheet file in the same directory. Make sure to enter the path to the directory with the FASTQ files, ending with a "/" symbol.
If your FASTQ files are already concatenated by barcode, you can generate only the samplesheet by running /assets/create_samplesheet_only.sh. Enter the path to the directory with concatenated FASTQ files, ending with a "/", and ensure you are in the working directory where you want to save the samplesheet.
[!WARNING] Avoid using special characters (parentheses, commas, asterisks, hashes, etc.) in FASTQ file names. Only use letters, numbers, underscores (_), and hyphens (-) for better compatibility with the workflow and to avoid unexpected crashes of the runs.
[!NOTE] If you are starting with raw Oxford Nanopore fast5 data, you can use the optional bash script
/assets/repository/dorado_pipeline.shto perform basecalling and demultiplexing. This script will convert fast5 files to pod5, basecall them with Dorado (utilizing GPU acceleration), demultiplex barcoded reads, and generate pseudo-paired-end FASTQ files. The output FASTQ files from this script can then be used as input for the samplesheet.csv required by this Nextflow pipeline. If you use this method, you will need to edit the bash script prior to running it with input and output directories as appropriate. Once this is completed, you can generate a samplesheet as described above.
Repository needs to be cloned using git clone
git clone https://github.com/CDCgov/ONT-Seq-analysis
Now, you can run the pipeline using:
bash
nextflow run mpox_ont_seq_analysis \
-profile <docker/singularity/.../institute> \
--input samplesheet.csv \
--outdir <OUTDIR> \
-resume <#if applicable> \
--fasta <fasta_path> \
--bed_file <bed_path> \
--fai_file <fai_path> \
--gff_file <gff_path> \
--mmi_file <mmi_path> \
--nextclade_dataset_name 'nextstrain/mpox/all-clades'
*Reference files for Mpox [NC063383] have been provided in `/assets/NC063383mpox/`_
The module Ivar_Variants is turned off by default. To include it on the run, simply add --run_ivar_variants true to the nextflow run command (shown above).
Nextclade output files can be modified to remove unnecesary columns. To do so, run the filtering script (assets/nextclade_tsv_column_filter.sh) inside the Nextclade output directory. The resulting TSV file will contain the following colums: 'index', 'seqName', 'clade', 'lineage', 'outbreak', 'qc.overallScore', 'qc.overallStatus', 'totalSubstitutions', 'totalDeletions', 'totalInsertions', 'totalFrameShifts', 'totalMissing', 'totalNonACGTNs', 'failedCdses', 'warnings', 'errors'. Feel free to modify as needed.
[!WARNING] Note that, for historical reasons, the developers use semicolon (;) as the column separator in CSV files because they have comma (,) as list separators within table cells. In early versions of Nextclade, their CSV writer code was imperfect, making this an easy solution. They recommend using TSV format instead of CSV format. However, if using CSV format, it is important to configure spreadsheet software or parsers to use semicolons (;) as column delimiters.
We have also included a python script to extract mutations from each nextclade output file and for each specimen, returning a table highlighting key mutations that could indicate a designation of Clade I or Clade II, including the different lineages. Run the python script (assets/pythonX_nextclade_parser.py) inside the Nextclade output directory. It will generate a directory named parser that will contain a tsv file for each specimen with the following format:
| seqname | Mutationsfoundonsequence | FoundinCladeIorCladeII | Clade_designation | |----------|-----------------------------|------------------------------|--------------------| | sample1 | G01234A | yes | Clade Ia | | sample1 | G56789A | yes | Clade IIb |
For more information visit the Nextclade CLI homepage.
[!WARNING] Please provide pipeline parameters via the CLI or Nextflow
-params-fileoption. Custom config files including those provided by the-cNextflow option can be used to provide any configuration except for parameters: see docs.
Credits
ONT-Seq-analysis was originally written by Luis Antonio Haddock, PhD MSc (CDC).
We thank the following people for their extensive assistance in the development of this pipeline:
- Crystal Gigante, PhD (CDC)
- Daisy McGrath (CDC)
- Christopher Gulvik, PhD (CDC)
- Jiusheng Deng, PhD (CDC)
Contributions and Support
If you would like to contribute to this pipeline, please see the contributing guidelines.
Citations
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.
CDCgov GitHub Organization Open Source Project
General disclaimer This repository was created for use by CDC programs to collaborate on public health related projects in support of the CDC mission. GitHub is not hosted by the CDC, but is a third party website used by CDC and its partners to share information and collaborate on software. CDC use of GitHub does not imply an endorsement of any one particular service, product, or enterprise.
Access Request, Repo Creation Request
- CDC GitHub Open Project Request Form [Requires a CDC Office365 login, if you do not have a CDC Office365 please ask a friend who does to submit the request on your behalf. If you're looking for access to the CDCEnt private organization, please use the GitHub Enterprise Cloud Access Request form.]
Related documents
- Open Practices
- Rules of Behavior
- Thanks and Acknowledgements
- Disclaimer
- Contribution Notice
- Code of Conduct
Overview
This NextFlow pipeline was designed to generate and analyze consensus sequences of two targetted amplicon regions. Each region correlates to primers designed to differentiate mpox clade designations. This analysis gives an alternate to whole genome sequencing while maintaining a high level of confidence to efficient clade assignment.
Public Domain Standard Notice
This repository constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. This repository is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication. All contributions to this repository will be released under the CC0 dedication. By submitting a pull request you are agreeing to comply with this waiver of copyright interest.
License Standard Notice
The repository utilizes code licensed under the terms of the Apache Software License and therefore is licensed under ASL v2 or later.
This source code in this repository is free: you can redistribute it and/or modify it under the terms of the Apache Software License version 2, or (at your option) any later version.
This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache Software License for more details.
You should have received a copy of the Apache Software License along with this program. If not, see http://www.apache.org/licenses/LICENSE-2.0.html
The source code forked from other open source projects will inherit its license.
Privacy Standard Notice
This repository contains only non-sensitive, publicly available data and information. All material and community participation is covered by the Disclaimer and Code of Conduct. For more information about CDC's privacy policy, please visit http://www.cdc.gov/other/privacy.html.
Contributing Standard Notice
Anyone is encouraged to contribute to the repository by forking and submitting a pull request. (If you are new to GitHub, you might start with a basic tutorial.) By contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users under the terms of the Apache Software License v2 or later.
All comments, messages, pull requests, and other submissions received through CDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at http://www.cdc.gov/other/privacy.html.
Records Management Standard Notice
This repository is not a source of government records, but is a copy to increase collaboration and collaborative potential. All government records will be published through the CDC web site.
Additional Standard Notices
Please refer to CDC's Template Repository for more information about contributing to this repository, public domain notices and disclaimers, and code of conduct.
Owner
- Name: Centers for Disease Control and Prevention
- Login: CDCgov
- Kind: organization
- Email: data@cdc.gov
- Location: Atlanta, GA
- Website: http://open.cdc.gov/
- Twitter: CDCgov
- Repositories: 114
- Profile: https://github.com/CDCgov
CDC's collaborative software projects to protect America from health, safety, and security threats, both foreign and in the U.S.
Citation (CITATIONS.md)
# ONT/mpoxseqanalysis: Citations ## [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]. - [Seqtk](https://github.com/lh3/seqtk) > Heng Li. Seqtk: a fast and lightweight tool for processing sequences in the FASTA or FASTQ format. Available at: https://github.com/lh3/seqtk - [Trimmomatic](https://github.com/usadellab/Trimmomatic) > Bolger, A. M., Lohse, M., & Usadel, B. (2014). Trimmomatic: a flexible trimmer for Illumina sequence data. Bioinformatics, 30(15), 2114–2120. https://doi.org/10.1093/bioinformatics/btu170 - [iVar](https://github.com/andersen-lab/ivar) > Grubaugh, N. D., Gangavarapu, K., Quick, J., Matteson, N. L., De Jesus, J. G., Main, B. J., ... & Andersen, K. G. (2019). An amplicon-based sequencing framework for accurately measuring intrahost virus diversity using PrimalSeq and iVar. Genome Biology, 20(1), 8. https://doi.org/10.1186/s13059-018-1618-7 - [Minimap2](https://github.com/lh3/minimap2) > Heng, Li. (2018). Minimap2: pairwise alignment for nucleotide sequences. Bioinformatics, 34(18), 3094–3100. https://doi.org/10.1093/bioinformatics/bty191 - [Samtools](https://github.com/samtools/samtools) > Danecek, P., Bonfield, J. K., Liddle, J., Marshall, J., Ohan, V., Pollard, M. O., ... & Li, H. (2021). Twelve years of SAMtools and BCFtools. GigaScience, 10(2), giab008. https://doi.org/10.1093/gigascience/giab008 - [Medaka](https://github.com/nanoporetech/medaka) > Oxford Nanopore Technologies. Medaka: Sequence correction provided by ONT. Available at: https://github.com/nanoporetech/medaka - [Nextclade](https://docs.nextstrain.org/projects/nextclade/en/stable/user/nextclade-cli/index.html) - ([Github](https://github.com/nextstrain/nextclade)) > Aksamentov, I., Roemer, C., Hodcroft, E. B., & Neher, R. A. (2021). Nextclade: clade assignment, mutation calling, and quality control for viral genomes. Journal of Open Source Software, 6(67), 3773. https://doi.org/10.21105/joss.03773 - [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
- Member event: 2
- Push event: 27
- Fork event: 7
- Create event: 4
Last Year
- Member event: 2
- Push event: 27
- Fork event: 7
- Create event: 4
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- bcftools 1.20.*
- bedops 2.4.41.*
- multiqc 1.19.*
- fastqc 0.12.1.*
- ivar 1.4.3.*
- ivar 1.4.3.*
- htslib 1.20.*
- minimap2 2.28.*
- samtools 1.20.*
- minimap2 2.28.*
- multiqc 1.19.*
- nextclade 3.8.2.*
- nextclade 3.8.2.*
- htslib 1.21.*
- samtools 1.21.*
- htslib 1.21.*
- samtools 1.21.*
- htslib 1.21.*
- samtools 1.21.*
- htslib 1.21.*
- samtools 1.21.*
- htslib 1.21.*
- samtools 1.21.*
- seqtk 1.4.*
- trimmomatic 0.39.*