Code covered by the BSD License  

Highlights from
FRETSCAL

image thumbnail

FRETSCAL

by

 

For the FRET analysis of images of yeast cells labeled with YFP and CFP.

fgetstrain
function fgetstrain
%Version 4/3/09 Displays the window where one enters the name of the
%strain being examined.
global  m5f m5b fontpics strainname h_getstrain h_getstrainfig darkgreen

x = .4; y = .4; w = .2; h = .2;
h_getstrainfig = figure('Color', darkgreen, 'units','normalized','name','Strain','ToolBar','none','NumberTitle','off','menubar','none','position',[ x y w h ] );
uicontrol( 'units', 'normalized', 'style', 'text', 'string', 'Strain Name', 'position', [ .3 .75 .4 .15], 'background','black','fore','white','fontsize', fontpics );
h_getstrain = uicontrol( h_getstrainfig, 'units', 'normalized',...
    'style', 'edit', 'string', strainname, 'position', [ 1/4 3/6 1/2 1/6 ],...
    'back', m5b, 'fore', m5f, 'fontsize', fontpics );
uicontrol( 'style','pushbutton', 'units', 'normalized',  'string','Done',...
    'position',[ .35 1/12 .3 .15 ], 'callback',@fgetstrain_callback, 'fontsize', fontpics );

function fgetstrain_callback( gcf, eventdata, handles )
global h_getstrainfig strainname h_getstrain progbarcol

strainname = get( h_getstrain, 'string' );
if(isempty(strainname) == 1)
    strainname = 'unassigned';
end;
close(h_getstrainfig);
progbarcol = 'red';
fupdate

Contact us