Skip to content

Commit 865fafa

Browse files
committed
Add example script Example_SPT_movie.
1 parent 84d8fc7 commit 865fafa

File tree

5 files changed

+58
-1
lines changed

5 files changed

+58
-1
lines changed

MATLAB/+smi_helpers/versionSMITE.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
%version = '1.1.6'; % pearsonCorrCoef added to smi_stats
1818
%version = '1.2.0'; % cleanup of PairAnalysis class; added Manders' coeffs
1919
%version = '1.2.1'; % For 2-color, select ROIs from a Gaussian image
20-
version = '1.2.2'; % made HopTestPts and HopTests user adjustable
20+
%version = '1.2.2'; % made HopTestPts and HopTests user adjustable
21+
version = '1.2.3'; % add example script Example_SPT_movie
2122
end

MATLAB/examples/Example_Publish_SMF.m

100755100644
File mode changed.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
% Produce a movie from SPT results.
2+
%
3+
TrackingResults = 'NEEDS_TO_BE_SET!';
4+
RawData = 'NEEDS_TO_BE_SET!'
5+
6+
% Load SMITE processed tracking results: SMF, SMD, TR.
7+
load(TrackingResults);
8+
% Load raw blinking data.
9+
load(RawData);
10+
11+
%sliceViewer(Channel_1);
12+
13+
GM = smi_vis.GenerateMovies();
14+
GM.SMF = SMF;
15+
GM.SMD = SMD;
16+
GM.TR = TR;
17+
GM.RawData = Channel_1;
18+
19+
% Set some parameters; see smi_vis.GenerateMovies.prepDefaults for a full list,
20+
%
21+
% Place the indicated marker on each localization given in GM.SMD
22+
%GM.Params.SMDMarker = 'x';
23+
% Maximum number of points of a given trajectory that will be plotted.
24+
GM.Params.MaxTrajLength = 5;
25+
% Choose a ROI to examine (default is entire image):
26+
%raw_size = size(GM.RawData);
27+
%GM.Params.XPixels = [0, raw_size(1) - 1];
28+
%GM.Params.YPixels = [0, raw_size(2) - 1];
29+
GM.Params.XPixels = [64, 127];
30+
GM.Params.YPixels = [64, 127];
31+
32+
%sliceViewer(Channel_1);
33+
34+
GM = smi_vis.GenerateMovies();
35+
GM.SMF = SMF;
36+
GM.SMD = SMD;
37+
GM.TR = TR;
38+
GM.RawData = Channel_1;
39+
% Set some parameters; see smi_vis,GenerateMovies.prepDefaults for a full list,
40+
%
41+
% Place the indicated marker on each localization given in GM.SMD
42+
%GM.Params.SMDMarker = 'x';
43+
% Maximum number of points of a given trajectory that will be plotted.
44+
GM.Params.MaxTrajLength = 5;
45+
% Choose a ROI to examine (default is entire image):
46+
%raw_size = size(GM.RawData);
47+
%GM.Params.XPixels = [0, raw_size(1) - 1];
48+
%GM.Params.YPixels = [0, raw_size(2) - 1];
49+
GM.Params.XPixels = [64, 127];
50+
GM.Params.YPixels = [64, 127];
51+
% Choose from which range of frames to display trajectories (default is all).
52+
%GM.Params.ZFrames = [1, raw_size(3)];
53+
GM.Params.ZFrames = [1, 100];
54+
GM.gui();

MATLAB/examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ G indicates a GPU is used.
4040
[Example_Publish_SMF](Example_Publish_SMF.m) | as Example_Publish but using a pre-existing SMF
4141
[Example_SMLM_Basic](Example_SMLM_Basic.m) | demonstrate basic SMLM functionality
4242
[Example_SMLM_script](Example_SMLM_script.m) | example of SMLM analysis
43+
[Example_SPT_movie](Example_SPT_movie.m) | produce a movie from SPT results
4344
[hierBaGoL_wrapper](hierBaGoL_wrapper.m) | wrapper used to call BaGoL routines
4445
[generateBaGoLScripts](generateBaGoLScripts.m) | generate a series of self-contained scripts to run BaGoL over a number of cells, one script per cell
4546
[BaGoL_TEMPLATE](BaGoL_TEMPLATE.m) | BaGoL script template for generateBaGoLScripts

MATLAB/examples/README.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ SMITE code templates requiring user-supplied data:
2424
Example_Publish_SMF as Example_Publish but using a pre-existing SMF
2525
Example_SMLM_Basic demonstrate basic SMLM functionality
2626
Example_SMLM_script example of SMLM analysis
27+
Example_SPT_movie produce a movie from SPT results
2728
hierBaGoL_wrapper wrapper used to call BaGoL routines
2829
generateBaGoLScripts generate a series of self-contained scripts to
2930
run BaGoL over a number of cells, one script

0 commit comments

Comments
 (0)