Skip to content

Commit

Permalink
updates example and fixes varargin issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lacan committed Feb 20, 2020
1 parent e13ea8b commit 1c71909
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions custom_analysis.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,18 @@

result.nSpots = nSpots;

% A More detailed example showing how to get the mean intensity for
% each spot in a given channel
result = table();

if nSpots > 0
spot = eXT.GetObject('Type', 'Spots', 'Number', 1);
stats = eXT.GetSelectedStatistics(spot, 'Intensity Mean', 'Channel', 3);
% Strings should be as cell arrays. It's a Matlab thing, I think
result.SpotID = stats.ids;
result.Ch3Mean = stats.values;
end



end
2 changes: 1 addition & 1 deletion functions/EasyXT_GUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ function detectAll()
end
end

function analyzeImage()
function analyzeImage(varargin)
global X;
global analysis_function;

Expand Down

0 comments on commit 1c71909

Please sign in to comment.