mpox_ampseq

Mpox_AmpSeq is a custom nextflow-style pipeline for mpox F13L amplicon sequencing. It generates reference-based consensus sequences, variant reports, NextClade outputs including clade designation, and multiple quality control metrics.

https://github.com/cdcgov/mpox_ampseq

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 (14.1%) to scientific vocabulary

Scientific Fields

Artificial Intelligence and Machine Learning Computer Science - 40% confidence
Last synced: 4 months ago · JSON representation ·

Repository

Mpox_AmpSeq is a custom nextflow-style pipeline for mpox F13L amplicon sequencing. It generates reference-based consensus sequences, variant reports, NextClade outputs including clade designation, and multiple quality control metrics.

Basic Info
  • Host: GitHub
  • Owner: CDCgov
  • License: mit
  • Language: Nextflow
  • Default Branch: main
  • Homepage:
  • Size: 896 KB
Statistics
  • Stars: 0
  • Watchers: 3
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created 10 months ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation

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.

Nextflow run with conda run with docker run with singularity Launch on Nextflow Tower

Introduction

Mpox_AmpSeq is a bioinformatics analysis nf-core style pipeline designed for F13L amplicon sequencing of mpox. The versatile tool generates reference-assisted consensus sequences, sequencing statistics, comprehensive 'NextClade' outputs, including clade identification and relevant variant information., and multiple quality control metrics. Below is a schematic representation of the key processes involved:

Pipeline Visualization

General Pipeline Steps: 1. Read QC via FastQC. 2. Trim primers with 'SEQTK'. 3. Trim and filter raw reads with 'TRIMMOMATIC'. 4. Map raw reads to reference using 'Minimap2' to generate a reference-based consensus with 'IVAR consensus'.
5. Generate alignment files and coverage information with 'SAMTOOLS'. 6. Optional: Polish 'IVAR consensus' with 'MEDAKA'. 7. Optional: Generate a variant table with 'IVAR variants'. 8. Generate clade assignment, variant information, phylogenetic placement, and additional quality control statistics with 'NextClade'. 2. Generate 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 test before running the workflow on actual data.

Repository can be cloned using git clone.

git clone https://github.com/CDCgov/Mpox_AmpSeq.git 

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.sh to 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.

Now, you can run the pipeline using:

bash nextflow run nf-core/Mpox_AmpSeq \ -profile <docker/singularity/.../institute> \ --input samplesheet.csv \ --outdir <OUTDIR> \ --resume <#if applicable> \ --fasta <reference_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 MT903344.1 is provided in /assets/genome/.

[!WARNING] NextClade clade and lineage assignments may vary in accuracy when compared to whole-genome sequencing. The target region alone does not provide sufficient resolution to reliably differentiate clades and lineages.

Post-processing Scripts:

Two additional scripts are available in the /assets/ directory to help summarize and analyze your results after the Nextflow pipeline completes. These should be run from within your Nextflow output directory.

  1. /assets/table_summary.sh: This script generates a comprehensive summary table of sequencing metrics and Nextclade mutation information. It integrates outputs from SAMTOOLS and 'NextClade' to output a table with read statistics (total reads, mapped reads, average coverage, and average read length), and Nextclade-specific details including nucleotide and amino acid substitutions, as well as nucleotide and amino acid deletions, clade assignment, and Nextclade's overall coverage. The final table is output in the ./summary_stats directory.

Usage: ```bash

In NextFlow output directory

/path/to/MpoxAmpSeq/assets/tablesummary.sh ```

  1. /assets/match_mutations.sh: This script performs a targeted analysis by cross-referencing the amino acid substitutions identified by Nextclade against a custom mutation database. It requires your mutation database to be provided as a tab-separated file named mutationdatabase.tsv within the /assets/ directory. For each sample, if a Nextclade amino acid substitution matches an entry in your database, the script will report the sample name, the Nextclade amino acid substitution, and all corresponding details from your database (Mutation, AminoAcid, TotalCount, APOBEC3Context). The report is saved to ./summary_stats/matched_mutations_report.tsv.

Usage: ```bash

In NextFlow output directory

/path/to/MpoxAmpSeq/assets/matchmutations.sh ```

