new TableHeatmapReader
A text separated value file matrix reader.
columns rows value1 value2
col1 row1 0.11 0.12
col2 row2 0.21 0.22
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
p.url |
string | File url | ||
p.separator |
string |
<optional> |
"tab" | Value separator character |
p.orderedValues |
boolean |
<optional> |
"false" | The values follow exactly the columns and rows order and there is no need to reorder them. |
- Source:
- ../js/jheatmap-1.0.0.js, line 586
Example
new jheatmap.readers.TableHeatmapReader({ url: "filename.tsv" });
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 600