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.

fgetCFPtag2
function fgetCFPtag2
%Version 4/3/09 The splash window to input the name of the protein tagged
%with CFP with the update. Used by fsearch when changing from program defaults.
global CFPtagname h_getCFPtag m5f m5b fontpics h_getCFPtagfig darkgreen

x = .4; y = .4; w = .2; h = .2;
h_getCFPtagfig = figure('Color', darkgreen, 'units','normalized','ToolBar','none','name','CFP tagged protein', 'NumberTitle','off','menubar','none','position',[ x y w h ] );
uicontrol( 'units', 'normalized', 'style', 'text', 'string', 'CFP Tag', 'position', [ .3 .75 .4 .15], 'background','black','fore','white','fontsize', fontpics );  
h_getCFPtag = uicontrol( h_getCFPtagfig, 'units', 'normalized',...
 'style', 'edit', 'string', CFPtagname, 'position', [ 1/4 3/6 1/2 1/6 ], 'background','white', 'fontsize', fontpics ); 
uicontrol( 'style','pushbutton', 'units', 'normalized',  'string','Done',...
            'position',[ .35 1/12 .3 .15 ], 'callback',@fgetCFPtag_callback, 'fontsize', fontpics);


function fgetCFPtag_callback( gcf, eventdata, handles )
global CFPtagname h_getCFPtag h_getCFPtagfig progbarcol

CFPtagname = get( h_getCFPtag, 'string' );
if(isempty(CFPtagname) == 1)
  CFPtagname = 'CFP_Tagged_Protein';
end;
close(h_getCFPtagfig);
progbarcol = 'red';

Contact us