mycosnp-nf

MycoSNP: Whole Genome Sequencing Analysis of Fungal Isolates

https://github.com/cdcgov/mycosnp-nf

Science Score: 59.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 5 DOI reference(s) in README
  • Academic publication links
    Links to: pubmed.ncbi, ncbi.nlm.nih.gov
  • Committers with academic emails
    2 of 18 committers (11.1%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.5%) to scientific vocabulary

Keywords from Contributors

nextflow dsl2 nf-core nf-test pipelines workflows
Last synced: 6 months ago · JSON representation

Repository

MycoSNP: Whole Genome Sequencing Analysis of Fungal Isolates

Basic Info
  • Host: GitHub
  • Owner: CDCgov
  • License: apache-2.0
  • Language: Nextflow
  • Default Branch: master
  • Homepage:
  • Size: 821 MB
Statistics
  • Stars: 72
  • Watchers: 3
  • Forks: 40
  • Open Issues: 8
  • Releases: 10
Created about 4 years ago · Last pushed 10 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation

README.md

MycoSNP: Whole Genome Sequencing Analysis of Fungal Isolates

Nextflow run with conda run with docker run with singularity

Introduction

MycoSNP is a bioinformatics pipeline for performing whole genome sequencing analysis of fungal organisms (e.g. Candida auris) from Illumina paired-end reads. It is built with the nf-core template.

This repository contains two workflows that are run independently: - Pre-MycoSNP workflow: A first-pass workflow for quick answers - Fungal taxonomic classification and Candida auris clade typing, using de novo assemblies - Main MycoSNP workflow (default workflow): - Reference-based SNP calling - Tree building - Identification of antifungal-resistance mutations

Full Documentation

  • Usage: An overview of how MycoSNP works, how to run it and a description of all of the different command-line flags.
  • Parameters: Options, flags, and inputs.
  • Output: An overview of the different results produced by MycoSNP and how to interpret them.

Quick Start

  1. Install Nextflow (>=21.10.3)

  2. Install any of Docker, Singularity, Podman, Shifter or Charliecloud for full pipeline reproducibility (please only use Conda as a last resort; see docs). More info on using containers with Nextflow here.

