Skip to content

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

Open
mvdbeek wants to merge 382 commits into
mainfrom
stable-dm-ids-gtdb-humann
Open

mvdbeek wants to merge 382 commits into
mainfrom
stable-dm-ids-gtdb-humann

Conversation

@mvdbeek

@mvdbeek mvdbeek commented Aug 30, 2026

Copy link
Copy Markdown
Owner

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 (232+galaxy0 → 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, the value changes from full_database_release_202_downloaded_2026-08-28 to full_database_release_202; the name remains Full Database - release 202 (2026-08-28), and the managed path uses the stable value.

HUMAnN (3.9+galaxy0 → 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, the value changes from chocophlan-DEMO-3.9-28082026 to chocophlan-DEMO-DEMO_chocophlan.v201901_v31; the name remains Demo ChocoPhlAn for HUManN, dbkey remains 3.9, and the managed path uses the stable value. The download call also moves from a shell=True string to an argv list.

Kaiju (1.10.1+galaxy0 → 1.10.1+galaxy1)

Data Manager JSON is rendered directly in a Cheetah configfile, with no metadata-only Python helper or required_files entry. Dated prebuilt values retain their immutable upstream snapshot date and are checked against a deterministic whole-file JSON fixture; 2024-08-15_viruses is 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, the value changes from 2025-04-14_viruses to viruses_sha256_575a726f33d7545789891f08ed770d17e472c2623dc0b9e6b171cd581374688e; the name remains 2025-04-14 (viruses) viral genomes from NCBI RefSeq, and the managed path uses the digest value.

MAPseq (1.1+galaxy4 → 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, the value changes from mgnify_v5_lsu_from_2026-08-28 to mgnify_v5_lsu_silva_lsu-20200130; the name remains MGnify LSU (v5.0.7) - silva_lsu-20200130 downloaded at 2026-08-28, the version remains 5.0, and the managed path uses the stable value.


Discussion: galaxyproject#8360

Proposed standard: galaxy-iuc/standards#93

This is a fork-side PR against mvdbeek:main for CI validation; the upstream PR is galaxyproject#8361.

PovilasMat and others added 30 commits October 21, 2026 19:32
* Updating tools/prokka from version 1.14.6 to 1.15.6

* Regenerate Prokka test outputs

---------

Co-authored-by: planemo-autoupdate <planemo-autoupdate@users.noreply.github.com>
- search: bound seed-anchor and alignment-result buffers via
  --max-seed-memory (3/5 of job RAM) and --max-align-result-memory
  (1/5), leaving ~20% headroom for index/workspace/non-heap overhead;
  spill files go to a job-local TMPDIR subdir
- search: add compress_output option using --force-gzip-output
  (gzip pipe after multi-index merge), output switches to gz datatype
- search: pass -n/--top-n-genomes to merge-search-results so the
  merged output honors the requested cap across indexes
- index: --max-genome default 15Mb -> 20Mb (new upstream default);
  add --seed-index2 and --seed-index2-threshold options
- tests: relax index assertions for v0.10.0 (thread-dependent seed
  chunking, minor-version bump); add gzip output test
* getorganelle: fix linter errors

* Remove python template version
* chira: fix linter errors

* bump
* vcf2maf: fix linter errors

* Update profile version in vcf2maf.xml
* read_it_and_keep: fix linter errors

* bump
* kc-align: fix linter errors

* Update VERSION_SUFFIX token to version 2
* Fix for log filesize limit

* Pin python 3.13
afgane and others added 29 commits November 3, 2026 07:57
…t#8547)

* Declare StringTie test reference selections explicitly

The three cached-reference tests selected guide_gff_select=cached but not
ref_builtin, so they relied on whichever gene_sets row a server listed
first, and clients could not see the gene_sets table dependency. Select
the bundled fixture by a unique key, stringtie_test_hg38, and rename the
test table row to match.

Bump the wrapper revision to 3.0.3+galaxy3.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Keep the existing hg38 StringTie test fixture key

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* added orthologer tool

* updated category in shed

* Update tools/orthologer/ODB-mapper.xml

Co-authored-by: Björn Grüning <bjoern@gruenings.eu>

* Update tools/orthologer/ODB-mapper.xml

Co-authored-by: Björn Grüning <bjoern@gruenings.eu>

* Update tools/orthologer/ODB-mapper.xml

Co-authored-by: Björn Grüning <bjoern@gruenings.eu>

* updated help

* several updates for pull request

* Update tools/orthologer/ODB-mapper.xml

Co-authored-by: Saim Momin <64724322+SaimMomin12@users.noreply.github.com>

* Update tools/orthologer/ODB-mapper.xml

Co-authored-by: Saim Momin <64724322+SaimMomin12@users.noreply.github.com>

* Update tools/orthologer/ODB-mapper.xml

Co-authored-by: Saim Momin <64724322+SaimMomin12@users.noreply.github.com>

* Update tools/orthologer/macros.xml

Co-authored-by: Saim Momin <64724322+SaimMomin12@users.noreply.github.com>

* Update tools/orthologer/macros.xml

Co-authored-by: Saim Momin <64724322+SaimMomin12@users.noreply.github.com>

* fixes in ODB-mapper

* merge

* Update tools/orthologer/.shed.yml

Co-authored-by: Saim Momin <64724322+SaimMomin12@users.noreply.github.com>

* updated test

* added missing test data + cleanup

* Update tools/orthologer/ODB-mapper.xml

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

* new tests, less output data

* added orthologer.xml

* moved orthologer.xml to pending

* removed pending directory

* updated tool id

* added orthologerorthologer.xmlxml

* fixed bad URL

* update version 3.9.1

* fixes wrt latest comments

* updated refortho.og for test

* updated orthologer.xml test

* orthologer: added caching of OrthoDB and BUSCO data

* added busco loc

* fixes regarding comments

* fixed ODB-mapper and orthologer tests

* fixed tests for orthologer and ODB-mapper

* planemo format orthologer XML files

* reinserted missing lines in orthologer.xml

* orthologer:reset build index

* fixes

* data cache

* updated tests to use assert_contents functions

---------

Co-authored-by: Björn Grüning <bjoern@gruenings.eu>
Co-authored-by: Saim Momin <64724322+SaimMomin12@users.noreply.github.com>
Co-authored-by: M Bernt <m.bernt@ufz.de>
Co-authored-by: Fredrik Tegenfeldt <tegenfeldt@localhost.localdomain>
Co-authored-by: Fredrik Tegenfeldt <tegenfeldt@unige.ch>
* Updating tools/fastk from version 1.1.0 to 1.2

* Update fastk to 1.2

---------

Co-authored-by: planemo-autoupdate <planemo-autoupdate@users.noreply.github.com>
* feat: add trace50 tool

* trace50: fix Zenodo DOI citation

* trace50: address review — data_column params, simplified bools/guards

* trace50: drop suite_hyphaeon membership — standalone repo

* trace50: name the shed repo now that suite membership is dropped
…the data table value by the content checksum (galaxyproject#8851)

* GTDB-Tk DM: verify downloads against GTDB MD5 sums, drop dates from value/name

* No longer append the download date to the value and the name of the data
  table entries -- the entry is now identified by the release only, e.g.
  `full_database_release_232` / `Full Database - release 232`.
* GTDB publishes MD5 sums in the root directory of each release
  (`MD5SUM.txt`, `MD5SUM` for release 202). These are now retrieved, the
  checksum file is searched up to 5 directory levels above the downloaded
  file, and the download is verified while streaming. On a mismatch the
  partial file is removed and the data manager fails. Files without a
  published checksum (release 214 full DB, mockup DB) are still installed,
  a warning is logged.
* The verified checksums (first 16 hex digits) are appended to the value,
  e.g. `full_database_release_232_md5_25a59e0352b1fd15`; for the metadata
  table the checksums of the archaea and bacteria file are joined with `-`.
  Since the value is also used as directory name, only alphanumerics, `_`
  and `-` are used.
* Fix the "mocked DB (232)" select option, which raised a KeyError because
  the option value `mocked_232` did not match the key of the URL table.
* Close the response in is_urlfile().

* GTDB-Tk DM: report whether a remote MD5 sum was used, assert it in the tests

For every downloaded file the data manager now prints on stdout either

  Remote MD5 sum used for <file>: <md5> (from <checksum url>)

or

  No remote MD5 sum available for <file>: download not verified

which makes it possible to check in the tool tests that the checksums of the
data source were really used (and that this is reported correctly for files
without a published checksum). expected_md5() returns the URL of the checksum
file for this purpose.

* GTDB-Tk DM: add a test for the full DB download that uses a remote MD5 sum

The test database used by --test is not covered by any checksum file, hence the
full database branch (download -> verify -> extract -> data table entry) could
only be tested without checksum verification.

Zenodo record 23918153 now publishes the same miniature database together with
a MD5SUM.txt (md5 498d1d4516995bffb2283aa2ad83e361), which the checksum lookup
finds in the directory of the download URL. In test mode release 232 therefore
uses this deposit and all other releases keep the deposit without checksum
file, so the two test cases now cover

* release 202: no remote MD5 sum available .. download not verified
               value full_database_release_202
* release 232: Remote MD5 sum used for release220-test.tar.gz: <md5> (from
               https://zenodo.org/records/23918153/files/MD5SUM.txt)
               value full_database_release_232_md5_498d1d4516995bff

* do not encode the checksums in the data table value

The value is used as directory name and as the identifier that tool filters
match on, so adding the checksum there made the entries harder to read and to
filter. The download is still verified against the MD5 sums published by GTDB
and the outcome is reported in the job log.

* fix E203 (whitespace before ':') in a slice

* use the full revision of release 232 as key, value and name

GTDB publishes the files of release 232 in the directory 232.0. Use this revision
as key of the urls table, such that value and name of the data table entry show
which revision was installed while the version drops the minor version (232) --
the GTDB-Tk tools filter on the plain release and workflows referencing a
database keep working.

---------

Co-authored-by: Matthias Bernt <bernt-matthias@users.noreply.github.com>
* feat: add rhizaeon tool

* chore: drop PA-FF branding from rhizaeon shed description

* rhizaeon: use JSON property asserts with exact values in tests

* rhizaeon: cite bioRxiv preprint

* rhizaeon: drop suite_hyphaeon membership — standalone repo

* rhizaeon: name the shed repo now that suite membership is dropped
* Add boolean parameter tools for workflow conditions

Three expression tools that produce boolean parameters for conditional
(when) workflow steps:

- invert_boolean_param: NOT
- combine_boolean_params: AND, OR, NAND, NOR, XOR, exactly one, all equal
- compare_param_value: compare text/integer/float values to get a boolean

Unset (null) inputs are handled explicitly (fail by default, or treat as
false/true), and the tools never output null, since Galaxy fails an
invocation whose when value is not a boolean.

* boolean_params: address review

- compare_param_value: add 'does not start with' and 'does not end with'
- compare_param_value: declare the text comparison value optional, so an
  unset connected value reaches the expression as null and fails instead
  of becoming "" (inferred-optional text params default to "" below
  profile 23.0) and matching everything
- invert/combine: plain boolean tests instead of comparing to true
* start sccellfie

* init

* update macros

* minor update

* communication is working

* minor update on communication

* redesign the tool

* fix conditional name

* first test pass

* pipeline passed

* analysis passed

* plot is almost ready

* almost finished

* ready for PR

* address reviews by @SaimMomin12

* update dependencies
* Updating tools/spapros from version 0.1.5 to 0.1.6

* fix tests

* spapros: address linter findings

Test cases restructured for current Galaxy (nested conditionals, sections
and repeats, unique output names, assertions moved to <test> level),
redundant input attributes and dead filters removed, obsolete .lint_skip
dropped; tool version and profile bumped where the wrapper changed.

* fix test and add assertions

* fix assets and remove output tables

* remove non-deterministic asserts

* fix typo

* use min for image dimension assertions

---------

Co-authored-by: planemo-autoupdate <planemo-autoupdate@users.noreply.github.com>
Co-authored-by: Matthias Bernt <m.bernt@ufz.de>
* Updating tools/gappa from version 0.8.0 to 0.9.0

* Update gappa to 0.9.0

---------

Co-authored-by: planemo-autoupdate <planemo-autoupdate@users.noreply.github.com>
…me compatible 26.2 profile (galaxyproject#8857)

* enable multiple soloFeatures at the same time

* fix tests asserts

* alternative option to be compatible with 26.2 profile

* add comments in the wrapper to explain choices
* fastx_toolkit: fix linter errors

- use option values instead of labels in test parameters
- nest conditional test parameters in their conditionals
- fastx_clipper still uses the deprecated from_file options, keep its skip

* fastx_toolkit: run planemo format
…t#8701)

* flash: fix linter errors and remove obsolete .lint_skip

* flash: fix format_source reference for paired collection inputs

The element index in a format_source collection reference is parsed as
JSON, so 'layout|reads[forward]' raised a JSONDecodeError and every test
using a paired collection failed with:
  Error executing tool with id 'flash': Expecting value: line 1 column 1

Quote the identifier (Galaxy rewrites single quotes to double quotes),
i.e. layout|reads['forward'] / layout|reads['reverse'].

* flash: only emit the log output when 'Save FLASH log file' is on

The log output was filtered on 'raw_log', a parameter that does not
exist in the tool. Galaxy swallows exceptions raised while evaluating an
output filter, so the output was created unconditionally - resulting in
an empty 'log' dataset for every run with logging disabled (the default),
because the command only redirects to $log when save_log is set.

Filter on save_log instead and expect 4 outputs in the two tests that do
not enable logging.

* flash: use @TOOL_VERSION@ and @VERSION_SUFFIX@ tokens

Replace the hardcoded '.5' in the version attribute with a
@VERSION_SUFFIX@ token and rename @Version@ to the conventional
@TOOL_VERSION@. The PEP 440 '+galaxy' form is intentionally not used
here: 1.2.11+galaxy5 sorts below the already released 1.2.11.4, so the
dotted @TOOL_VERSION@.@VERSION_SUFFIX@ scheme is kept (renders 1.2.11.5,
unchanged).

* Add profile token to flash.xml
…galaxyproject#8695)

* genehunter_modscore: fix linter errors and remove obsolete .lint_skip

* genehunter_modscore: make version_command portable (no grep -P)

With profile 25.1 strict_shell defaults to True (profile >= 20.09), so
Galaxy prepends `set -e` to the tool command script, which starts with
the version_command. The version_command used `grep -oP`, but the
biocontainers mulled image is BusyBox based and its grep has no -P, so
the command failed, set -e aborted the script before ghm was run, and
all four tests failed with an empty stdout/stderr and exit code 1
(only COMMAND_VERSION was written, containing the busybox usage error).

Use POSIX sed instead, which works in BusyBox and with GNU tooling.

---------

Co-authored-by: Matthias Bernt <bernt-matthias@users.noreply.github.com>
…oject#8687)

* gwastools: fix linter errors and remove obsolete .lint_skip

* add descriptions

* fix hsed yaml
* te_finder: normalize line endings to LF

TEfinder.xml was stored with CRLF line endings (118 of 118 lines), which
makes every later change show up as trailing whitespace in `git diff
--check` and mixes two conventions in the same directory (macros.xml is LF).

Convert the whole file to LF and drop the now-visible trailing whitespace
(9 lines in the <command> CDATA, 2 blank lines in the <help> RST text).
Content is otherwise unchanged: `git show --ignore-all-space` on this
commit is empty.

* te_finder: fix linter errors
* busco DM do not use space in value and path

* fix test

---------

Co-authored-by: Björn Grüning <bjoern@gruenings.eu>
* Updating tools/chopper from version 0.14.1 to 0.15.0

* Update chopper to 0.15.0

* Amend reviwers comments

* Fix failing test

---------

Co-authored-by: planemo-autoupdate <planemo-autoupdate@users.noreply.github.com>
* Uupdate cosg to 1.2.1

* update profile to 25.1
* Updating tools/anndata2ri from version 1.3.2 to 2.0.1

* fix uns writing

* update profile to 25.1

---------

Co-authored-by: planemo-autoupdate <planemo-autoupdate@users.noreply.github.com>
…xyproject#8870)

* Update VERSION_SUFFIX token and add anndata write logic

* Fix casing in tool name for liana_methods
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
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.