Skip to content

Conversation

@bencap
Copy link
Collaborator

@bencap bencap commented Oct 7, 2025

UI Support for VariantEffect/mavedb-api#532

This pull request introduces improvements to how clinical performance and publication source information are displayed and handled in the assay fact sheet and related components. The main changes include more robust primary range selection, clearer UI indicators for non-investigator-provided data, and centralizing source-matching logic.

Clinical Performance & Range Handling:

  • Added support for multiple named calibration ranges (zeibergCalibration, scottCalibration, fayerCalibration) in ScoreSetRanges, and a primary flag to indicate the main range for display and logic purposes.
  • Updated logic in AssayFactSheet.vue and ScoreSetHistogram.vue to consistently select and display the primary score range, falling back to investigatorProvided if necessary. [1] [2]

UI/UX Improvements:

  • The clinical performance section now displays a superscript * and a detailed note with source links when OddsPath data comes from non-primary sources, improving transparency for users. See image below:
image

Source Matching Refactor:

  • Centralized and documented the matchSources utility in src/lib/score-sets.ts, ensuring consistent matching of publication identifiers across components.
  • Refactored RangeTable.vue and AssayFactSheet.vue to use the new matchSources function for both threshold and OddsPath sources, removing duplicate logic. [1] [2] [3]

Type and Prop Improvements:

  • Improved typing for publication identifiers and component props, ensuring stricter and more accurate type checking for sources passed to components. [1] [2] [3]

Histogram and Range Selection Logic:

  • Updated ScoreSetHistogram.vue to better handle range selection and classification, including defaulting to the primary range and making range key logic more robust. [1] [2] [3] [4] [5]

@bencap bencap requested review from jstone-dev and sallybg October 7, 2025 05:29
@bencap bencap linked an issue Oct 7, 2025 that may be closed by this pull request
return this.primaryScoreRange === this.scoreSet.scoreRanges?.investigatorProvided
},
oddsPathSources() {
console.log(this.primaryScoreRange)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
console.log(this.primaryScoreRange)

Base automatically changed from release-2025.4.3 to main October 13, 2025 17:50
@bencap bencap changed the base branch from main to release-2025.4.4 October 13, 2025 17:53
Base automatically changed from release-2025.4.4 to main October 13, 2025 19:40
@bencap bencap changed the base branch from main to release-2025.4.5 October 13, 2025 19:54
@bencap
Copy link
Collaborator Author

bencap commented Oct 23, 2025

Closing in favor of #529.

@bencap bencap closed this Oct 23, 2025
@bencap bencap deleted the feature/bencap/500/odds-path-prioritization branch October 23, 2025 21:12
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.

AssayFact Sheet OddsPaths Prioritization

3 participants