Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cnr-ibba/nf-blobpurge

Open in GitHub Codespaces GitHub Actions CI Status GitHub Actions Linting StatusCite with Zenodo nf-test

Nextflow nf-core template version run with conda run with docker run with singularity Launch on Seqera Platform

Introduction

cnr-ibba/nf-blobpurge is a bioinformatics pipeline for de novo short-read genome assemblies (e.g. algae) that have already been classified with sanger-tol/blobtoolkit. Starting from an existing assembly + BlobDir pair (it never regenerates the BlobDir), it removes contaminant contigs, purges uncollapsed heterozygous haplotigs with purge_dups (cross-checked independently with purge_haplotigs), runs comparative BUSCO across every assembly stage, and produces a single per-sample HTML report with an explicit verdict on whether the size/duplication surplus is explained by heterozygous haplotigs.

Nothing about a specific organism, taxon, or BUSCO lineage is hardcoded: the taxa to exclude and the BUSCO lineage(s) to run are mandatory parameters with no default.

  1. Remove contaminant contigs from an existing BlobDir, with a programmatic assembly-span conservation check (BTK_FILTER)
  2. Compute read coverage for purging: subset an existing reads CRAM, or map FASTQ reads fresh with bwa-mem2 (READ_COVERAGE)
  3. Purge uncollapsed heterozygous haplotigs (purge_dups), cross-checked independently and in parallel with purge_haplotigs
  4. Run comparative BUSCO (never --auto-lineage) across the raw, filtered and purged assemblies
  5. Generate a per-sample HTML report tying span, BUSCO duplication, the GenomeScope2 comparison (if provided) and the purge_dups/purge_haplotigs cross-check together into an explicit verdict
  6. Present QC and software versions for the whole run (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.

First, prepare a samplesheet with your input data that looks as follows (see docs/usage.md for the full column reference):

samplesheet.csv:

sample_id,assembly,blobdir,reads_cram,reads_r1,reads_r2
sample1,/data/sample1.assembly.fasta,/data/sample1_blobdir,/data/sample1.reads.cram,,

Each row represents one already-assembled, already-blobtoolkit-classified sample: its assembly FASTA, its BlobDir, and either a reads CRAM or a pair of FASTQ files for coverage.

Now, you can run the pipeline using:

nextflow run cnr-ibba/nf-blobpurge \
   -profile <docker/singularity/.../institute> \
   --input samplesheet.csv \
   --outdir <OUTDIR> \
   --exclude_taxa "Pseudomonadota,Bacteroidota,Actinomycetota" \
   --busco_lineages "chlorophyta_odb12,viridiplantae_odb12"

--exclude_taxa and --busco_lineages are mandatory and have no default -- the pipeline fails immediately with an explicit error if either is missing.

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

cnr-ibba/nf-blobpurge was originally written by Paolo Cozzi.

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.

About

Filter contaminant contigs from a BlobToolKit-classified genome assembly and quantify heterozygous haplotig duplication with purge_dups/purge_haplotigs and comparative BUSCO.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages