# How to make a "simple" heatmap

**URL:** <https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038>\
**Category:** KNIME Analytics Platform\
**Created:** [March 27, 2013, 11:21pm UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038 "2013-03-27T23:21:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Talonsensei](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/t/c68b51/32.png) [@Talonsensei](https://forum.knime.com/u/Talonsensei)\
**Post date:** [March 27, 2013, 11:21pm UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/1 "2013-03-27T23:21:45Z")

</div>

&nbsp;

I wanted to use the JFreecharts heatmap node to just graph some data that has already been analyzed in excel. I thought I could just import that and run it through the node, but it is asking for a DistanceVector or a ListCell as input. As far as I can tell, making a distance vector requires more calculation and like I said, the calculations are already done. I can't find any reference to what a ListCell is or how to make it.

I see that I need to have some kind of collection column ultimately, but I don't see how the limited options of the node fit my data.&nbsp;

For example, in the data set, each row represents a clone. I have the following columns:

Column A: Y-axis values, a list of positions, repeating, one value per row

Column B: X-axis values (top row in example), a list of mutations, repeating, one value per row

Column C: Mouse data value (M)

Column D: Human data value (H)

When graphed it should look like this

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;F &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; L &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I &nbsp; &nbsp; (Mutations)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; H &nbsp; &nbsp;M &nbsp; &nbsp; &nbsp;H &nbsp; &nbsp; M &nbsp; &nbsp; &nbsp;H &nbsp; &nbsp;M &nbsp;(Species)

27 &nbsp; &nbsp; red blue &nbsp;grey grey &nbsp; red red

28 &nbsp; &nbsp; blue blue grey grey &nbsp;red blue

etc...

Hopefully this is understandable. Any suggestions would be much appreciated. I may need to transpose and rearrange some of the input data to make it work with Knime, but I was hoping I could do any such manipulations within the program.

-Mark

---

<div class="post-metadata">

**Author:** ![aborg](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@aborg](https://forum.knime.com/u/aborg)\
**Post date:** [March 28, 2013, 12:23am UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/2 "2013-03-28T00:23:32Z")

</div>

Hi Mark,

Could one of the [HiTS](https://code.google.com/p/hits) [heatmaps](https://code.google.com/p/hits/wiki/Screenshots) be suitable for your data? As I see the [HCS Tools](https://forum.knime.com/community/hcs-tools) also have [plate heatmap viewer](https://github.com/knime-mpicbg/HCS-Tools/wiki/Plate-Heatmap-Viewer). Maybe it works better for your data.

If you need the most simple heatmap, then changing a&nbsp;few column's&nbsp;cell renderer to _Gray Scale_ or _Bar_ would be also sufficient (either in a port view or in an Interactive Table view).

Hope this helps, gabor

---

<div class="post-metadata">

**Author:** ![Aaron\_Hart](https://forum-cdn.knime.com/user_avatar/forum.knime.com/aaron_hart/32/7814_2.png) [@Aaron\_Hart](https://forum.knime.com/u/Aaron_Hart)\
**Post date:** [March 28, 2013, 10:32am UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/3 "2013-03-28T10:32:05Z")

</div>

Hi Mark,&nbsp;

If you post some faked example data I'd be happy to try to mock up a solution.&nbsp;

Regards,

Aaron

---

<div class="post-metadata">

**Author:** ![Talonsensei](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/t/c68b51/32.png) [@Talonsensei](https://forum.knime.com/u/Talonsensei)\
**Post date:** [April 5, 2013, 7:28pm UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/4 "2013-04-05T19:28:12Z")

</div>

Thanks for the suggestions Gabor. I thought the HCS tools would be too complicated for this, but I will take a look.

-Mark

---

<div class="post-metadata">

**Author:** ![Talonsensei](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/t/c68b51/32.png) [@Talonsensei](https://forum.knime.com/u/Talonsensei)\
**Post date:** [April 5, 2013, 7:38pm UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/5 "2013-04-05T19:38:21Z")

</div>

Hi Aaron,

Example data and desired outcome are attached to this post.

Thanks,

Mark

- [example\_data.txt](https://www.knime.com/sites/default/files/example_data.txt)
- [example\_map.png](https://www.knime.com/sites/default/files/example_map.png)

---

<div class="post-metadata">

**Author:** ![aborg](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@aborg](https://forum.knime.com/u/aborg)\
**Post date:** [April 5, 2013, 8:51pm UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/6 "2013-04-05T20:51:31Z")

</div>

Hi Mark, you are welcome. Although the [Simple Heatmap](https://code.google.com/p/hits/wiki/Screenshots#Simple_Heatmap) might be also an option (except the column headers cannot be as nice unless youchange the&nbsp;labels with an image editor). The colors can be assigned according to your&nbsp;sample&nbsp;legend, can be saved to SVG or PNG.

Cheers, gabor

---

<div class="post-metadata">

**Author:** ![fab](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/f/51bf81/32.png) [@fab](https://forum.knime.com/u/fab)\
**Post date:** [April 5, 2013, 10:07pm UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/7 "2013-04-05T22:07:46Z")

</div>

dear mark,

i find problem to install hits at site&nbsp; ...some problem this is the message:

Some sites could not be found.&nbsp; See the error log for more detail.  
 No repository found at http://hits.googlecode.com/svn/.  
 Unable to read repository at https://code.google.com/p/hits/content.xml.  
 sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed  
 No repository found at http://hits.googlecode.com/svn/trunk/.  
 Unable to read repository at https://code.google.com/p/hits/downloads/list/content.xml.  
 sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed

is there onother site or is it possible to dwnlod the entire zip ?

thanks

fab&nbsp;

---

<div class="post-metadata">

**Author:** ![aborg](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@aborg](https://forum.knime.com/u/aborg)\
**Post date:** [April 5, 2013, 11:47pm UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/8 "2013-04-05T23:47:56Z")

</div>

Hi Fab,

Hope you do not mind if I try to answer (I developed HiTS). Did you use the [http://hits.googlecode.com/svn/trunk/ie.tcd.imm.hits.update](http://hits.googlecode.com/svn/trunk/ie.tcd.imm.hits.update)&nbsp;update site? What version of KNIME were you using? As I remember for the heatmaps (Heatmap with Dendrogram) you need the following features:

- _HiTS 3rd party components feature_ (from HiTS main category)
- _HiTS main feature_ (from HiTS main)

If you need the Heatmap with Dendrogram node too, you will have to install the _HiTS experimental features_ (from HiTS main).

Here are the [dependencies](https://code.google.com/p/hits/wiki/Dependencies) if you want to use the CellHTS2 or the biomaRt nodes too. (If you want only the heatmaps, you will not need R, CellHTS2 and&nbsp;biomaRt.)

Please send a message or&nbsp;raise an issue&nbsp;if the [Dependencies](https://code.google.com/p/hits/wiki/Dependencies) or the [Install](https://code.google.com/p/hits/wiki/Install) wiki page contain unclear parts.

I have not created an update site as a zip file yet, because I think that time there was a limitation on file sizes on Google code, but maybe I have just forgotten this possible use case.

(The features, plugins are not signed.)

Cheers, gabor

PS.: I have tried the above mentioned update site, and I was able to read the content with KNIME 2.6.1, I guess older (from 2.4.x as I remember for certain features)&nbsp;KNIME versions (also newer ones) should be fine.

---

<div class="post-metadata">

**Author:** ![Aaron\_Hart](https://forum-cdn.knime.com/user_avatar/forum.knime.com/aaron_hart/32/7814_2.png) [@Aaron\_Hart](https://forum.knime.com/u/Aaron_Hart)\
**Post date:** [April 8, 2013, 12:57pm UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/9 "2013-04-08T12:57:00Z")

</div>

Attached is an an example using your data. &nbsp;I couldn't find a nice way to get teh x-axis labels to show up, but maybe someone else has some feedback there. &nbsp;

Regards,

&nbsp;

Aaron

- [screen\_shot\_2013-04-08\_at\_12.55.46\_pm.png](https://www.knime.com/sites/default/files/screen_shot_2013-04-08_at_12.55.46_pm.png)
- [jfreeheatmap\_example.zip](https://www.knime.com/sites/default/files/jfreeheatmap_example.zip)
- [result.png](https://www.knime.com/sites/default/files/result.png)

---

<div class="post-metadata">

**Author:** ![fab](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/f/51bf81/32.png) [@fab](https://forum.knime.com/u/fab)\
**Post date:** [April 8, 2013, 3:00pm UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/10 "2013-04-08T15:00:40Z")

</div>

dear mark,

I use the last version 2.7.3 ,i checked for depemdency and all is ok. I installed in the past hits pluging and work fine, but this time find problem in connection :

Communication with repository at [http://hits.googlecode.com/svn/trunk/ie.tcd.imm.hits.update/](http://hits.googlecode.com/svn/trunk/ie.tcd.imm.hits.update/) failed.  
 Communication with repository at [http://hits.googlecode.com/svn/trunk/ie.tcd.imm.hits.update/](http://hits.googlecode.com/svn/trunk/ie.tcd.imm.hits.update/) failed.  
 Read timed out

I checked in preference \>general\> network connection and all is nornally configurated...

can you help me?

thanks

fab

---

<div class="post-metadata">

**Author:** ![aborg](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@aborg](https://forum.knime.com/u/aborg)\
**Post date:** [April 10, 2013, 9:11pm UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/11 "2013-04-10T21:11:55Z")

</div>

Hi Fab,

I do not know what could be the problem. Which operating system do you use? Is it 64 or 32 bit? Is your KNIME 64 bit?

I have just tried to install HiTS to a 64 bit Win7 machine with a 64 bit KNIME 2.7.3 from the http://hits.googlecode.com/svn/trunk/ie.tcd.imm.hits.update/ update site (with direct connection to the internet).

[http://tech.knime.org/files/knime\_text\_processing\_introduction\_technical\_report\_120515.pdf](https://forum.knime.com/sites/default/files/inline-images/knime_text_processing_introduction_technical_report_120515.pdf)

Maybe it was just a temporary problem with the Google code hosting.

Hope you have managed to solve the problem. Cheers, gabor

- [capture.png](https://www.knime.com/sites/default/files/capture_0.png)

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2023, 8:17pm UTC](https://forum.knime.com/t/how-to-make-a-simple-heatmap/2038/12 "2023-06-23T20:17:17Z")

</div>


