skutac / InCHlib.js

InCHlib (Interactive Cluster Heatmap library)
http://openscreen.cz/software/inchlib
37 stars 15 forks source link

Alternative data #2

Closed skutac closed 9 years ago

skutac commented 9 years ago

Add the possibility to use the clustered values only for the color-mapping in the heatmap but display different values.

skutac commented 9 years ago

Alternative data can now be displayed in the heatmap instead of the original ones. Alternative data are turned on by setting the option alternative_data to true (alternative_data:true). Alternative data section has to be present in the input data in a form alternative_data: {leaf_id: [array of alternative values]}. The length of an alternative data array has to correspond with the length of the original data array.

The possibility to add alternative data is now present also in inchlib_clust (-ad /path/to/alt_data_file.csv, -add alternative_data_delimiter, -adcv alternative_data_compressed_value). Alternative data have to be in a matrix format where first column is dedicated to IDs. Alternative data have no header.