You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the query review screen, we'd like to have a heatmap showing the frequency of each mutation for each disease type. You can see what these heatmaps will look like in this notebook.
@bdolly so you can get started implementing this, you will need the following two things:
the vega-lite specification here. You will override the data attribute for the query specific data.
the input data for vega-lite. You can see an example here. This data should must be passed to the vega-lite spec. Ultimately the frontend will compute these mutation frequencies based on the selected mutations and disease types.
This example here corresponds to many genes and disease types. I'd expect most heatmaps to be smaller (have fewer rows & columns).
The text was updated successfully, but these errors were encountered:
where is this data getting generated from? Is there a core-services endpoint that will deliver that to the front-end?
In the example above, the notebook generated that JSON. However, the goal is to generate this data in the frontend (or if neccessary via the backend). The idea is that the vega-lite specification will stay the same, but the frontend will update the data whenever the user selection changes.
I believe the frontend has all the necessary info to calculate these frequencies. For example:
To calculate the above value, the frontend would have to know all the sample_ids with adrenocortical cancer and all the sample_ids with AJUBA mutations. Then frequency equals the number of sample_ids with adrenocortical cancer and AJUBA mutation divided by the number of sample_ids with adrenocortical cancer.
@bdolly what is your opinion on whether this calculation should be done in the front or backend?
For the query review screen, we'd like to have a heatmap showing the frequency of each mutation for each disease type. You can see what these heatmaps will look like in this notebook.
@bdolly so you can get started implementing this, you will need the following two things:
data
attribute for the query specific data.This example here corresponds to many genes and disease types. I'd expect most heatmaps to be smaller (have fewer rows & columns).
The text was updated successfully, but these errors were encountered: