Plotting heatmap by binary values
0
0
Entering edit mode
4.9 years ago
zizigolu ★ 4.3k

Hi,

I have a matrix, rows are genes and columns are DAVID GO terms + logFC of genes in a separate columns

I want to plot a heat by considering logFC of genes, but I don't know how

> head(heat)
      focal adhesion cell-cell adherens junction cadherin binding involved in cell-cell adhesion muscle contraction
MYL9               0                           0                                               0                  1
ACTB               1                           0                                               0                  0
ACTA2              0                           0                                               0                  1
ACTG2              0                           0                                               0                  1
PFN1               1                           1                                               1                  0
HSPB1              1                           0                                               0                  0
      fibronectin binding myelin sheath extracellular matrix integrin binding cytoskeleton     logFC
MYL9                    0             0                    0                0            0 -1.579165
ACTB                    0             1                    0                0            1 -1.482387
ACTA2                   0             0                    0                0            0 -2.379757
ACTG2                   0             0                    0                0            0 -2.144757
PFN1                    0             0                    0                0            1 -1.158010
HSPB1                   0             0                    1                0            1 -1.172407
>

Any feasible way to have a clear heatmap?

r heatmap • 3.3k views
ADD COMMENT
1
Entering edit mode

The heatmap is long because you have too many GO terms. If you don't have too many genes, you could rotate the table. Otherwise, take advantage of the ontology structure to group terms or plot only those most relevant to the biology under consideration.

ADD REPLY
1
Entering edit mode
ADD REPLY
1
Entering edit mode

What have you tried?

Also, Jean-Karim's comment suggests you probably had something about a heatmap taking too long. Did you remove any such content in your edit?

ADD REPLY

Login before adding your answer.

Traffic: 1528 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6