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.

cull_callback
function cull_callback
%Version 4/3/09 The window that opens when you select cull.


global dirsep fontpics inputdirectory outputdirectory lightgreen
global culledfile limit2 primary
global YFPFWHMcull FRETFWHMcull CFPFWHMcull YFPmonocull FRETmonocull CFPmonocull YFPs2bcull FRETs2bcull CFPs2bcull

x = .2; y = .4; w = .6; h = .3; spacing = .1;

if primary == 1
    primarys = 'YFP';
elseif primary == 2
    primarys = 'FRET';
elseif primary == 3
    primarys = 'CFP';
end
if limit2 == 1
  string6 = sprintf('Cull with %s, channel.\n',primarys);
else
  string6 = sprintf('Cull with all channels.\n');
end
    
string1 = sprintf( 'Output directory is %s%s%s', inputdirectory, dirsep, outputdirectory );
string2 = sprintf( 'Culled results file will be %s', culledfile );
string3 = sprintf( 'YFP  limits are: signal to background, %5.2f; FWHM, %5.2f; monotonicity deviance, %5.2f.\n', YFPs2bcull, YFPFWHMcull, YFPmonocull );
string4 = sprintf( 'FRET limits are: signal to background, %5.2f; FWHM, %5.2f; monotonicity deviance, %5.2f.\n', FRETs2bcull, FRETFWHMcull, FRETmonocull );
string5 = sprintf( 'CFP  limits are: signal to background, %5.2f; FWHM, %5.2f; monotonicity deviance, %5.2f.\n', CFPs2bcull, CFPFWHMcull, CFPmonocull );
h_cull = figure('Color', lightgreen, 'units', 'normalized', 'menubar', 'none','name','Culling Parameters', 'ToolBar', 'none', ...
                        'name', 'cull', 'NumberTitle', 'off', 'position', [ x y w h ] );
h_compute_stext = uicontrol( h_cull, 'units', 'normalized', 'style', 'text', ...
                         'string', string1, 'position', [ 0 .9   1 .1 ], 'background',lightgreen,'fontsize', fontpics ); 
h_compute_stext = uicontrol( h_cull, 'units', 'normalized', 'style', 'text', ...
                         'string', string2, 'position', [ 0 .75  1 .1 ], 'background',lightgreen,'fontsize', fontpics ); 
h_compute_stext = uicontrol( h_cull, 'units', 'normalized', 'style', 'text', ...
                         'string', string3, 'position', [ 0 .60  1 .1 ], 'background',lightgreen,'fontsize', fontpics ); 
h_compute_stext = uicontrol( h_cull, 'units', 'normalized', 'style', 'text', ...
                         'string', string4, 'position', [ 0 .45  1 .1 ], 'background',lightgreen,'fontsize', fontpics ); 
h_compute_stext = uicontrol( h_cull, 'units', 'normalized', 'style', 'text', ...
                         'string', string5, 'position', [ 0 .3  1 .1 ], 'background',lightgreen,'fontsize', fontpics );
h_compute_stext = uicontrol( h_cull, 'units', 'normalized', 'style', 'text', ...
                         'string', string6, 'position', [ 0 .15  1 .1 ], 'background',lightgreen,'fontsize', fontpics );uicontrol( h_cull, 'style','pushbutton', 'units', 'normalized', 'string','Start culling',...
            'position',[ .1 .05 .2 .1 ], 'callback', 'close(gcf);cull_callback2;fupdate', 'fontsize', fontpics );
uicontrol( h_cull, 'style','pushbutton', 'units', 'normalized', 'string','Cancel',...
            'position',[ .7 .05 .2 .1 ], 'callback', 'close(gcf)', 'fontsize', fontpics );


Contact us