[!WARNING] 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.

Credits

Mpox_AmpSeq was originally written by Daisy McGrath.

We thank the following people for their extensive assistance in the development of this pipeline:

  1. Crystal Gigante, PhD
  2. Luis Haddock, PhD

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.

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.

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

Related documents

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

CDC's collaborative software projects to protect America from health, safety, and security threats, both foreign and in the U.S.

Citation (CITATIONS.md)

# nf-core/Mpox_AmpSeq: 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].

- [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
  • Push event: 13
  • Fork event: 1
Last Year
  • Push event: 13
  • Fork event: 1

Dependencies

modules/nf-core/bcftools/index/meta.yml cpan
modules/nf-core/bedops/convert2bed/meta.yml cpan
modules/nf-core/custom/dumpsoftwareversions/meta.yml cpan
modules/nf-core/fastqc/meta.yml cpan
modules/nf-core/ivar/consensus/meta.yml cpan
modules/nf-core/ivar/variants/meta.yml cpan
modules/nf-core/medaka/meta.yml cpan
modules/nf-core/minimap2/align/meta.yml cpan
modules/nf-core/minimap2/index/meta.yml cpan
modules/nf-core/multiqc/meta.yml cpan
modules/nf-core/nextclade/datasetget/meta.yml cpan
modules/nf-core/nextclade/run/meta.yml cpan
modules/nf-core/samtools/depth/meta.yml cpan
modules/nf-core/samtools/faidx/meta.yml cpan
modules/nf-core/samtools/flagstat/meta.yml cpan
modules/nf-core/samtools/index/meta.yml cpan
modules/nf-core/samtools/sort/meta.yml cpan
modules/nf-core/samtools/stats/meta.yml cpan
modules/nf-core/samtools/view/meta.yml cpan
modules/nf-core/seqtk/trim/meta.yml cpan
modules/nf-core/trimmomatic/meta.yml cpan
pyproject.toml pypi
modules/nf-core/bcftools/index/environment.yml conda
  • bcftools 1.20.*
modules/nf-core/bedops/convert2bed/environment.yml conda
  • bedops 2.4.41.*
modules/nf-core/custom/dumpsoftwareversions/environment.yml conda
  • multiqc 1.19.*
modules/nf-core/fastqc/environment.yml conda
  • fastqc 0.12.1.*
modules/nf-core/ivar/consensus/environment.yml conda
  • ivar 1.4.3.*
modules/nf-core/ivar/variants/environment.yml conda
  • ivar 1.4.3.*
modules/nf-core/medaka/environment.yml conda
  • medaka 1.4.4.*
modules/nf-core/minimap2/align/environment.yml conda
  • htslib 1.20.*
  • minimap2 2.28.*
  • samtools 1.20.*
modules/nf-core/minimap2/index/environment.yml conda
  • minimap2 2.28.*
modules/nf-core/multiqc/environment.yml conda
  • multiqc 1.19.*
modules/nf-core/nextclade/datasetget/environment.yml conda
  • nextclade 3.8.2.*
modules/nf-core/nextclade/run/environment.yml conda
  • nextclade 3.8.2.*
modules/nf-core/samtools/depth/environment.yml conda
  • htslib 1.21.*
  • samtools 1.21.*
modules/nf-core/samtools/faidx/environment.yml conda
  • htslib 1.21.*
  • samtools 1.21.*
modules/nf-core/samtools/flagstat/environment.yml conda
  • htslib 1.21.*
  • samtools 1.21.*
modules/nf-core/samtools/index/environment.yml conda
  • htslib 1.21.*
  • samtools 1.21.*
modules/nf-core/samtools/sort/environment.yml conda
  • htslib 1.21.*
  • samtools 1.21.*
modules/nf-core/samtools/stats/environment.yml conda
  • htslib 1.21.*
  • samtools 1.21.*
modules/nf-core/samtools/view/environment.yml conda
  • htslib 1.21.*
  • samtools 1.21.*
modules/nf-core/seqtk/trim/environment.yml conda
  • seqtk 1.4.*
modules/nf-core/trimmomatic/environment.yml conda
  • trimmomatic 0.39.*