matthewhirschey / ddh.org

datadrivenhypothesis.org is a resource to query 100+ GB of raw biological science data to develop data-driven hypotheses
3 stars 7 forks source link

Allow users to enter a custom gene list #82

Closed johnbradley closed 4 years ago

johnbradley commented 4 years ago

Custom Gene List Searching

When a user's search contains comma separated strings the app assumes they are providing a custom gene list. I haven't updated any help text about this so it is currently a hidden feature. When a user searches for a custom gene list only one row is returned and that is custom gene list.

Search Results

Right now the custom gene list search result is really bare bones/ugly:

Screen Shot 2020-05-02 at 10 00 25 AM

To generate the data for the above the gene_list_query_results_table function returns a dataframe with a data column that contains a list of gene_summary rows. These gene_summary rows have a new boolean known field to denote which rows are actually in gene_summary and which are not found. There may be a better way to organize this so feel free to make a suggestion.

This could be expanded to include more details about the known genes and make it more obvious what to click. We may also want to consider including gene and pathway search results for the individual items in case a user didn't mean to look for a custom gene list. They may have entered multiple genes and want to look at them one at a time.

We may also want to consider searching in the aka field in addition to approved_symbol field when checking for known genes.

Summary

As of this change the top two lines of the custom gene list summary are kind of repetitive:

Screen Shot 2020-05-02 at 10 04 22 AM

Other Fixes

Includes a fix to handle a problem where shiny tries to re-render the detail summary page when user searches. See https://github.com/matthewhirschey/ddh/commit/545b15dcd115127941987adf0402c83d769912f

Removes title column from search results since it wasn't being used anywhere.