IGS / gEAR

The gEAR Portal was created as a data archive and viewer for gene expression data including microarrays, bulk RNA-Seq, single-cell RNA-Seq and more.
https://umgear.org
GNU Affero General Public License v3.0
10 stars 5 forks source link

Fixing bug where single-gene curator would not plot #681

Closed adkinsrs closed 1 month ago

adkinsrs commented 1 month ago

@DanLesperance reported this bug to me and it only occurred in the single-gene curator.

I traced the code to some "overcrowding" warning I added about 7 months ago. However that code never executed because the JS was looking for elements under class .js_plot_req but they were named .js-plot-req in the HTML. When snake case was converted to kebab case for many scripts a month ago, this code finally started finding matches by class and executing but the logic was broken.

On the side I also fixed an encoding error I was encountering when loading JSON from geardb.py by forcing it to load as "utf-8 encoding".