Skip to content

Latest commit

 

History

History
141 lines (99 loc) · 8.06 KB

README.md

File metadata and controls

141 lines (99 loc) · 8.06 KB

GitHub Actions CI Status GitHub Actions Linting StatusCite with Zenodo nf-test

Nextflow run with conda run with docker run with singularity Launch on Seqera Platform

Introduction

ecoflow/genomeqc is a bioinformatics pipeline that compares the quality of multiple genomes, along with their annotations.

The pipeline takes a list of genomes and annotations (from raw files or Refseq IDs), and runs commonly used tools to assess their quality.

There are three different ways you can run this pipeline. 1. Genome only, 2. Annotation only, or 3. Genome and Annotation. Only Genome plus Annotation is functional

Genome and Annnotation:

  1. Downloads the genome and gene annotation files from NCBI [NCBIGENOMEDOWNLOAD] - Or you provide your own genomes/annotations
  2. Describes genome assembly: 2a. [BUSCO_BUSCO]: Determines how complete is the genome compared to expected (protein mode). 2b. [QUAST]: Determines the N50, how contiguous the genome is. 2c. More options
  3. Describes your annotation : [AGAT]: Gene, feature, length, averages, counts.
  4. Extract longest protein fasta sequences [GFFREAD].
  5. Finds orthologous genes [ORTHOFINDER].
  6. Summary with MulitQC.

Genome Only (in development):

  1. Downloads the genome files from NCBI [NCBIGENOMEDOWNLOAD] - Or you provide your own genomes
  2. Describes genome assembly: 2a. [BUSCO_BUSCO]: Determines how complete is the genome compared to expected (genome mode). 2b. [QUAST]: Determines the N50, how contiguous the genome is. 2c. More options
  3. Summary with MulitQC.

Annnotation Only (in development):

  1. Downloads the gene annotation files from NCBI [NCBIGENOMEDOWNLOAD] - Or you provide your own annotations.
  2. Describes your annotation : [AGAT]: Gene, feature, length, averages, counts.
  3. Summary with MulitQC.

In addition to the three different modes described above, it is also possible to run the pipeline with or without sequencing reads. When supplying sequencing reads, Merqury can also be run. Merqury is a tool for genome quality assessment that uses k-mer counts from raw sequencing data to evaluate the accuracy and completeness of a genome assembly. Meryl is the companion tool that efficiently counts and stores k-mers from sequencing reads, enabling Merqury to estimate metrics like assembly completeness and base accuracy. These tools provide a k-mer-based approach to assess assembly quality, helping to identify potential errors or gaps.​

To run the pipeline with reads, you must supply a single FASTQ file for each genome in the samplesheet. It is assumed that reads used to create the assembly are from long read technology such as PacBio or ONT, and are therefore single end. If reads are in a .bam file, they must be converted to FASTQ format first. If you have paired end reads, these must be interleaved first.

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.

First, prepare a samplesheet.csv, where your input data points to genomes + or annotations:

species,refseq,fasta,gff,fastq
Homo_sapiens,,/path/to/genome.fasta,/path/to/annotation.gff3,/path/to/reads.fq.gz
Gorilla_gorilla,,/path/to/genome.fasta,,/path/to/reads.fq.gz
Pan_paniscus,,/path/to/genome.fasta,/path/to/annotation.gff3,/path/to/reads.fq.gz

Or to Refseq IDs of your species:

species,refseq,fasta,gff,fastq
Pongo_abelii,GCF_028885655.2,,,/path/to/reads.fq.gz
Macaca_mulatta,GCF_003339765.1,,,/path/to/reads.fq.gz

You can mix the two input types (in development).

Each row represents a species, with its associated genome, gff or Refseq ID (to autodownload the genome + gff).

You can run the pipeline using test profiles or example input samplesheets. To run a test set with a samplesheet containing reads:

nextflow run main.nf -resume -profile docker,test --outdir results

If you supply sequencing reads in your samplesheet, you can still disable merqury by using the parameter --merqury_skip true. Alternatively, use a different test profile that does not contain sequencing reads:

nextflow run main.nf -resume -profile docker,test_nofastq --outdir results

To run this pipeline on an example samplesheet included in the repo assets:

nextflow run main.nf -resume -profile docker --input assets/samplesheet.csv --outdir results
nextflow run ecoflow/genomeqc \
   -profile <docker/singularity/.../institute> \
   --input samplesheet.csv \
   --outdir <OUTDIR>

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.

Credits

ecoflow/genomeqc was originally written by Chris Wyatt, Fernando Duarte.

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

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.

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.