-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fig5_heatmap.m
44 lines (37 loc) · 6.37 KB
/
Fig5_heatmap.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% clear all
% clc
a=[1,-0.0950893618939673,0.0141506587959128,-0.330534815496394,0.151794542896498,0.234649158038671,-0.0111243046782619,-0.719577971294983,0.562600114896649,-0.387581413195427,0.153281936423246,-0.368567313071367,0.190380286077399,-0.343510130482462,-0.241389883914471,0.479515254074581,-0.251882652668990;-0.0950893618939655,1,0.614209840279455,-0.0174208347578133,0.0398853364658564,0.235281408312584,-0.523742201156934,-0.0899897234197276,-0.134792717398270,0.315263188774362,-0.204083425781998,0.373229950200017,-0.729954696509938,0.272490659542953,-0.309728309031348,-0.435525288265389,0.322760637705210;0.0141506587959131,0.614209840279454,1,-0.465394338240423,-0.0466544390276958,0.382205027062196,-0.210296686814951,-0.167961472554027,-0.421578616328555,0.381129967594664,-0.0728908654501965,0.270581781454187,-0.0802025382859063,-0.107020712452761,-0.184605291606203,-0.647530096218075,0.238470546492515;-0.330534815496393,-0.0174208347578105,-0.465394338240423,1,0.386135507158380,-0.423836714372874,-0.546248110170787,0.389486833123316,-0.0945880772819058,-0.155965913443961,-0.484008891341663,0.145571760642835,-0.428151651477641,0.500925061521361,-0.139671668756616,0.192835550996682,-0.122840624694413;0.151794542896498,0.0398853364658564,-0.0466544390276961,0.386135507158380,1,-0.359862413907763,-0.351234328081556,-0.257217282872212,0.135836346384677,-0.284534412701751,-0.814464614974005,0.0610733877190155,-0.135473253566491,0.447987191486658,-0.126892825725832,0.166319624228972,-0.334323716185436;0.234649158038671,0.235281408312581,0.382205027062195,-0.423836714372875,-0.359862413907764,1,-0.225165427913117,-0.211289657664506,-0.121329093520693,0.143256317255346,0.419351351113847,0.0577312895590245,0.266945502271811,-0.543966079544542,-0.302430244988951,0.0301884998319132,0.337754870041924;-0.0111243046782627,-0.523742201156934,-0.210296686814951,-0.546248110170786,-0.351234328081555,-0.225165427913119,1,0.0409623201159520,0.126838401808065,-0.142759333050499,0.436690930788825,-0.409016715317110,0.424278854020366,-0.275233953595081,0.455243257986433,0.0966716094550441,-0.283452527388234;-0.719577971294983,-0.0899897234197259,-0.167961472554027,0.389486833123317,-0.257217282872212,-0.211289657664506,0.0409623201159511,1,-0.328987228458660,0.0439226278000169,-0.132246950146691,0.299279687657732,-0.159164447499097,0.0492758806359817,0.290074263772963,-0.289706072635394,-0.0808239751846400;0.562600114896649,-0.134792717398269,-0.421578616328554,-0.0945880772819068,0.135836346384676,-0.121329093520692,0.126838401808065,-0.328987228458661,1,-0.377259451954415,0.00335695225652870,-0.195531196454737,-0.161649980911578,-0.134325693136067,0.0835953082507868,0.390729989428741,-0.324370799369774;-0.387581413195428,0.315263188774364,0.381129967594666,-0.155965913443960,-0.284534412701751,0.143256317255347,-0.142759333050500,0.0439226278000179,-0.377259451954417,1,0.102060993010849,0.0770237008647502,-0.0557524557088353,0.117160417435127,-0.199817829107291,-0.594297794900299,0.846136837785965;0.153281936423246,-0.204083425781999,-0.0728908654501964,-0.484008891341663,-0.814464614974006,0.419351351113846,0.436690930788826,-0.132246950146690,0.00335695225652841,0.102060993010850,1,-0.346464468812823,0.287145891723781,-0.494817416576188,0.106879042917470,0.175695087432912,0.198376447177582;-0.368567313071365,0.373229950200016,0.270581781454186,0.145571760642835,0.0610733877190159,0.0577312895590258,-0.409016715317110,0.299279687657731,-0.195531196454737,0.0770237008647476,-0.346464468812822,1,-0.226162104910475,0.0880767505066020,0.0769738237954769,-0.589279841712653,0.184193931041957;0.190380286077397,-0.729954696509941,-0.0802025382859092,-0.428151651477639,-0.135473253566491,0.266945502271807,0.424278854020367,-0.159164447499094,-0.161649980911578,-0.0557524557088345,0.287145891723780,-0.226162104910476,1,-0.466149985345043,0.0605485004613470,0.219715032692150,0.0149174214928256;-0.343510130482461,0.272490659542955,-0.107020712452759,0.500925061521360,0.447987191486658,-0.543966079544541,-0.275233953595082,0.0492758806359806,-0.134325693136067,0.117160417435126,-0.494817416576189,0.0880767505066030,-0.466149985345044,1,-0.215256838602745,-0.150367376688551,0.0801030462313068;-0.241389883914471,-0.309728309031347,-0.184605291606203,-0.139671668756616,-0.126892825725831,-0.302430244988951,0.455243257986432,0.290074263772963,0.0835953082507875,-0.199817829107291,0.106879042917469,0.0769738237954772,0.0605485004613454,-0.215256838602744,1,-0.170576176490095,-0.406597747550776;0.479515254074581,-0.435525288265390,-0.647530096218076,0.192835550996682,0.166319624228970,0.0301884998319120,0.0966716094550457,-0.289706072635394,0.390729989428742,-0.594297794900297,0.175695087432913,-0.589279841712656,0.219715032692150,-0.150367376688551,-0.170576176490095,1,-0.380933764861826;-0.251882652668990,0.322760637705211,0.238470546492516,-0.122840624694413,-0.334323716185436,0.337754870041925,-0.283452527388234,-0.0808239751846397,-0.324370799369775,0.846136837785965,0.198376447177582,0.184193931041958,0.0149174214928258,0.0801030462313067,-0.406597747550776,-0.380933764861827,1]
for i=1:1:size(a,1)
for j=1:1:size(a,2)
if i<j
a(i,j)=0;
end
end
end
label_index=25:-1:1;
rgmap=ones(25,3); %red blue colormap
rgmap(1:11,1)=0:0.1:1;
rgmap(1:11,2)=(0:0.1:1);
rgmap(15:25,3)=1:-0.1:0;
rgmap(15:25,2)=1:-0.1:0;
% rgmap=ones(25,3) %yellow magenta colormap
% rgmap(1:25,1)=1;
% rgmap(1:11,2)=(0:0.1:1);
% rgmap(1:11,3)=1;
% rgmap(15:25,3)=1:-0.1:0;
% rgmap(15:25,2)=1;
xvalues={'Vmaxf, HK','Vmaxf, PGI','Vmaxf, PFK','Vmaxf, ALD','Vmaxf, GAPDH','Vmaxf, PGK','Vmaxf, PK','Vmaxf, LDH','Vmaxf, G6PDH','Vmaxf, ATPase',...
'Vmaxf, AA' ,'Tmaxf, GLUT','Tmaxf, PYRT','Tmaxf, LACT', 'Tmaxf, MAS','Tmaxf, LEAK','Mmito' }
yvalues={'Vmaxf, HK','Vmaxf, PGI','Vmaxf, PFK','Vmaxf, ALD','Vmaxf, GAPDH','Vmaxf, PGK','Vmaxf, PK','Vmaxf, LDH','Vmaxf, G6PDH','Vmaxf, ATPase',...
'Vmaxf, AA' ,'Tmaxf, GLUT','Tmaxf, PYRT','Tmaxf, LACT', 'Tmaxf, MAS','Tmaxf, LEAK','Mmito' }
%h=heatmap(a,'Colormap',redgreencmap)
% xvalues{1,1}='$$|\overline{Q}|$$ [cm^{2}/s]'
set(figure(1),'Units','inches','Position',[2 2 8 8])
figure(1)
h=heatmap(xvalues,yvalues,a,'Colormap',rgmap,'GridVisible','on')
%h.XDisplayData={'Vmax,PDH','Vmax,CITS'}
caxis([-1 1])
% xlabel(aaa)
% title(aaa)
set(gcf,'color','w')
set(gca,'Fontsize',12,'FontName','Times New Roman')