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

Option to use cancer genes to filter genes on study view #5716

Closed
jjgao opened this issue Feb 8, 2019 · 83 comments · Fixed by cBioPortal/cbioportal-frontend#2109
Closed

Comments

@jjgao
Copy link
Member

jjgao commented Feb 8, 2019

For both Mutated Genes and CNA Genes table, add a toggle option to show only Cancer Genes (the OncoKB list), on by default.

@zhx828 maybe do some mockup first.

@jjgao
Copy link
Member Author

jjgao commented Mar 2, 2019

@zhx828 could you prioritize this one? Maybe @dippindots can help?

@zhx828
Copy link
Member

zhx828 commented Mar 4, 2019

@jjgao I notice in the ticket #5213 we also want to filter the table by oncogenicity. Should we do the mockup together?

@jjgao
Copy link
Member Author

jjgao commented Mar 4, 2019

@zhx828 let's not worry about oncogenicity for now -- it'll be harder b/c we will have to annotate all mutations. In this one we just need to filter based on the oncokb cancer gene list.

@jjgao
Copy link
Member Author

jjgao commented Mar 4, 2019

@zhx828 maybe just add a filter icon before the download icon would do the trick?

@zhx828
Copy link
Member

zhx828 commented Mar 4, 2019

After discussing with JJ, we are going to use the realtime oncokb cancer gene list to filter the genes.

@zhx828
Copy link
Member

zhx828 commented Mar 7, 2019

@schultzn JJ and I had some discussion about this ticket. We would love to add a oncokb column in the table to indicate whether the gene is from oncokb cancer gene list, and sort the table by oncokb column. Then you would also have some links out to oncokb gene page.
Filtering the table by oncokb cancer gene list would miss some genes that highly mutated in subset of the study.
What do you think? I will post a mock up later.

@schultzn
Copy link
Contributor

schultzn commented Mar 7, 2019 via email

@zhx828
Copy link
Member

zhx828 commented Mar 7, 2019

@schultzn I would vote for a column and it will only be a column with symbols, it should take very minimum of the space. Will send a mock up shortly.

@schultzn
Copy link
Contributor

schultzn commented Mar 7, 2019 via email

@zhx828
Copy link
Member

zhx828 commented Mar 7, 2019

@schultzn I'm going to include all genes in oncokb cancer gene list
for the step 2, we don't have the capacity to do that yet, but JJ and I are in discussion and hopefully one of the GSOC student can take that and bring in the full OncoKB analysis into study view page.

@jjgao
Copy link
Member Author

jjgao commented Mar 7, 2019

We may not need a checkbox as long as it is sorted by OncoKB by default. This may reduce some confusion as people may search for their genes (non-cancer genes) and they would have to figure out they need to do one more step to bring them in. (we had a number of users asking about missing genes in the mutated genes table previously when we had the filter)

@zhx828
Copy link
Member

zhx828 commented Mar 7, 2019

@jjgao @schultzn what do you think?
screen shot 2019-03-07 at 6 54 24 pm

@schultzn
Copy link
Contributor

schultzn commented Mar 8, 2019

It's a good start - but maybe a little too large / in your face?

I like the size of the MutSig icon.

image

@schultzn
Copy link
Contributor

schultzn commented Mar 8, 2019

It's close... so maybe just a little smaller?

@zhx828
Copy link
Member

zhx828 commented Mar 8, 2019

@schultzn what about this one?
screen shot 2019-03-08 at 9 46 17 am

@zhx828
Copy link
Member

zhx828 commented Mar 8, 2019

@jjgao @schultzn I was going to add the oncokb gene page link out but just realize not all of cancer genes have been curated. So you will have link out that actually goes to main page(because oncokb redirect the unknown gene request to main page). Is this expected?

@jjgao
Copy link
Member Author

jjgao commented Mar 8, 2019

@zhx828 maybe for OncoKB curated genes, link to the gene page. For other genes, link to the cancer genes page?

@zhx828
Copy link
Member

zhx828 commented Mar 11, 2019

@jjgao sounds good. @schultzn @jjgao what do you think about the design though?

@schultzn
Copy link
Contributor

schultzn commented Mar 11, 2019 via email

@zhx828
Copy link
Member

zhx828 commented Mar 11, 2019

@schultzn : @jjgao suggested to use black in the header. What do you think?
Screen Shot 2019-03-11 at 3 01 36 PM

@schultzn
Copy link
Contributor

schultzn commented Mar 11, 2019 via email

@zhx828
Copy link
Member

zhx828 commented Mar 12, 2019

@schultzn @jjgao I have a running instance here including the feature. Could you take a look and give me some suggestions? Thanks. https://cbioportal-frontend-pr-2109.herokuapp.com/study?id=cellline_nci60 The frequency is sorted by oncokb gene then by frequency.

@schultzn
Copy link
Contributor

schultzn commented Mar 12, 2019 via email

@schultzn
Copy link
Contributor

Attachments don't make it through when responding via email. Sorry.

This looks good:
image

@schultzn
Copy link
Contributor

Not this (the default):

image

@zhx828
Copy link
Member

zhx828 commented May 9, 2019

@schultzn @jjgao @Sjoerd-van-Hagen do we have a conclusion yet?

@jjgao
Copy link
Member Author

jjgao commented May 10, 2019

@zhx828 based on the discussion above, we can go ahead with the oncokb icon, I think.

@Sjoerd-van-Hagen
Copy link

I am fine with it but have a personal preference for a filter icon. Mainly because it is a filter. A hover over could show 'filter by oncokb cancer genes. That would still be one click but it is clear that a filter is set, and can be extended in the future. @schultzn what do you think?

@schultzn
Copy link
Contributor

How about a cancer ribbon instead of the OncoKB icon?

@Sjoerd-van-Hagen
Copy link

I would like to make explicit that the list is filtered and the user is not seeing all the genes. How would you do that with the ribbon?

@schultzn
Copy link
Contributor

schultzn commented May 15, 2019 via email

@Sjoerd-van-Hagen
Copy link

I think I would still prefer the funnel symbol that is typically used to signify filters, but have no strong objections to using the ribbon.

@jjgao
Copy link
Member Author

jjgao commented May 15, 2019

@schultzn and I had some discussion and agreed that we can use a filter icon with a tooltip as @Sjoerd-van-Hagen suggested.

tooltips:

  • "Filtered by OncoKB Cancer Gene List. Click to show all genes."
  • "Showing all genes. Click to filter by OncoKB Cancer Gene List"

@zhx828
Copy link
Member

zhx828 commented May 16, 2019 via email

@zhx828
Copy link
Member

zhx828 commented May 16, 2019

@schultzn @jjgao @Sjoerd-van-Hagen the interface will be the following. I will send out a testing interface soon.

After filtering

Screen Shot 2019-05-15 at 10 32 48 PM

Before filtering

Screen Shot 2019-05-15 at 10 32 56 PM

@zhx828
Copy link
Member

zhx828 commented May 16, 2019

@Sjoerd-van-Hagen
Copy link

The filter should be disabled by default imo.

For instance, in the example, MUC16 has a higher number of mutated samples than MUC4 but is not shown by default, even though it is associated with ovarian cancer (enough to spend money on trying to create a drug for it that targets this gene (OREGOVOMAB)) where CA-125 is also used as a biomarker, and has a very high occurrence in melanoma. I think people would like to see MUC-16 in this list.

In any case, I think by enabling this filter by default we are forcing our opinion, on what the cancer genes are, a bit too much.

@Sjoerd-van-Hagen
Copy link

Wait, disregard the last comment. There seems to be a bug. If I follow the link I see the icon is enabled and the text says it is filtered, but it is actually not. The behaviour of the switch mirrored.

@schultzn
Copy link
Contributor

schultzn commented May 16, 2019 via email

@jjgao
Copy link
Member Author

jjgao commented May 16, 2019

@zhx828 maybe this setting can be saved into local storage so that people can have their own preference?

@Sjoerd-van-Hagen
Copy link

I think we really need to have user preferences at some point. Or perhaps advanced and beginner modes or something. So many bells and whistles...

Problem is then that the solution space for the inputs will become even larger, which will make testing more difficult.

@Sjoerd-van-Hagen
Copy link

Wait, disregard the last comment. There seems to be a bug. If I follow the link I see the icon is enabled and the text says it is filtered, but it is actually not. The behaviour of the switch mirrored.

Before it is hidden by the more recent posts. @zhx828

@zhx828
Copy link
Member

zhx828 commented May 16, 2019

@Sjoerd-van-Hagen I don's see the issue though. Could you give me more info which gene is showing up which should not be?

@Sjoerd-van-Hagen
Copy link

Ah, my mistake. I somehow assumed that the genes with the small icon behind it were in the OncoKB list but it is just a coincidence that if I click the filter the top genes all have the icon...

@schultzn I now see that MUC16 is actually in the list too...

@jjgao
Copy link
Member Author

jjgao commented Jun 7, 2019

@zhx828 anything left for this?

@zhx828
Copy link
Member

zhx828 commented Jun 7, 2019

@jjgao nope. Just need to verify everything looks good. Then I will schedule the release.

@jjgao
Copy link
Member Author

jjgao commented Jun 11, 2019

@zhx828 thanks, please prioritize.

@zhx828
Copy link
Member

zhx828 commented Jun 11, 2019

@jjgao could you take a final look at this feature? https://cbioportal-frontend-pr-2109.herokuapp.com/study/summary?id=lgg_tcga

@jjgao
Copy link
Member Author

jjgao commented Jun 12, 2019

@zhx828 It looks great! Thanks.

@zhx828
Copy link
Member

zhx828 commented Jun 13, 2019

@jjgao @schultzn @Sjoerd-van-Hagen this feature is now released.

@jjgao
Copy link
Member Author

jjgao commented Jun 13, 2019

@Sjoerd-van-Hagen @schultzn @zhx828 should we try to remember user's preference in local storage / cookie?

@Sjoerd-van-Hagen
Copy link

If it is not too much effort and you are willing to do that, I would say yes.

@zhx828
Copy link
Member

zhx828 commented Jun 14, 2019

@jjgao @Sjoerd-van-Hagen created an issue #6274

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

Successfully merging a pull request may close this issue.

5 participants