Skip to content

Commit ecefae1

Browse files
committed
v1.3.1
See Changelog for v1.3.1. Added ability to read Norav .rtf and Megacare XML ECG files. Improved generic .csv format loading to allow for files with headers.
1 parent 74a9dd5 commit ecefae1

File tree

168 files changed

+449
-199
lines changed

Some content is hidden

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

168 files changed

+449
-199
lines changed

AbnormalVals.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
% BRAVEHEART - Open source software for electrocardiographic and vectorcardiographic analysis
33
% AbnormalVals.m -- Class for assigning values as normal or abnormal.
4-
% Copyright 2016-2024 Hans F. Stabenau and Jonathan W. Waks
4+
% Copyright 2016-2025 Hans F. Stabenau and Jonathan W. Waks
55
%
66
% Source code/executables: https://github.com/BIVectors/BRAVEHEART
77

AnnoResult.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
% BRAVEHEART - Open source software for electrocardiographic and vectorcardiographic analysis
33
% AnnoResult.m -- Utility class which stores the results of an annotation calculation and export it as a table
4-
% Copyright 2016-2024 Hans F. Stabenau and Jonathan W. Waks
4+
% Copyright 2016-2025 Hans F. Stabenau and Jonathan W. Waks
55
%
66
% Source code/executables: https://github.com/BIVectors/BRAVEHEART
77
@@ -106,7 +106,7 @@
106106
obj.missing_lead = num2cell(missing_lead);
107107

108108
% VERSION MANUALLY UPDATED HERE
109-
obj.version = {'1.3.0'};
109+
obj.version = {'1.3.1'};
110110

111111
end
112112
end

Annoparams.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
% BRAVEHEART - Open source software for electrocardiographic and vectorcardiographic analysis
33
% Annoparams.m -- Annoparams class for controlling BRAVEHEART function
4-
% Copyright 2016-2024 Hans F. Stabenau and Jonathan W. Waks
4+
% Copyright 2016-2025 Hans F. Stabenau and Jonathan W. Waks
55
%
66
% Source code/executables: https://github.com/BIVectors/BRAVEHEART
77

Beat_Stats.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
% BRAVEHEART - Open source software for electrocardiographic and vectorcardiographic analysis
33
% Beat_Stats.m -- Statistics on first pass annotation
4-
% Copyright 2016-2024 Hans F. Stabenau and Jonathan W. Waks
4+
% Copyright 2016-2025 Hans F. Stabenau and Jonathan W. Waks
55
%
66
% Source code/executables: https://github.com/BIVectors/BRAVEHEART
77

Beats.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
% BRAVEHEART - Open source software for electrocardiographic and vectorcardiographic analysis
33
% Beats.m -- Class for storing beat annotations
4-
% Copyright 2016-2024 Hans F. Stabenau and Jonathan W. Waks
4+
% Copyright 2016-2025 Hans F. Stabenau and Jonathan W. Waks
55
%
66
% Source code/executables: https://github.com/BIVectors/BRAVEHEART
77

ECG12.m

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
% BRAVEHEART - Open source software for electrocardiographic and vectorcardiographic analysis
33
% ECG12.m -- ECG Object Class
4-
% Copyright 2016-2024 Hans F. Stabenau and Jonathan W. Waks
4+
% Copyright 2016-2025 Hans F. Stabenau and Jonathan W. Waks
55
%
66
% Source code/executables: https://github.com/BIVectors/BRAVEHEART
77
@@ -66,8 +66,8 @@
6666
switch format
6767

6868
case 'bidmc_format'
69-
obj.hz=500;
70-
unitspermv=200;
69+
obj.hz = 500;
70+
unitspermv = 200;
7171
[obj.I, obj.II, obj.III, obj.avR, obj.avF, obj.avL, ...
7272
obj.V1, obj.V2, obj.V3, obj.V4, obj.V5, obj.V6] = load_ecg(filename, unitspermv, format);
7373

@@ -80,13 +80,13 @@
8080
obj.avL = obj.I - 0.5*obj.II;
8181

8282
case 'prucka_format'
83-
obj.hz=997;
84-
unitspermv=1;
83+
obj.hz = 997;
84+
unitspermv = 1;
8585
[obj.I, obj.II, obj.III, obj.avR, obj.avF, obj.avL, ...
8686
obj.V1, obj.V2, obj.V3, obj.V4, obj.V5, obj.V6] = load_ecg(filename, unitspermv, format);
8787

