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.
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.