[!TIP] Using Apptainer/Singularity with Nextflow version >=23 can result in failures in Linux server environments due to peculiarities with container directory mounting. If you are experiencing No such file or directory errors, try running with an earlier version of Nextflow (we've had success with 22.10.6). 3. Test the main MycoSNP workflow on pre-defined minimal test samples with a single command: console nextflow run CDCgov/mycosnp-nf -profile test,YOURPROFILE [!NOTE] The samples for the test run are bacterial (N. gonorrhoeae), not fungal. This is intentional so the test finishes in a few minutes (as opposed to longer for fungal samples with much larger genomes).

[!TIP] 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 and conda 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 either docker or singularity and set the appropriate execution settings for your local compute environment. * If you are using singularity and are persistently observing issues downloading Singularity images directly due to timeout or network issues, then you can use the --singularity_pull_docker_container parameter to pull and convert the Docker image instead. Alternatively, you can use the nf-core download command to download images first, before running the pipeline. Setting the NXF_SINGULARITY_CACHEDIR or singularity.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 (not recommended), it is highly recommended to use the NXF_CONDA_CACHEDIR or conda.cacheDir settings to store the environments in a central location for future pipeline runs.

  1. Start running your own analysis! > [!NOTE] > The --workflow option specifies which workflow to run (Pre-MycoSNP workflow or main MycoSNP workflow). By default (when no workflow is specified), the main MycoSNP workflow is executed. See summaries of each workflow in the next section, or more detailed documentation in the Full Documentation.
    • Pre-MycoSNP workflow: console nextflow run CDCgov/mycosnp-nf --workflow PRE_MYCOSNP -profile <docker/singularity/other/institute> --input samplesheet.csv
    • Main MycoSNP workflow (default workflow): console nextflow run CDCgov/mycosnp-nf -profile <docker/singularity/other/institute> --input samplesheet.csv --fasta reference_genome.fasta
  2. It is advisable to delete large temporary or log files after the successful completion of the run. It takes a lot of space and may cause issues in future runs.

Pre-MycoSNP Workflow: Summary

  1. Sequencing reads quality metrics (FastQC)
  2. Remove unpaired reads (seqkit pair)
  3. Trim/filter reads (FaQCs)
  4. De novo assembly (Shovill)
  5. Taxonomic classification (GAMBIT)
  6. Subtyping (sourmash)
    • Compares sourmash sketch of sample against sourmash signature file provided in assets/sourmash_db/.
    • By default, for C. auris, Pre-MycoSNP performs clade typing (Clades I-VI).
  7. Summary report containing genus/species classification, subtype, and read and assembly quality metrics.

Main MycoSNP Workflow (Default Workflow): Summary

Reference Preparation

Prepares a reference FASTA file for BWA alignment and GATK variant calling by masking repeats in the reference and generating the BWA index. * Genome repeat identification and masking (nucmer) * BWA index generation (bwa) * FAI and DICT file creation (Picard, Samtools)

Sample QC and Processing

Prepares samples (paired-end FASTQ files) for GATK variant calling by aligning the samples to a BWA reference index and ensuring that the BAM files are correctly formatted. This step also provides different quality reports for sample evaluation.

  • Combine FASTQ file lanes if they were provided with multiple lanes.
  • Filter unpaired reads from FASTQ files (SeqKit).
  • Down sample FASTQ files to a desired coverage or sampling rate (SeqTK).
  • Trim reads and assess quality (FaQCs).
  • Generate a QC report by extracting data from FaQCs report data.
  • Align FASTQ reads to a reference (BWA).
  • Sort BAM files (SAMTools).
  • Mark and remove duplicates in the BAM file (Picard).
  • Clean the BAM file (Picard "CleanSam").
  • Fix mate information in the BAM file (Picard "FixMateInformation").
  • Add read groups to the BAM file (Picard "AddOrReplaceReadGroups").
  • Index the BAM file (SAMTools).
  • FastQC - Filtered reads QC.
  • Qualimap mapping quality report.
  • MultiQC - Aggregate report describing results and QC from the whole pipeline

Variant calling and analysis

Calls variants and generates a multi-FASTA file and phylogeny.

  • Call variants (GATK HaplotypeCaller).
  • Combine gVCF files from the HaplotypeCaller into a single VCF (GATK CombineGVCFs).
  • Call genotypes using the (GATK GenotypeGVCFs).
  • Filter the variants (GATK VariantFiltration) [default (but customizable) filter: 'QD < 2.0 || FS > 60.0 || MQ < 40.0 || DP < 10'].
  • Run a customized VCF filtering script (Broad Institute).
  • Split the filtered VCF file by sample.
  • Select only SNPs from the VCF files (GATK SelectVariants).
  • Split the VCF file with SNPs by sample.
  • Create a multi-fasta file from the VCF SNP positions using a custom script (Broad Institute).
  • Create a distance matrix file using multi-fasta file(SNPdists).
  • Create phylogeny from multi-fasta file (rapidNJ, FastTree2, quicksnp, RaxML(optional), IQTree(optional))

Variant annotation analysis (currently available for C. auris B11205 genome only)

  • annotated VCF file (snpEff)
  • snpeffr report. Non-synonymous variants in FKS1 hotspot regions are included in the report.

Pre-configured Nextflow development environment using Gitpod

Open CDCgov/mycosnp-nf in Gitpod

Once the pod launches, it will present a VS-Code interface and comes with Nextflow, Conda and Docker pre-installed

Credits

nf-core/mycosnp was originally developed at CDC (with contributions from many others in the public health bioinformatics community), and is currently maintained by CDC's Mycotic Diseases Branch.

We thank the following people (alphabetical order by last name) for their code contributions or assistance in the development of this pipeline:

Special thanks to StaPH-B for open-source collaborations and discussions.

Special thanks to CDC's Office of Advanced Molecular Detection (OAMD) and the Scientific Computing and Bioinformatics Support (SciComp) team for supporting development and computing infrastructure.

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.

You can cite the MycoSNP and nf-core publications as follows:

Bagal UR, Phan J, Welsh RM, Misas E, Wagner D, Gade L, Litvintseva AP, Cuomo CA, Chow NA.

MycoSNP: A Portable Workflow for Performing Whole-Genome Sequencing Analysis of Candida auris.

Methods Mol Biol. 2022; 2517:215-228. doi: 10.1007/978-1-0716-2417-3_17

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.

Related documents

Public Domain

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

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

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

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

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 Information

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.

GitHub Events

Total
  • Create event: 21
  • Release event: 5
  • Issues event: 15
  • Watch event: 30
  • Delete event: 18
  • Member event: 1
  • Issue comment event: 24
  • Push event: 46
  • Gollum event: 4
  • Pull request event: 24
  • Fork event: 10
Last Year
  • Create event: 21
  • Release event: 5
  • Issues event: 15
  • Watch event: 30
  • Delete event: 18
  • Member event: 1
  • Issue comment event: 24
  • Push event: 46
  • Gollum event: 4
  • Pull request event: 24
  • Fork event: 10

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 324
  • Total Committers: 18
  • Avg Commits per committer: 18.0
  • Development Distribution Score (DDS): 0.701
Past Year
  • Commits: 52
  • Committers: 4
  • Avg Commits per committer: 13.0
  • Development Distribution Score (DDS): 0.077
Top Committers
Name Email Commits
Cipriano r****8@c****v 97
Zack Mudge z****e@g****u 49
sateeshperi p****h@n****u 40
CJ Jossart c****t@g****m 28
DOH-JDJ0303 j****n@d****v 24
Hunter Seabolt 8****t 22
DOH-JDJ0303 u****u@i****l 14
urbagal 8****l 10
Robert A. Petit III r****t@g****m 9
John Arnn 7****n 8
tzx6 t****6@c****v 7
Peri r****8@c****v 6
Lynn Dotrang 9****p 5
Brian Lee b****e@g****m 1
Harshil Patel d****h 1
Malavika Rajeev 4****8 1
Forstedt s****9@c****v 1
Michael J Cipriano 4****o 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 61
  • Total pull requests: 71
  • Average time to close issues: 2 months
  • Average time to close pull requests: 20 days
  • Total issue authors: 26
  • Total pull request authors: 18
  • Average comments per issue: 1.33
  • Average comments per pull request: 0.61
  • Merged pull requests: 60
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 6
  • Pull requests: 8
  • Average time to close issues: 3 months
  • Average time to close pull requests: 6 days
  • Issue authors: 6
  • Pull request authors: 5
  • Average comments per issue: 3.33
  • Average comments per pull request: 0.5
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • sateeshperi (18)
  • urbagal (5)
  • rpetit3 (5)
  • mciprianoCDC (4)
  • cjjossart (3)
  • AspTryGlu (2)
  • wchen190 (2)
  • LeuThrAsp (2)
  • DOH-JDJ0303 (2)
  • k-florek (1)
  • kevinlibuit (1)
  • jwarnn (1)
  • ybdong919 (1)
  • slsevilla (1)
  • gaworj (1)
Pull Request Authors
  • mciprianoCDC (15)
  • zmudge3 (14)
  • cjjossart (11)
  • DOH-JDJ0303 (7)
  • hseabolt (6)
  • rpetit3 (6)
  • sateeshperi (6)
  • jwarnn (4)
  • arunbodd (2)
  • urbagal (2)
  • LeuThrAsp (2)
  • slsevilla (2)
  • kyleoconnell (1)
  • drpatelh (1)
  • dwinter (1)
Top Labels
Issue Labels
enhancement (4) bug (1) Work_In_Progress (1)
Pull Request Labels
bug (4) enhancement (3)