This repository provides a modular, Singularity-based Nextflow (DSL2) pipeline for:
- Downloading raw reads from NCBI SRA (SRR accessions)
- Assembling reads with Shovill
- Predicting in‑silico amplicons using EMBOSS primersearch
- Generating a pairwise difference matrix from amplicon FASTA files
SRR list
│
▼
fastqs/ (download)
│
▼
assemblies/ (shovill)
│
▼
amplicons/ (primersearch)
│
▼
pairwise matrix (CSV)
When all stages are run, outputs are written under a single --outdir.
results/
├── fastqs/
│ ├── SRR123_1.fastq.gz
│ ├── SRR123_2.fastq.gz
│ └── ...
├── assemblies/
│ │ └── SRR123_assembled.fasta
│ └── ...
├── primersearch/
│ ├── amplicon/
│ │ ├── SRR123_assembled_extractedAmplicons.fasta
│ │ ├── SRR123_assembled_not_matched_primers.txt
│ ├── SRR123_assembled.fasta
│ ├── SRR123.json
│ ├── SRR123.ps
│ └── ...
├── matrix_rows/
│ │ └── SRR123_assembled_extractedAmplicons.txt
│ └── ...
└── matrix/
└── pairwise_diff_matrix.csv
nextflow run main.nf \
--srr_list <SRR list file (one SRR per row)> \
--outdir $PWD/<output folder> (need to use absolute path, or prefix it with $PWD\
--primers <primer file (3-column primersearch format)> \
--output_csv pairwise_test_50srrs.csv nextflow run main.nf -entry download_only \
--srr_list srr_ids.txt \
--outdir resultsnextflow run main.nf -entry assembly_only \
--reads /path/to/fastqs \
--outdir resultsnextflow run main.nf -entry da \
--srr_list srr_ids.txt \
--outdir resultsnextflow run main.nf -entry primersearch_only \
--reads /path/to/assemblies \
--primers primers.txt \
--outdir results \nextflow run main.nf -entry pairwise_only \
--amplicon_folder $PWD/amplicons (need to use absolute path, or prefix it with $PWD \
--primers primers.txt \
--output_csv pairwise.csv \
--outdir output_foldernextflow run main.nf -entry pp \
--reads assemblies \
--primers primers.txt \
--outdir $PWD/results (need to use absolute path, or prefix it with $PWD\
--output_csv pairwise.csv.
├── main.nf
├── nextflow.config
├── modules/
│ ├── download_reads.nf
│ ├── assemble_shovill.nf
│ ├── primersearch_amplicons.nf
│ └── pairwise_matrix.nf
├── bin/
│ ├── parse_primersearch.py
│ ├── fasta_to_json.py
│ ├── pairwise_compare.py
│ └── merge_rows.py
└── README.md
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.
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.