Skip to content

Add fixtures for custom/resolvetaxonomy module tests - #2239

Merged
erikrikarddaniel merged 1 commit into
nf-core:modulesfrom
erikrikarddaniel:add-resolvetaxonomy-fixtures
Aug 26, 2026
Merged

Add fixtures for custom/resolvetaxonomy module tests#2239
erikrikarddaniel merged 1 commit into
nf-core:modulesfrom
erikrikarddaniel:add-resolvetaxonomy-fixtures

Conversation

@erikrikarddaniel

Copy link
Copy Markdown
Member

Description

Small hand-authored fixtures for the new custom/resolvetaxonomy module (nf-core/modules, PR to follow) -- a shared module that resolves a set of sequences' taxonomy either from an explicit tab-separated taxonomy file or, if omitted, from embedded GTDB-style taxonomy text in each FASTA header (>id taxonomy;string). It's a generalisation of nf-core/sativa's existing local resolvetaxonomy module, being adopted by nf-core/phyloplace as well.

Five small files under data/generic/fasta/ and data/generic/tax/, covering the module's three taxonomy sources:

  • resolvetaxonomy_embedded.fasta -- two records with embedded header taxonomy, no external file.
  • resolvetaxonomy_override.tax -- an explicit taxonomy file with different lineages than the embedded text above, to test that an explicit file wins (with a warning).
  • resolvetaxonomy_plain.fasta / resolvetaxonomy_plain.tax -- records with no embedded text, paired with a plain explicit taxonomy file (no warning expected), and reused on their own to test the "neither source available" path.
  • resolvetaxonomy_partial.fasta -- one record with embedded taxonomy, one without, to test the module's non-required mode (drops the record with no taxonomy, with a warning, instead of failing the whole run).

Generated by Claude

Small hand-authored FASTA/tax pairs covering the module's three taxonomy
sources (embedded header text, explicit file, neither) for both nf-core/sativa
and nf-core/phyloplace, which are adopting this as a shared module.

Generated by Claude

@piplus2 piplus2 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@erikrikarddaniel
erikrikarddaniel merged commit 95c4c18 into nf-core:modules Aug 26, 2026
2 checks passed
erikrikarddaniel added a commit to erikrikarddaniel/test-datasets that referenced this pull request Aug 29, 2026
The fasta/ and tax/ fixtures added for custom/resolvetaxonomy tests in nf-core#2239
were never added to the Data Description section.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UvGYU6kuXJeVv9ffdSzdzH
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.

2 participants