Skip to content

Stabilize GTDB-Tk, HUMAnN, Kaiju, and MAPseq Data Manager identities - #8361

Open
mvdbeek wants to merge 1 commit into
galaxyproject:mainfrom
mvdbeek:stable-dm-ids-gtdb-humann
Open

mvdbeek wants to merge 1 commit into
galaxyproject:mainfrom
mvdbeek:stable-dm-ids-gtdb-humann

Conversation

@mvdbeek

@mvdbeek mvdbeek commented Aug 28, 2026

Copy link
Copy Markdown
Member

Galaxy workflows serialize Data Manager table selector values, so local installation dates make identical reference data incompatible across Galaxy instances. Runtime dates now remain only in human-readable names; workflow-facing values and derived paths use immutable source or content identity.

GTDB-Tk

Changed full and metadata database values and tests, and bumped the wrapper from 232+galaxy0 to 232+galaxy1. Values combine the database kind with the immutable GTDB release, distinguishing full and metadata data and every release. For release 202 on 2026-08-28, value changes from full_database_release_202_downloaded_2026-08-28 to full_database_release_202; name remains Full Database - release 202 (2026-08-28), and the managed path uses the stable value.

HUMAnN

Changed value generation, tests, and loc documentation, and bumped the wrapper from 3.9+galaxy0 to 3.9+galaxy1. The manager resolves the versioned artifact advertised by humann_databases --available and combines its complete basename with database and build; utility mappings also include the individual mapping filename. Upstream artifact versions are stable, and these namespaces prevent database, build, and mapping-file collisions. For DEMO ChocoPhlAn on 2026-08-28, value changes from chocophlan-DEMO-3.9-28082026 to chocophlan-DEMO-DEMO_chocophlan.v201901_v31; name remains Demo ChocoPhlAn for HUManN, dbkey remains 3.9, and the managed path uses the stable value. Tests retain the complete stable identity assertion uniref-DEMO_diamond-uniref90_DEMO_diamond_v201901b while removing the redundant DEMO_diamond substring assertion.

Kaiju

Render Data Manager JSON directly in a Cheetah configfile with no metadata-only Python helper or required_files entry, and bump the wrapper from 1.10.1+galaxy0 to 1.10.1+galaxy1. Dated prebuilt values retain their immutable upstream snapshot date and are checked against a deterministic whole-file JSON fixture; 2024-08-15_viruses remains unchanged. For mutable current builds, the runtime shell hashes database.fmi, names.dmp, and nodes.dmp in fixed filename/NUL/content/NUL order with sha256sum, then substitutes only the digest and download-date sentinels into the rendered JSON. Checksums never run during Cheetah rendering. For the regression content on 2025-04-14, value changes from 2025-04-14_viruses to viruses_sha256_575a726f33d7545789891f08ed770d17e472c2623dc0b9e6b171cd581374688e; name remains 2025-04-14 (viruses) viral genomes from NCBI RefSeq, and the managed path uses the digest value.

MAPseq

Changed value generation and tests, and bumped the wrapper from 1.1+galaxy4 to 1.1+galaxy5. Values combine the database type with the complete versioned source-archive basename, so source snapshots remain stable while the database-type namespace prevents collisions between MGnify pipeline versions and database classes. For MGnify v5 LSU on 2026-08-28, value changes from mgnify_v5_lsu_from_2026-08-28 to mgnify_v5_lsu_silva_lsu-20200130; name remains MGnify LSU (v5.0.7) - silva_lsu-20200130 downloaded at 2026-08-28, version remains 5.0, and the managed path uses the stable value. Tests retain the complete stable identity assertion mgnify_v5_lsu_silva_lsu-20200130 while removing the redundant mgnify_v5_lsu substring assertion.

Discussion: #8360

Proposed standard: galaxy-iuc/standards#93

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • Use of AI
    • The contribution is mostly AI generated
    • The contribution has been assisted by AI
  • License permits unrestricted use (educational + commercial)
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

There are two labels that allow to ignore specific (false positive) tool linter errors:

  • skip-version-check: Use it if only a subset of the tools has been updated in a suite.
  • skip-url-check: Use it if github CI sees 403 errors, but the URLs work.

To request a review once your PR is ready, comment "please review" on the PR. This will
automatically apply the ready-for-review label if the PR is not a draft, all review
threads are resolved, and all CI checks have passed.

@bernt-matthias

Copy link
Copy Markdown
Contributor

Hi @mvdbeek what do you think of #8851 ? If you like it: should I open a PR against your branch / you drop the gtdb part here and we merge?

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.

Can you exclude changes to the gtdbtk DM? xref #8851

#if $type.date == "today"
#set date = datetime.datetime.utcnow().strftime("%Y-%m-%d")
#import json
#set $database_names = {"refseq": "(refseq) bacterial, archaeal and viral genomes in the NCBI RefSeq database with assembly status Complete", "refseq_nr": "(refseq_nr) proteins from bacteria, Archaea, viruses, fungi and microbial eukaryotes from the NCBI RefSeq non-redundant proteins collection", "refseq_ref": "(refseq_ref) proteins from bacteria, Archaea from the NCBI RefSeq representative assemblies + viral proteins from NCBI RefSeq", "progenomes": "(progenomes) proteins in the set of representative genomes from the proGenomes v3 database and viral proteins from NCBI RefSeq", "nr": "(nr) NCBI BLAST non-redundant protein database 'nr', only Archaea, bacteria, and viruses", "nr_euk": "(nr_euk) nr and additionally including fungi and microbial eukaryotes", "fungi": "(fungi) all fungi genomes from NCBI RefSeq (any assembly status)", "viruses": "(viruses) viral genomes from NCBI RefSeq", "plasmids": "(plasmids) plasmid genomes from NCBI RefSeq", "rvdb": "(rvdb) viral proteins from RVDB-prot"}

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.

