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.

fgetYFPspill
function fgetYFPspill
%Version 4/3/09
%Displays the dialog box for entering the YFP spillover factor.
%Updates the YFP spillover variable, YFPspill.
global YFPspill byedit frettype fontpics h_getYFPspillfig darkgreen

if( frettype == 1 )
  x = .37; y = .5; w = .26; h = .15;
  h_getYFPspillfig = figure('Color', darkgreen, 'units','normalized','name','YFP Spillover Factor','ToolBar','none','NumberTitle','off','menubar','none','position',[ x y w h ] );
  uicontrol( 'units', 'normalized', 'style', 'text', 'string', 'Enter the YFP Spillover Factor', 'position', [ 1/8 9/12 6/8 1/6 ],'background','black','fore','white', 'fontsize', fontpics ); 
  byedit   = uicontrol( h_getYFPspillfig, 'units', 'normalized','background','white', ...
          'style', 'edit', 'string', num2str( YFPspill ), 'position', [ .4 5/12 .2 1/6 ], 'value', YFPspill, 'fontsize', fontpics ); 
  uicontrol( 'style','pushbutton', 'units', 'normalized',  'string','Done',...
            'position',[ 1/3 1/12 1/3 1/6 ], 'callback',@fgetYFPspill2_callback, 'fontsize', fontpics);
else
  stringerr = sprintf( 'Only FRET experiments allow changing YFP spillover factor' );
  uiwait( msgbox( stringerr, 'YFP spillover factor error', 'modal' ) );
end;

function fgetYFPspill2_callback( gcf, eventdata, handles )
%Version = 9/26/07
%Gets the YFP spillover variable from the text box.
global YFPspill byedit h_getYFPspillfig 
  limitstring = get( byedit, 'string' );
  YFPspill = str2double( limitstring );
  close(h_getYFPspillfig);
  fupdate

Contact us