Skip to content

Add collapse_collection tool with polished UI and help#7810

Open
nekrut wants to merge 7 commits intogalaxyproject:mainfrom
nekrut:collapse_collection
Open

Add collapse_collection tool with polished UI and help#7810
nekrut wants to merge 7 commits intogalaxyproject:mainfrom
nekrut:collapse_collection

Conversation

@nekrut
Copy link
Copy Markdown
Contributor

@nekrut nekrut commented Mar 22, 2026

This is one of the foundational collection tools. It lived in https://github.com/Takadonet but should be brought into iuc. This PR does that and makes UI much less confusing.

Summary

  • Imported collapse_collection tool from phac-nml/galaxy_tools
  • Renamed merge.xml to collapse_collection.xml for consistency with tool id
  • Rewrote help section with structured Description/Examples format following Galaxy collection operations conventions
  • Added inline SVG diagram (via macros.xml token) illustrating header merging with dataset name prepending
  • Improved input labels and help attributes for clarity
  • All 3 existing tests pass, planemo lint clean (pre-existing warnings only)

Test plan

  • planemo l — lint passes (remaining warnings are pre-existing: boolean conditional, no citations)
  • planemo t — all 3 tests pass
  • Verify help rendering in Galaxy UI

🤖 Generated with Claude Code

nekrut and others added 2 commits March 22, 2026 13:12
Imported from phac-nml/galaxy_tools, renamed merge.xml to
collapse_collection.xml. Rewrote help with structured
Synopsis/Description/Examples format. Added inline SVG diagram
via macros.xml. Improved input labels and help attributes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nekrut nekrut requested review from SaimMomin12 and bgruening March 22, 2026 17:17
Comment thread tools/collapse_collection/.shed.yml Outdated
Comment thread tools/collapse_collection/collapse_collection.xml Outdated
Comment thread tools/collapse_collection/collapse_collection.xml Outdated
Comment thread tools/collapse_collection/collapse_collection.xml Outdated
Comment thread tools/collapse_collection/collapse_collection.xml Outdated
Comment thread tools/collapse_collection/macros.xml Outdated
nekrut and others added 3 commits March 22, 2026 15:22
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace raw HTML SVG with PNG via $PATH_TO_IMAGES
- Ship SVG source in static/images/
- Remove display="checkboxes" from one_header
- Clean up output tag (self-closing)
- Add citation for phac-nml/galaxy_tools
- .shed.yml: add long_description, remote_repository_url, homepage_url

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@bernt-matthias bernt-matthias left a comment

Choose a reason for hiding this comment

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

Comment thread tools/collapse_collection/.shed.yml Outdated
nekrut and others added 2 commits March 22, 2026 15:49
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
preserving collection order. Supports header deduplication and dataset name
prepending in several placement modes.
name: collapse_collections
owner: iuc
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.

Mu suggestion would be

Suggested change
owner: iuc
owner: nml

otherwise there will be two collapse_collections tools in the future. But this will only work if nml grants write access to the toolshed repo.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@nekrut we need to solve this. We should not break the tool lineage.

@nekrut nekrut requested a review from bgruening March 25, 2026 01:41
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.

3 participants