8888
case 'unformatted'
89-
unitspermv=1;
89+
unitspermv = 1;
9090
[obj.I, obj.II, obj.III, obj.avR, obj.avF, obj.avL, ...
9191
obj.V1, obj.V2, obj.V3, obj.V4, obj.V5, obj.V6, obj.hz] = load_unformatted(filename);
9292

@@ -118,10 +118,10 @@
118118
% Pull formatting details out of generic_csv_params.csv
119119
% This way can edit frequency, unitspermv, and
120120
% orientation if running via MATLAB or compiled version
121-
[obj.hz, unitspermv, orientation] = read_generic_csv_params();
121+
[obj.hz, unitspermv, orientation, row_start, col_start, lead_order] = read_generic_csv_params();
122122

123123
[obj.I, obj.II, obj.III, obj.avR, obj.avF, obj.avL, ...
124-
obj.V1, obj.V2, obj.V3, obj.V4, obj.V5, obj.V6] = load_generic_csv(filename, unitspermv, orientation);
124+
obj.V1, obj.V2, obj.V3, obj.V4, obj.V5, obj.V6] = load_generic_csv(filename, unitspermv, orientation, row_start, col_start, lead_order);
125125

126126
case 'cardiosoft_xml'
127127
[obj.hz, obj.I, obj.II, obj.III, obj.avR, obj.avF, obj.avL, ...
@@ -150,6 +150,16 @@
150150
case 'physionet_dat'
151151
[obj.hz, obj.I, obj.II, obj.III, obj.avR, obj.avF, obj.avL, ...
152152
obj.V1, obj.V2, obj.V3, obj.V4, obj.V5, obj.V6] = load_physionet_dat(filename);
153+
154+
case 'megacare_xml'
155+
[obj.hz, obj.I, obj.II, obj.III, obj.avR, obj.avF, obj.avL, ...
156+
obj.V1, obj.V2, obj.V3, obj.V4, obj.V5, obj.V6] = load_megacarexml(filename);
157+
158+
case 'norav'
159+
obj.hz = 500;
160+
unitspermv = 409.84;
161+
[obj.I, obj.II, obj.III, obj.avR, obj.avF, obj.avL, ...
162+
obj.V1, obj.V2, obj.V3, obj.V4, obj.V5, obj.V6] = load_norav(filename, unitspermv);
153163

154164
otherwise
155165
error('unknown format %s', format);

GEH_calculations.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
% BRAVEHEART - Open source software for electrocardiographic and vectorcardiographic analysis
33
% GEH_calculations.m -- Performs multiple ECG/VCG calculations
4-
% Copyright 2016-2024 Hans F. Stabenau and Jonathan W. Waks
4+
% Copyright 2016-2025 Hans F. Stabenau and Jonathan W. Waks
55
%
66
% Source code/executables: https://github.com/BIVectors/BRAVEHEART
77

HRV_Calc.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
% BRAVEHEART - Open source software for electrocardiographic and vectorcardiographic analysis
33
% HRV_Calc.m -- Basic HRV parameters
4-
% Copyright 2016-2024 Hans F. Stabenau and Jonathan W. Waks
4+
% Copyright 2016-2025 Hans F. Stabenau and Jonathan W. Waks
55
%
66
% Source code/executables: https://github.com/BIVectors/BRAVEHEART
77

Lead_Morphology.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
% BRAVEHEART - Open source software for electrocardiographic and vectorcardiographic analysis
33
% Lead_Morphology.m -- Lead_Morphology Results Class
4-
% Copyright 2016-2024 Hans F. Stabenau and Jonathan W. Waks
4+
% Copyright 2016-2025 Hans F. Stabenau and Jonathan W. Waks
55
%
66
% Source code/executables: https://github.com/BIVectors/BRAVEHEART
77

NormalVals.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
% BRAVEHEART - Open source software for electrocardiographic and vectorcardiographic analysis
33
% NormalVals.m -- Class for storing normal values for select parameters
4-
% Copyright 2016-2024 Hans F. Stabenau and Jonathan W. Waks
4+
% Copyright 2016-2025 Hans F. Stabenau and Jonathan W. Waks
55
%
66
% Source code/executables: https://github.com/BIVectors/BRAVEHEART
77

0 commit comments

Comments
 (0)