Skip to content

Commit 37cfb97

Browse files
committed
Update to BD v1.2
1 parent 5833b1c commit 37cfb97

File tree

113 files changed

+95873
-7925
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+95873
-7925
lines changed

BehaviorDEPOT.prj

Lines changed: 0 additions & 82 deletions
This file was deleted.

BehaviorDEPOT_GUI_v1_2.mlapp

118 KB
Binary file not shown.

BehaviorDEPOTv1.2.mlappinstall

253 KB
Binary file not shown.

BehaviorDEPOTv1.2.prj

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<deployment-project plugin="plugin.apptool" plugin-version="1.0">
2+
<configuration build-checksum="3131490951" file="C:\BehaviorDEPOT\BehaviorDEPOTv1.2.prj" location="C:\BehaviorDEPOT" name="BehaviorDEPOTv1.2" target="target.mlapps" target-name="Package App">
3+
<param.appname>BehaviorDEPOTv1.2</param.appname>
4+
<param.authnamewatermark>C. Gabriel, Z. Zeidler, B. Jin, L. DeNardo</param.authnamewatermark>
5+
<param.email />
6+
<param.company />
7+
<param.icon />
8+
<param.icons />
9+
<param.summary>BehaviorDEPOT v1.2d application for analyzing top-down rodent DLC tracking and automatic behavior classification</param.summary>
10+
<param.description />
11+
<param.screenshot>C:\Users\chris\AppData\Local\Temp\tp04777f85_c4fd_4ee4_802c_a86f6ee32530.png</param.screenshot>
12+
<param.version>1.2</param.version>
13+
<param.products.name>
14+
<item>MATLAB</item>
15+
<item>Curve Fitting Toolbox</item>
16+
<item>Image Processing Toolbox</item>
17+
<item>Parallel Computing Toolbox</item>
18+
<item>Signal Processing Toolbox</item>
19+
<item>Statistics and Machine Learning Toolbox</item>
20+
</param.products.name>
21+
<param.products.id>
22+
<item>1</item>
23+
<item>60</item>
24+
<item>17</item>
25+
<item>80</item>
26+
<item>8</item>
27+
<item>19</item>
28+
</param.products.id>
29+
<param.products.version>
30+
<item>9.11</item>
31+
<item>3.6</item>
32+
<item>11.4</item>
33+
<item>7.5</item>
34+
<item>8.7</item>
35+
<item>12.2</item>
36+
</param.products.version>
37+
<param.platforms />
38+
<param.output>${PROJECT_ROOT}</param.output>
39+
<param.guid>9d035253-e0f3-4e4e-a0b1-0a3c3f852721</param.guid>
40+
<unset>
41+
<param.email />
42+
<param.company />
43+
<param.icon />
44+
<param.icons />
45+
<param.description />
46+
<param.platforms />
47+
<param.output />
48+
</unset>
49+
<fileset.main>
50+
<file>${PROJECT_ROOT}\BehaviorDEPOT_GUI_v1_2.mlapp</file>
51+
</fileset.main>
52+
<fileset.depfun />
53+
<fileset.resources>
54+
<file>${PROJECT_ROOT}\code</file>
55+
</fileset.resources>
56+
<fileset.package />
57+
<build-deliverables>
58+
<file location="C:\" name="BehaviorDEPOT" optional="false">C:\BehaviorDEPOT</file>
59+
</build-deliverables>
60+
<workflow />
61+
<matlab>
62+
<root>C:\Program Files\MATLAB\R2021b</root>
63+
<toolboxes />
64+
</matlab>
65+
<platform>
66+
<unix>false</unix>
67+
<mac>false</mac>
68+
<windows>true</windows>
69+
<win2k>false</win2k>
70+
<winxp>false</winxp>
71+
<vista>false</vista>
72+
<linux>false</linux>
73+
<solaris>false</solaris>
74+
<osver>10.0</osver>
75+
<os32>false</os32>
76+
<os64>true</os64>
77+
<arch>win64</arch>
78+
<matlab>true</matlab>
79+
</platform>
80+
</configuration>
81+
</deployment-project>

P_calculateBehaviorTEMPLATE.m

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
% P_calculateBehaviorTEMPLATE
2+
% C.G. 1/04/22
3+
4+
5+
%PARAMS:
6+
% 1) your1stChosenThreshold
7+
% 2) your2ndChosenThreshold
8+
% 3) yourNthChosenThreshold
9+
% 4) windowWidth (frames, empirically determined)
10+
% 5) countThreshold (arbitrary, empirically determined)
11+
% 6) minDuration (sec)
12+
% 7) maxDuration (sec)
13+
14+
% 'BehaviorName' must match name in associated classifier file
15+
% Can set any number of parameters, as needed
16+
17+
% Thresholds below are chosen to illustrate how to choose threshold and are
18+
% not necessarily tuned for a particular behavior
19+
20+
function Params = P_calculateBehaviorTEMPLATE()
21+
22+
% Threshold 1: Head velocity above first_threshold
23+
Params.BehaviorName.your1stChosenThreshold = 0.5; % In cm/sec
24+
25+
% Threshold 2: Nose-tailbase distance below second_threshold
26+
Params.BehaviorName.your2ndChosenThreshold = 5.6; % In centimeters
27+
28+
% Threshold N: Only collect frames after mouse has traveled at least nth_threshold
29+
Params.BehaviorName.yourNthChosenThreshold = 20; % In centimeters
30+
31+
% windowWidth (in frames, empirically determined; used for convolution)
32+
Params.BehaviorName.windowWidth = 32;
33+
34+
% countThreshold (arbitrary units, empirically determined; used for convolution)
35+
Params.BehaviorName.countThreshold = 10;
36+
37+
% minDuration (sec) of behavior bout
38+
Params.BehaviorName.minDuration = 0.9;
39+
40+
% maxDuration (sec) of behavior bout
41+
Params.BehaviorName.maxDuration = 30;
42+
43+
end

0 commit comments

Comments
 (0)