ReinV / SCOPE

Search and Chemical Ontology Plotting Environment
Other
1 stars 2 forks source link

Generate an empty plot (or skip, with warning message) for null results? #63

Open magnuspalmblad opened 1 year ago

magnuspalmblad commented 1 year ago

If the query yielded no results or there were no text mined annotations in the query results (unlikely, but could happen), perhaps SCOPE should generate a blank plot (background only), with metadata and statistics reflecting there were no results (i.e. 0 text-mined chemicals and comments that no averages or standard deviations could be calculated, as there were no results)? The sliders and TFIDF should not have any effect, but changing them should not crash the browser.

Alternatively, generate_multiplot.py could generate a warning and skip any empty results rather than throwing an error, as it currently does.