amc-heme / scExploreR

Shiny app for single cell omics data visualization
https://amc-heme.github.io/scExploreR/
MIT License
2 stars 0 forks source link

Config app freezes when categorical metadata with many values are passed #253

Closed wish1832 closed 2 months ago

wish1832 commented 4 months ago

A user reported that the config app was freezing on startup, with the following message:

Warning: The select input "observation_joinid-groups-001_members" contains a large number of options;
consider using server-side selectize for massively improved performance.  See the Details section of the 
?selectizeInput help topic.

Upon inspection of the object loaded, observation_joinid was found to be a categorical metadata variable with 53,000+ unique values. The interface in the config app used to define groups of metadata attempted to create choices for each of these values. The values for the input involved are encoded in JavaScript, which is not designed to handle this many values.

The metadata groups interface is not useful for variables with more than 250 or so values, since values must be individually entered to create groups, so the interface should be disabled when this many values exist for a variable.