Fork me on GitHub

Examples

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:

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 >>
Use the buttons to call given InCHlib methods
inchlib.highlight_rows(["14039","10368","9560","7889"]);
inchlib.unhighlight_rows();
inchlib.highlight_cluster("node@337");
inchlib.unhighlight_cluster();
inchlib.update_settings({"max_column_width": 20});
inchlib.redraw();
inchlib.get_features_for_object(14019);
inchlib.add_color_scale("Black&White", {start: {r:0, g:0, b:0}, end: {r:255, g:255, b:255}});