bacqc-ont

bacQC-ONT is a bioinformatics pipeline for the assessment of Oxford Nanopore sequence data

https://github.com/avantonder/bacqc-ont

Science Score: 67.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 5 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.1%) to scientific vocabulary

Keywords

bacteria bacterial-genome-analysis nextflow nextflow-pipeline ont qc quality-control
Last synced: 6 months ago · JSON representation ·

Repository

bacQC-ONT is a bioinformatics pipeline for the assessment of Oxford Nanopore sequence data

Basic Info
  • Host: GitHub
  • Owner: avantonder
  • License: mit
  • Language: Nextflow
  • Default Branch: master
  • Homepage:
  • Size: 2.76 MB
Statistics
  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 5
Topics
bacteria bacterial-genome-analysis nextflow nextflow-pipeline ont qc quality-control
Created over 2 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation

README.md

avantonder/bacQC-ONT

Cite with Zenodo

Nextflow run with conda run with docker run with singularity

Introduction

bacQC-ONT is a bioinformatics pipeline for the assessment of Oxford Nanopore sequence data. It assesses read quality with fastQC, nanoplot and pycoQC, and species composition with Kraken2 and Bracken.

  1. Read QC (FastQC)
  2. Calculate fastq summary statistics (fastq-scan)
  3. ONT Read QC and summary (NanoPlot)
  4. ONT Read QC and summary (pycoQC) [OPTIONAL - requires sequencing_summary.txt file]
  5. Assign taxonomic labels to sequence reads (Kraken 2)
  6. Re-estimate taxonomic abundance of samples analyzed by Kraken 2(Bracken)
  7. Visualize Bracken reports with (Krona)
  8. Present QC and species composition (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.

You will need to download a taxonomic database for Kraken 2 and Bracken (this is a large file and may take a while):

```bash wget ftp://ftp.ccb.jhu.edu/pub/data/kraken2dbs/old/minikraken2v18GB201904.tgz

tar xvfz minikraken2v18GB_201904.tgz ``` You will also need to download the taxonomy file for Krona (this requires Krona to be installed e.g. with Conda):

bash ktUpdateTaxonomy.sh .

You will need to create a samplesheet with information about the samples you would like to analyse before running the pipeline. It has to be a comma-separated file with 2 columns, and a header row as shown in the example below. An executable Python script called build_samplesheet.py has been provided to auto-create an input samplesheet based on a directory containing sub-directories with the prefix barcode which contain the FastQ files before you run the pipeline (requires Python 3 installed locally) e.g.

```bash wget -L https://github.com/avantonder/bacQC-ONT/blob/master/bin/build_samplesheet.py

python buildsamplesheet.py -i <FASTQDIR> ```

csv title="samplesheet.csv" sample,fastq SAMPLE_1,path/to/fastq/file1 SAMPLE_1,path/to/fastq/file2 SAMPLE_2,path/to/fastq/file1

Now you can run the pipeline using:

bash nextflow run avantonder/bacQC-ONT \ -profile singularity \ -c <INSTITUTION>.config \ --input samplesheet.csv \ --summary_file sequencing_summary.txt \ --genome_size <ESTIMATED GENOME SIZE e.g. 4000000> \ --kraken2db minikraken2_v1_8GB \ --kronadb taxonomy.tab \ --outdir <OUTDIR>

See usage docs for all of the available options when running the pipeline.

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 (<INSTITUTION>.config 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, please 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, 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.

Documentation

The avantonder/assembleBAC-ONT pipeline comes with documentation about the pipeline usage, parameters and output.

Acknowledgements

bacQC-ONT was originally written by Andries van Tonder. I wouldn't have been able to write this pipeline with out the tools, documentation, pipelines and modules made available by the fantastic nf-core community.

Feedback

If you have any issues, questions or suggestions for improving bovisanalyzer, please submit them to the Issue Tracker.

Citations

If you use the avantonder/assembleBAC-ONT pipeline, please cite it using the following doi: 10.5281/zenodo.15052401

An extensive list of references for the tools used by the pipeline can be found in the CITATIONS.md file.

Owner

  • Login: avantonder
  • Kind: user

Citation (CITATIONS.md)

# nf-core/bacqcont: 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

- [Bracken](https://peerj.com/articles/cs-104/)
  
  > Lu J, Breitwieser FP, Thielen P, Salzberg SL. Bracken: estimating species abundance in metagenomics data. PeerJ Computer Science. 2017: 3:e104. doi: 10.7717/peerj-cs.104.

- [FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/)

  > Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online]. Available online https://www.bioinformatics.babraham.ac.uk/projects/fastqc/.

- [fastq-scan](https://github.com/rpetit3/fastq-scan)

- [Kraken 2](https://www.ncbi.nlm.nih.gov/pubmed/31779668/)
  
  > Wood DE, Lu J, Langmead B. Improved metagenomic analysis with Kraken 2. Genome Biol. 2019 Nov 28;20(1):257. doi: 10.1186/s13059-019-1891-0. PubMed PMID: 31779668; PubMed Central PMCID: PMC6883579.

- [Krona](https://pubmed.ncbi.nlm.nih.gov/21961884/)
    > Ondov BD, Bergman NH, Phillippy AM. Interactive metagenomic visualization in a Web browser. BMC Bioinformatics. 2011 Sep 30;12:385. doi: 10.1186/1471-2105-12-385. PMID: 21961884; PMCID: PMC3190407.

- [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.

- [NanoPlot](https://pubmed.ncbi.nlm.nih.gov/37171891/)

  > De Coster W, Rademakers R. NanoPack2: population-scale evaluation of long-read sequencing data. Bioinformatics. 2023 May 4;39(5):btad311. doi: 10.1093/bioinformatics/btad311. PMID: 37171891; PMCID: PMC10196664.

- [pycoQC](https://github.com/a-slide/pycoQC)

## 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
  • Release event: 3
  • Watch event: 2
  • Push event: 51
  • Pull request event: 13
  • Create event: 2
Last Year
  • Release event: 3
  • Watch event: 2
  • Push event: 51
  • Pull request event: 13
  • Create event: 2

Dependencies

.github/workflows/awsfulltest.yml actions
  • actions/upload-artifact v3 composite
  • seqeralabs/action-tower-launch v2 composite
.github/workflows/awstest.yml actions
  • actions/upload-artifact v3 composite
  • seqeralabs/action-tower-launch v2 composite
.github/workflows/branch.yml actions
  • mshick/add-pr-comment v1 composite
.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • nf-core/setup-nextflow v1 composite
.github/workflows/clean-up.yml actions
  • actions/stale v7 composite
.github/workflows/fix-linting.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/linting.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
  • mshick/add-pr-comment v1 composite
  • nf-core/setup-nextflow v1 composite
  • psf/black stable composite
.github/workflows/linting_comment.yml actions
  • dawidd6/action-download-artifact v2 composite
  • marocchino/sticky-pull-request-comment v2 composite
modules/nf-core/bracken/bracken/meta.yml cpan
modules/nf-core/fastqc/meta.yml cpan
modules/nf-core/fastqscan/meta.yml cpan
modules/nf-core/kraken2/kraken2/meta.yml cpan
modules/nf-core/multiqc/meta.yml cpan
modules/nf-core/nanoplot/meta.yml cpan
modules/nf-core/pycoqc/meta.yml cpan
pyproject.toml pypi
modules/local/cat/fastq/meta.yml cpan
modules/nf-core/krona/ktimporttaxonomy/meta.yml cpan
subworkflows/nf-core/utils_nextflow_pipeline/meta.yml cpan
subworkflows/nf-core/utils_nfcore_pipeline/meta.yml cpan
subworkflows/nf-core/utils_nfschema_plugin/meta.yml cpan
subworkflows/nf-core/utils_nfvalidation_plugin/meta.yml cpan
modules/local/cat/fastq/environment.yml pypi
modules/nf-core/bracken/bracken/environment.yml pypi
modules/nf-core/fastqc/environment.yml pypi
modules/nf-core/fastqscan/environment.yml pypi
modules/nf-core/kraken2/kraken2/environment.yml pypi
modules/nf-core/krona/ktimporttaxonomy/environment.yml pypi
modules/nf-core/multiqc/environment.yml pypi
modules/nf-core/nanoplot/environment.yml pypi
modules/nf-core/pycoqc/environment.yml pypi