Skip to content

Commit 01922de

Browse files
committed
Fixed bug in landmark-matching/pointmatch.m, added debugging output to compute_z_matches_for_patrick_pipeline.m
1 parent 1884ffc commit 01922de

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

compute_z_matches_for_patrick_pipeline.m

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
function compute_z_matches_for_patrick_pipeline(landmarks_root_path, z_matches_root_path, tile_relative_path, ...
22
fluorescence_root_path, other_tile_relative_path)
3-
3+
4+
% Print inputs, useful for debugging:
5+
name_from_argument_index = who() ;
6+
fprintf('Inputs to %s:\n', mfilename()) ;
7+
for argument_index = 1 : length(name_from_argument_index) ,
8+
name = name_from_argument_index{argument_index} ;
9+
value = eval(name) ;
10+
fprintf('%s: %s\n', name, value) ;
11+
end
12+
fprintf('\n') ;
13+
414
% Synthesize all the tile folder paths
515
central_tile_landmark_folder_path = fullfile(landmarks_root_path, tile_relative_path) ;
616
other_tile_landmark_folder_path = fullfile(landmarks_root_path, other_tile_relative_path) ;

landmark-matching/pointmatch.m

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ function pointmatch(central_tile_landmark_folder_path, ...
2323
if ~exist('maximum_landmark_count', 'var') || isempty(maximum_landmark_count) ,
2424
maximum_landmark_count = 1e4 ;
2525
end
26+
if ~exist('do_run_in_debug_mode', 'var') || isempty(do_run_in_debug_mode) ,
27+
do_run_in_debug_mode = false ;
28+
end
2629
if do_run_in_debug_mode && isempty(sample_metadata) ,
2730
error('sample_metadata must be nonempty in debug mode') ;
2831
end

0 commit comments

Comments
 (0)