Could you format this more human readable?

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.

Would you mind to add the new reference data from 2026 listed here: https://bioinformatics-centre.github.io/kaiju/downloads.html? But we can also do this separately.

"mapseq_db": {
"value": db_value,
"name": f"{db_name} downloaded at {time}",
"name": f"{db_name} downloaded at {download_date}",

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.

Maybe we can drop the downloaded at ...?

Galaxy workflows serialize Data Manager table selector values, so local installation dates make identical reference data incompatible across Galaxy instances. Runtime dates now remain only in human-readable names; workflow-facing values and derived paths use immutable source or content identity.

HUMAnN

Changed value generation, tests, and loc documentation, and bumped the wrapper from 3.9+galaxy0 to 3.9+galaxy1. The manager resolves the versioned artifact advertised by humann_databases --available and combines its complete basename with database and build; utility mappings also include the individual mapping filename. Upstream artifact versions are stable, and these namespaces prevent database, build, and mapping-file collisions. For DEMO ChocoPhlAn on 2026-08-28, value changes from chocophlan-DEMO-3.9-28082026 to chocophlan-DEMO-DEMO_chocophlan.v201901_v31; name remains Demo ChocoPhlAn for HUManN, dbkey remains 3.9, and the managed path uses the stable value. Tests retain the complete stable identity assertion uniref-DEMO_diamond-uniref90_DEMO_diamond_v201901b while removing the redundant DEMO_diamond substring assertion.

Kaiju

Render Data Manager JSON directly in a Cheetah configfile with no metadata-only Python helper or required_files entry, and bump the wrapper from 1.10.1+galaxy0 to 1.10.1+galaxy1. Dated prebuilt values retain their immutable upstream snapshot date and are checked against a deterministic whole-file JSON fixture; 2024-08-15_viruses remains unchanged. For mutable current builds, the runtime shell hashes database.fmi, names.dmp, and nodes.dmp in fixed filename/NUL/content/NUL order with sha256sum, then substitutes only the digest and download-date sentinels into the rendered JSON. Explicit loop command separators preserve that byte stream when Galaxy flattens command whitespace. Checksums never run during Cheetah rendering, the download date uses UTC as before, and the current-build test asserts that neither sentinel survives substitution. The rvdb display name also fixes a (tvdb) typo. For the regression content on 2025-04-14, value changes from 2025-04-14_viruses to viruses_sha256_575a726f33d7545789891f08ed770d17e472c2623dc0b9e6b171cd581374688e; name remains 2025-04-14 (viruses) viral genomes from NCBI RefSeq, and the managed path uses the digest value.

MAPseq

Changed value generation and tests, and bumped the wrapper from 1.1+galaxy4 to 1.1+galaxy5. Values combine the database type with the complete versioned source-archive basename, so source snapshots remain stable while the database-type namespace prevents collisions between MGnify pipeline versions and database classes. For MGnify v5 LSU on 2026-08-28, value changes from mgnify_v5_lsu_from_2026-08-28 to mgnify_v5_lsu_silva_lsu-20200130; name remains MGnify LSU (v5.0.7) - silva_lsu-20200130 downloaded at 2026-08-28, version remains 5.0, and the managed path uses the stable value. Tests retain the complete stable identity assertion mgnify_v5_lsu_silva_lsu-20200130 while removing the redundant mgnify_v5_lsu substring assertion.

Discussion: galaxyproject#8360

Proposed standard: galaxy-iuc/standards#93
@mvdbeek
mvdbeek force-pushed the stable-dm-ids-gtdb-humann branch from f1a2b9b to 557fa2c Compare November 6, 2026 15:55
@bernt-matthias

Copy link
Copy Markdown
Contributor

I took the humann part and reused it here: #9094

bernt-matthias added a commit to bernt-matthias/tools-iuc that referenced this pull request Nov 27, 2026
…names

Galaxy workflows serialize data table selector values, so a value built
from `date.today()` makes identical reference data incompatible across
Galaxy instances and non-reproducible across two installs on the same
instance (galaxyproject#5681). The three HUMAnN tables are affected.

HUMAnN advertises its reference bundles by artifact name (queried via
`humann_databases --available`), e.g. `full_chocophlan.v201901_v31`. That
name changes when the data changes and is identical everywhere, so use it
as the identity:

    value = "<database>-<build>-<source id>"
    name  = "<label> (<source id>)"
    dbkey = the HUMAnN version the entry was installed for (provenance)

The managed path is derived from `value` (data_manager_conf.xml), so the
same bundle now lands on the same path on every server instead of a
dated one. `name` carries the artifact name because the labels alone are
not unique across data generations (HUMAnN 3.0.x shipped
`chocophlan.v296_201901b`, 3.1.1-3.9 shipped `v201901_v31`, a future
HUMAnN 4 will ship `v4_alpha`), and it is what the tool form shows.

Also pass the download command as an argument list instead of a shell
string, and drop a stray `args.` from `download_humann_db()` (it made the
function depend on the module globals).

Based on the humann part of galaxyproject#8361 only (the MetaPhlAn data manager changes
in that PR are not included).

Co-authored-by: Matthias Bernt <m.bernt@ufz.de>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage/Discuss

Development

Successfully merging this pull request may close these issues.

2 participants