-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Clustergram: app improvements #70
Conversation
…ta and converts arrays to lists.
…e clustergram is recomputed every time.
…ed to the tsv reader.
…splaying the clustergrams.
… for iris dataset.
…re-loaded datasets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I like the color scheme !
- you could maybe place the "Columns to display" and "Rows to display" at the end of the option list as their size can vary significantly, so the layout of the other options stays relatively the same :)
- you could also add a
title
prop for the "Add or remove all group markers:" div to explain how to use it and what it does :)
I'll approve the PR so you can have the latest version ready for the demo and because the changes I suggest are only improvements :)
# they must be converted back | ||
if(isinstance(xs, list)): | ||
xs = [x if x is not None else np.nan for x in xs] | ||
xs = np.array(xs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In terms of speed looping explicitely over arrays in python is slover than using pandas or numpy functions, it would only be important for superlarge datasets though
xs = t['row'][i]['x'] | ||
ys = t['row'][i]['y'] | ||
|
||
if(isinstance(xs, list)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost the same code as above but with 'row' instead of 'col', could be done in a function for easier maintenance
Addresses #64.