cognoma / frontend

Frontend for Project Cognoma
http://cognoma.org/
Other
4 stars 22 forks source link

Show positive and negative counts for each mutation #161

Open dhimmel opened 6 years ago

dhimmel commented 6 years ago

It'd be useful to know how many samples were mutated (positives) and not mutated (negatives) for each gene selected by the user. It'd even be even slicker if you could see these counts in the search menu even before adding a gene (but that may be computationally infeasible). These values would add up to the total number of samples for all the selected diseases.

Is this feasible with the current architecture?

dhimmel commented 6 years ago

In the search table for genes, the positive and negative counts could replace the SCORE column. Even if we don't add positives/negatives, we should consider removing score. Score is the search ranking by mygene.info. It may be helpful for diagnosis but is likely to confuse users (it's not a score relevant to cancer or anything like that)

cgreene commented 6 years ago

If we sort by SCORE, would that improve our ability to place the most relevant gene at the top of the list? I notice that we're not particularly good at that via the alphabetical ordering scheme.

dhimmel commented 6 years ago

The table should definitely be sorted by SCORE descending (that is the point of score). However, the user doesn't need to see.

Also there's definitely a problem with the search configuration... For example, BRCA returns no results. Let's deal with that in a separate issue.

ramenhog commented 6 years ago

Showing pos and neg counts is definitely possible with the frontend architecture, but it doesn't seem like we have an endpoint for getting the positives count for each gene. If we can add that into the backend, it shouldn't be too tough to do via the frontend.

But I can definitely get rid of the SCORE column. But do we want the gene results sorted by SCORE initially until the user clicks on another column to sort by that column? Then how will they get back to sorting via SCORE?

dhimmel commented 6 years ago

the user clicks on another column to sort by that column

I don't think the chart needs to be sortable beyond score. That'd kinda be like saying I want to sort Google Autocomplete alphabetically.