Class: MatrixHeatmapReader

jheatmap.readers.MatrixHeatmapReader

new MatrixHeatmapReader

A text separated value file matrix reader. The file has to follow this format:


         col1    col2
  row1   0.11    0.12
  row2   0.21    0.22

Parameters:
Name Type Argument Default Description
p.url string File url
p.separator string <optional>
"tab" Value separator character
Source:
  • ../js/jheatmap-1.0.0.js, line 504
Example
new jheatmap.readers.MatrixHeatmapReader({ url: "filename.cdm" });

Methods

read

Asynchronously reads a text separated value file, the result is loaded in the 'heatmap' parameter.

Parameters:
Name Type Description
heatmap jheatmap.Heatmap The destination heatmap.
initialize function A callback function that is called when the file is loaded.
Source:
  • ../js/jheatmap-1.0.0.js, line 517