Skip to content

Restore JBrowse link in References table for ChIP-seq datasets - #223

Open
bgajria wants to merge 1 commit into
masterfrom
fix/chipseq-jbrowse-references-link
Open

Restore JBrowse link in References table for ChIP-seq datasets#223
bgajria wants to merge 1 commit into
masterfrom
fix/chipseq-jbrowse-references-link

Conversation

@bgajria

@bgajria bgajria commented Aug 19, 2026

Copy link
Copy Markdown
Member

Summary

  • ChIPSeq.java overrides the new DatasetInjector.getDefaultLinkCategory() hook (see companion EbrcModelCommon PR) to return CHIP Seq, wiring every ChIP-seq presenter that uses this injector (58 across all 8 sites — FungiDB, PiroplasmaDB, HostDB, TrichDB, PlasmoDB, ToxoDB, TriTrypDB, VectorBase) to the existing <link category="CHIP Seq"> template in Model/config/datasetLinks.xml.
  • This requires the companion EbrcModelCommon PR to actually take effect (the loader needs both the new hook and the load-time macro substitution it adds) — merge together.

Root cause

This mechanism worked in 2020 (ref 42010) via a type/subtype selector on the link template plus dedicated tuning-table substitution logic. A 2025 migration converted the whole datasetLinks.xml selector scheme to category-based matching, but nothing ever set the corresponding categoryOverride on any ChIP-seq presenter, so the category template has sat unused since — the "View/Download this Data Set in the Genome Browser" link silently disappeared from every ChIP-seq dataset's References table. Confirmed via full git history trace, not a guess.

Example: ncraOR74A_Ncrassa_Klocko_2023_chipSeq_RSRC (DS_5ff37d322c).

Known, accepted side effect

One dataset (tgonME49_Sullivan_m6A_WebService_RSRC, ToxoDB) already has its own hand-curated JBrowse-style link pointing at a different sibling track. After this fix it will show a second, auto-generated link pointing at its own track — not a literal duplicate, but a double entry. No other such case found across all 8 sites. Left as-is; flagging for a possible manual cleanup decision separately.

Test plan

  • bld ApiCommonModel/Model builds clean
  • Verify via DB + browser once the companion EbrcModelCommon PR is deployed and the DatasetPresenter tuning table is rebuilt on a dev instance

🤖 Generated with Claude Code

ChIPSeq.getDefaultLinkCategory now returns CHIP Seq, wiring it to the
datasetLinks.xml category link template of the same name. This
requires the companion EbrcModelCommon fix (getDefaultLinkCategory
hook plus load-time macro substitution in DatasetPresenterSetLoader)
to actually take effect and produce a working, fully-substituted URL.

Root cause: this mechanism worked in 2020 (ref 42010) via a
type/subtype selector on the link template plus dedicated tuning-table
substitution logic. A 2025 migration converted the whole
datasetLinks.xml selector scheme to category-based matching, but
nothing ever set the corresponding categoryOverride on any of the 58
ChIPSeq-injected presenters across all 8 sites, so the category
template has sat unused since. Fixes the missing View/Download this
Data Set in the Genome Browser link, e.g. on
ncraOR74A_Ncrassa_Klocko_2023_chipSeq_RSRC (DS_5ff37d322c).
@bgajria

bgajria commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

Companion PR (required together): VEuPathDB/EbrcModelCommon#134

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.

1 participant