nf-core/mycosnp is a bioinformatics best-practice analysis pipeline for MycoSNP is a portable workflow for performing whole genome sequencing analysis of fungal organisms, including Candida auris. This method prepares the reference, performs quality control, and calls variants using a reference. MycoSNP generates several output files that are compatible with downstream analytic tools, such as those for used for phylogenetic tree-building and gene variant annotations..
The pipeline is built using Nextflow, a workflow tool to run tasks across multiple compute infrastructures in a very 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. Where possible, these processes have been submitted to and installed from nf-core/modules in order to make them available to all nf-core pipelines, and to everyone within the Nextflow community!
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
)
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
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
). - Create a distance matrix file using multi-fasta file(
SNPdists
). - Create phylogeny from multi-fasta file (
rapidNJ
,FastTree2
,quicksnp
,RaxML(optional)
,IQTree(optional)
)
- annotated VCF file (
snpEff
) - combined output report(
SnpEffR
)
-
Install
Nextflow
(>=21.10.3
) -
Install any of
Docker
,Singularity
,Podman
,Shifter
orCharliecloud
for full pipeline reproducibility (please only useConda
as a last resort; see docs) -
Requires Python version >3.0
-
Download the pipeline and test it on a minimal dataset with a single command:
nextflow run CDCgov/mycosnp-nf -profile test,YOURPROFILE
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
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 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.
- The pipeline comes with config profiles called
-
Start running your own analysis!
nextflow run CDCgov/mycosnp-nf -profile <docker/singularity/podman/shifter/charliecloud/conda/institute> --input samplesheet.csv --fasta c_auris.fasta
-
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.
Once the pod launches, it will present a VS-Code interface and comes with Nextflow, Conda and Docker pre-installed
The nf-core/mycosnp pipeline comes with documentation about the pipeline usage, parameters and output.
nf-core/mycosnp was originally written by CDC.
We thank the following people for their extensive assistance in the development of this pipeline:
- Michael Cipriano @mjcipriano
- Sateesh Peri @sateeshperi
- Hunter Seabolt @hseabolt
- Chris Sandlin @cssandlin
- Drewry Morris @drewry
- Lynn Dotrang @leuthrasp
- Christopher Jossart @cjjossart
- Robert A. Petit III @rpetit3
Special thanks the Staph-B Slack workspace for open-source collaborations and discussions.
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 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.
Template for clearance: This project serves as a template to aid projects in starting up and moving through clearance procedures. To start, create a new repository and implement the required open practices, train on and agree to adhere to the organization's rules of behavior, and send a request through the create repo form using language from this template as a Guide.
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.
- Open Practices
- Rules of Behavior
- Thanks and Acknowledgements
- Disclaimer
- Contribution Notice
- Code of Conduct
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.
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.
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.
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.
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.
Please refer to CDC's Template Repository for more information about contributing to this repository, public domain notices and disclaimers, and code of conduct.