Methods
Next example >
< Previous example
Apart from the basic methods for reading data(read_data(), read_data_from_file()) and drawing the cluster heatmap (draw()) there are also other methods which enable the interaction with the visualization on the level of JavaScript code.
These methods are:
- highlight_rows() - highlight heatmap rows according to given array of object IDs
- unhighlight_rows() - unhighlight all highlighted heatmap rows
- highlight_cluster() - highlight cluster (dendrogram node) according to given node ID
- unhighlight_cluster() - unhighlight highlighted cluster
- update_settings() - update InCHlib instance settings, redraw() method has to be used for the changes to occur
- redraw() - redraw visualization e.g., with updated settings
- redraw_heatmap() - redraw only the heatmap part of the visualization e.g., with updated coloring settings
- get_features_for_object() - get features for object given by the object_id parameter
- add_color_scale() - add custom color scale
The buttons above the example can be used to call these methods. The used JavaScript code snippets are represented as the button labels.
Example settings
Example data
The activities of several ligands measured at three different concentrations. Data are clustered using Euclidean distance and Ward's linkage. Show data >>