Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error handling if Cluster Based covariate has more clusters than available in data. #47

Open
jmelott opened this issue Mar 22, 2023 · 0 comments
Labels
2.21.1 bug Something isn't working

Comments

@jmelott
Copy link
Contributor

jmelott commented Mar 22, 2023

To reproduce:
Create small 10x10 heat map using attached matrix
matrix_03_10_10_genes_genes.tsv.txt

Click next twice to get to "Cluster Matrix" page.
Enable advanced features.
Leave most features at default settings.
Click "Add Cluster-Based Covariate" for both axes.
Select 10 as number of clusters for both axes.
Click apply.
Error appears, but doesn't make it clear what needs to be changed
BUILD ERROR: Importing Heat Map Configuration Data. Index 10 out of bounds for length 10
In other cases error may look like
BUILD ERROR: Importing Heat Map Configuration Data. Index -1 out of bounds for length 6

Either check for size of data should disable cluster sizes that are too small, and/or data error should be more clear that the number of clusters need to be changed.

@jmelott jmelott added bug Something isn't working 2.21.1 labels Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.21.1 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant