0001 function plotAdditionalInfo(handle, pathway, additionalText, exampleBoxText,...
0002 maxChange, defaultColor, upColor, downColor)
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 if nargin<8
0033 downColor=[1 0 0];
0034 end
0035 if nargin<7
0036 upColor=[0 1 0];
0037 end
0038 if nargin<6
0039 defaultColor=[1 1 1];
0040 end
0041 if nargin<5
0042 maxChange=1;
0043 end
0044
0045
0046
0047 dimension=getPathwayDimensions(pathway);
0048
0049
0050 rectangle('edgecolor',[0 0 0], 'facecolor', defaultColor, 'linewidth', 1,...
0051 'position', [dimension(1)+dimension(3)+100 100 700 320],'curvature', [0.1 0.1]);
0052 handle=text(dimension(1)+dimension(3)+100+6, 100+0.5*320,...
0053 exampleBoxText,'fontname','Small Fonts','fontsize',2,...
0054 'interpreter', 'tex','verticalalignment','middle','HorizontalAlignment','left');
0055 handle=text(dimension(1)+dimension(3)+300+126, 20,...
0056 'EXAMPLE:','fontname','Small Fonts','fontsize',4,...
0057 'interpreter', 'tex','HorizontalAlignment','center','verticalalignment','middle');
0058
0059
0060
0061 colorValues=[];
0062 for i=1:11
0063 logvalue=maxChange-(i-1)*0.1*maxChange;
0064 colorValues=[colorValues;...
0065 [defaultColor(1)+(upColor(1)-defaultColor(1))*logvalue/(maxChange)...
0066 defaultColor(2)+(upColor(2)-defaultColor(2))*logvalue/(maxChange)...
0067 defaultColor(3)+(upColor(3)-defaultColor(3))*logvalue/(maxChange)]];
0068 end
0069
0070 for i=1:10
0071 logvalue=i*0.1*maxChange;
0072 colorValues=[colorValues;...
0073 [defaultColor(1)+(downColor(1)-defaultColor(1))*logvalue/(maxChange)...
0074 defaultColor(2)+(downColor(2)-defaultColor(2))*logvalue/(maxChange)...
0075 defaultColor(3)+(downColor(3)-defaultColor(3))*logvalue/(maxChange)]];
0076 end
0077
0078
0079 handle=text(dimension(1)+dimension(3)+100, 560,...
0080 'log10(|condition A|/|condition B|)','fontname','Small Fonts','fontsize',3,...
0081 'interpreter', 'tex','HorizontalAlignment','left','verticalalignment','middle');
0082 lengthLine=40;
0083 startX=dimension(1)+dimension(3)+150;
0084
0085 startY=650;
0086 width=6;
0087 for i=1:size(colorValues,1)
0088 line([startX; startX],[startY+(i-1)*lengthLine; startY+i*lengthLine],'color',colorValues(i,:),'linewidth',width);
0089 end
0090
0091 handle=text(startX+3*width, startY,...
0092 ['- ' num2str(maxChange)],'fontname','Small Fonts','fontsize',3,...
0093 'interpreter', 'tex','HorizontalAlignment','left','verticalalignment','middle');
0094
0095 handle=text(startX+3*width, startY+5.5*lengthLine,...
0096 ['- ' num2str(maxChange/2)],'fontname','Small Fonts','fontsize',3,...
0097 'interpreter', 'tex','HorizontalAlignment','left','verticalalignment','middle');
0098
0099 handle=text(startX+3*width, startY+10.5*lengthLine,...
0100 ['- 0'],'fontname','Small Fonts','fontsize',3,...
0101 'interpreter', 'tex','HorizontalAlignment','left','verticalalignment','middle');
0102
0103 handle=text(startX+3*width, startY+15.5*lengthLine,...
0104 ['- -' num2str(maxChange/2)],'fontname','Small Fonts','fontsize',3,...
0105 'interpreter', 'tex','HorizontalAlignment','left','verticalalignment','middle');
0106
0107 handle=text(startX+3*width, startY+20.5*lengthLine,...
0108 ['- -' num2str(maxChange)],'fontname','Small Fonts','fontsize',3,...
0109 'interpreter', 'tex','HorizontalAlignment','left','verticalalignment','middle');
0110
0111
0112 handle=text(dimension(1)+dimension(3)+100, 1800,...
0113 additionalText,'fontname','Small Fonts','fontsize',3,...
0114 'interpreter', 'none','verticalalignment','top','HorizontalAlignment','left');
0115 end