Restore JBrowse link in References table for ChIP-seq datasets - #223
Open
bgajria wants to merge 1 commit into
Open
Restore JBrowse link in References table for ChIP-seq datasets#223bgajria wants to merge 1 commit into
bgajria wants to merge 1 commit into
Conversation
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).
Member
Author
|
Companion PR (required together): VEuPathDB/EbrcModelCommon#134 |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ChIPSeq.javaoverrides the newDatasetInjector.getDefaultLinkCategory()hook (see companion EbrcModelCommon PR) to returnCHIP 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 inModel/config/datasetLinks.xml.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.xmlselector scheme to category-based matching, but nothing ever set the correspondingcategoryOverrideon 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/Modelbuilds cleanDatasetPresentertuning table is rebuilt on a dev instance🤖 Generated with Claude Code