Skip to content

feat(pipeline): add decontamination with syncon - #200

Merged
prototaxites merged 8 commits into
devfrom
syncon
Nov 27, 2026
Merged

prototaxites merged 8 commits into
devfrom
syncon

Conversation

@prototaxites

@prototaxites prototaxites commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Adds a new decontamination stage to the pipeline. This stage removes low-coverage contigs from an assembly using a fast syncmer-based profiling approach from syncon. To run it, specify decontaminate: true in the assembly specification, and then specify a value for syncon_cutoff (the minumum average syncmer coverage of a contig to retain).

  • Note that this decontamination step is not a substitute for full taxonomy-based decontamination post-assembly. Its intention is to aid in the reduction of contig numbers, which can hinder scaffolding, in cases where there is a clear lower-coverage contaminant in the dataset that is easily separable by coverage.
  • This method can be quite aggressive if improperly tuned - it is recommended to check MerquryFK kmer spectra and BUSCO scores post-decontamination to ensure that only the expected sequence has been removed.

Closes #188

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit fc4cd41

+| ✅ 192 tests passed       |+
#| ❔  31 tests were ignored |#
#| ❔   1 tests had warnings |#
!| ❗   1 tests had warnings |!
Details

❗ Test warnings:

❔ Tests ignored:

  • files_exist - File is ignored: conf/igenomes.config
  • files_exist - File is ignored: conf/igenomes_ignored.config
  • files_exist - File is ignored: assets/multiqc_config.yml
  • files_exist - File is ignored: conf/igenomes.config
  • files_exist - File is ignored: conf/igenomes_ignored.config
  • files_exist - File is ignored: assets/multiqc_config.yml
  • files_exist - File is ignored: CODE_OF_CONDUCT.md
  • files_exist - File is ignored: assets/nf-core-genomeassembly_logo_light.png
  • files_exist - File is ignored: docs/images/nf-core-genomeassembly_logo_light.png
  • files_exist - File is ignored: docs/images/nf-core-genomeassembly_logo_dark.png
  • files_exist - File is ignored: .github/ISSUE_TEMPLATE/config.yml
  • files_exist - File is ignored: .github/workflows/awstest.yml
  • files_exist - File is ignored: .github/workflows/awsfulltest.yml
  • nextflow_config - Config variable ignored: manifest.name
  • nextflow_config - Config variable ignored: manifest.homePage
  • nextflow_config - Config variable ignored: params.input
  • files_unchanged - File ignored due to lint config: .gitattributes
  • files_unchanged - File ignored due to lint config: CODE_OF_CONDUCT.md
  • files_unchanged - File ignored due to lint config: LICENSE or LICENSE.md or LICENCE or LICENCE.md
  • files_unchanged - File ignored due to lint config: .github/ISSUE_TEMPLATE/bug_report.yml
  • files_unchanged - File ignored due to lint config: .github/ISSUE_TEMPLATE/config.yml
  • files_unchanged - File ignored due to lint config: .github/PULL_REQUEST_TEMPLATE.md
  • files_unchanged - File ignored due to lint config: assets/email_template.txt
  • files_unchanged - File ignored due to lint config: assets/sendmail_template.txt
  • files_unchanged - File ignored due to lint config: assets/nf-core-genomeassembly_logo_light.png
  • files_unchanged - File ignored due to lint config: docs/images/nf-core-genomeassembly_logo_light.png
  • files_unchanged - File ignored due to lint config: docs/images/nf-core-genomeassembly_logo_dark.png
  • files_unchanged - File ignored due to lint config: docs/README.md
  • files_unchanged - File ignored due to lint config: .gitignore or .prettierignore
  • actions_awstest - 'awstest.yml' workflow not found: /home/runner/work/genomeassembly/genomeassembly/.github/workflows/awstest.yml
  • multiqc_config - multiqc_config

❔ Tests fixed:

✅ Tests passed:

Run details

  • nf-core/tools version 4.2.2
  • Run at 2026-11-25 11:18:21

Comment thread assets/schema_assembly.json Resolved
@prototaxites prototaxites linked an issue Nov 25, 2026 that may be closed by this pull request

@DLBPointon DLBPointon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@prototaxites
prototaxites merged commit 0b49182 into dev Nov 27, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simple coverage-based decontamination step

2 participants