Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mutational Signatures Improvements #10675

Closed
1 task done
inodb opened this issue Feb 28, 2024 · 9 comments · Fixed by cBioPortal/cbioportal-frontend#4916
Closed
1 task done

Mutational Signatures Improvements #10675

inodb opened this issue Feb 28, 2024 · 9 comments · Fixed by cBioPortal/cbioportal-frontend#4916
Assignees

Comments

@inodb
Copy link
Member

inodb commented Feb 28, 2024

  • Lot of whitespace initially between chart and interactable component. Maybe we can have some expand-like animation of the bottom chart, so the table controls are more visible on page load?
@tmazor
Copy link
Contributor

tmazor commented Mar 7, 2024

It sounds like we should be testing both data and the feature now? Below are some comments which I think mostly relate to the data:

  1. What's the difference between contribution and counts profiles? And why do they have different sample counts (eg contribution SBS 2703 samples vs count SBS 2673 samples?
image
  1. Mutation counts seem inconsistent. The summary tab for this samples say 219 mutations. The count above the plot says 259 SBS. And the tooltip says 3/50 mutations. I could understand how the summary tab might have a higher mutation count since it combines SBS, DBS, ID, but that's not what's happening here. These numbers just don't make sense to me.
image https://private.cbioportal.mskcc.org/patient/mutationalSignatures?studyId=pancan_pcawg_2020&caseId=DO46424

Another example with 6 mutations in Summary tab, SBS:11 above the plot, and a tooltip showing 50 mutations:
image
https://private.cbioportal.mskcc.org/patient/mutationalSignatures?studyId=pancan_pcawg_2020&caseId=DO46745

  1. If sample plot is showing count (not %), then the y-axis label for the Cosmic chart is slightly cut off:
image
  1. I agree with Ino's comment above - I'm testing on a 13" laptop screen and it would be awesome if I could see the table on page load, rather than seeing lots of white space and having to scroll down to see the table.

  2. In study view, if I'm adding a chart there's a nice description in the charts menu to say eg SBS2 (APOBEC)

image

But once the chart adds, there's no text to remind you which signature this is:
image

@MatthijsPon
Copy link
Contributor

MatthijsPon commented Mar 7, 2024

Hi @tmazor I can give some more info on two of the points:
1: We calculated the counts ourselves from the mutations, so there are as many samples with counts as there are with mutations. The actual mutational signatures scores come from literature. It definitely would be preferable if the counts could also be obtained from literature for other studies. I was not able to find them for pcawg

5: This is due to mutational signatures using the generic assay datatype, the description is always visible when selecting charts. I guess it would be possible to use another generic_entity_meta_properties field (@inodb)? Though it would go a bit against the structure of the generic assay datatype

@TJMKuijpers
Copy link

  1. We could make the margin dynamic to add a bit of white space to the plot (when % is selected)
  2. We can hide the chart element unless a signature is clicked. By hiding the element, the white space between the top of the figure and the table should be decreased. I believe we show text underneath the plot saying "Select a signature from the table to show the reference plot". Only have to make sure that users know that they can click the table to show the reference plot.
  3. This is probably how the charts in study view are implemented. We did not touch upon it but maybe it is possible to conditionally add information?

@inodb
Copy link
Member Author

inodb commented Apr 3, 2024

@MatthijsPon

For 2: Could this be because the SBS count includes synonymous and noncoding variants? I.e. it is not a count of the mutations imported into cBioPortal but rather a total count of what's in the MAF?

@MatthijsPon
Copy link
Contributor

MatthijsPon commented Apr 3, 2024

@inodb Yes, that explains the difference between 259 and 219. I used the whole MAF without further filtering with SigProfilerMatrixGenerator to get the counts. It might be good to add a disclaimer of sorts to the total counts? The 9/50 I cannot explain, I think that is caused by the frontend. @TJMKuijpers Do you know?

@tmazor
Copy link
Contributor

tmazor commented Apr 18, 2024

It seems that the tooltip is showing the percentage as a reduced fraction (eg 4% = 1/25 or 1% = 1/100) rather than the actual number of mutations. It should instead show the actual number of mutations.

For the difference in number of mutations between tabs, we can update the text here to note that other types of mutations are included, eg:
image
should be:
Single Base Substitutions: 259 (i) where the (i) has a tooltip saying: Mutation count may include silent, noncoding and other types of mutations that may not be shown elsewhere in cBioPortal.

Also please don't forget about:
Lot of whitespace initially between chart and interactable component. Maybe we can have some expand-like animation of the bottom chart, so the table controls are more visible on page load?

@tmazor
Copy link
Contributor

tmazor commented Apr 18, 2024

New comment:
image

Remove the tooltip

Change 'Variant Class' to 'Mutational Signature Type'

Update the data so the text in the dropbox isn't dependent on the tooltip:
eg Mutations Signatures SBS --> Single Base Substitutions (SBS), COSMIC

@tmazor
Copy link
Contributor

tmazor commented Apr 18, 2024

Add the option to set the y-axis - default to 100% still good, but let the user change that if all percentages are small. Change axis on both charts so they always have the same axis scale

Ideally: if data extends above the new y-axis max, do like lollipop plot w/ >=xxx
image

@inodb
Copy link
Member Author

inodb commented May 23, 2024

@alisman offered to help with slider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment