Skip to content

Conversation

@DavidZ79
Copy link

@DavidZ79 DavidZ79 commented Jul 6, 2025

Fix frontend ticket #11592

Note: left original logic as fallback in DataUtils.ts

{28C004B7-0F24-4A4F-B026-C69B849CBDB2}

Copy link
Member

@inodb inodb left a comment

Choose a reason for hiding this comment

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

Thanks! This def looks better!

Some comment in the description as well how the aggregation logic would be good. Also ideally both tracks should use the same functions for the aggregation logic, I didn't confirm in code if that's how it works

Note that selecting the patient level aggregation logic for RNASeq is a bit more complex than for mutation data (union), but this seems reasonable (if an expression query with threshold exists -> pick thresholded samples absolute max value)

query
)!.data!;

// get Z-score threshold from the store (default to 2 if not present)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you see if there is a constand somewhere for default 2?

default:
bestValue = _.maxBy(dataWithValue, (d: HeatmapCaseDatum) =>
Math.abs(d.value)

Copy link
Collaborator

Choose a reason for hiding this comment

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

would be good to have a unit test for this. let me know if you need help setting that up

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