diff --git a/HRV_Output/Annotation/FOE0219.hea b/HRV_Output/Annotation/FOE0219.hea new file mode 100644 index 0000000..4c34d50 --- /dev/null +++ b/HRV_Output/Annotation/FOE0219.hea @@ -0,0 +1,3 @@ +HRV_Output\Annotation\FOE0219 1 500 32165000 +HRV_Output\Annotation\FOE0219.jqrs 16+24 1/mV 12 +#Creator: HRV_toolbox write_hea.m \ No newline at end of file diff --git a/HRV_Output/Annotation/FOE0219.jqrs b/HRV_Output/Annotation/FOE0219.jqrs new file mode 100644 index 0000000..470aee7 Binary files /dev/null and b/HRV_Output/Annotation/FOE0219.jqrs differ diff --git a/HRV_Output/Annotation/FOE0219.sqijs b/HRV_Output/Annotation/FOE0219.sqijs new file mode 100644 index 0000000..3ae61b8 Binary files /dev/null and b/HRV_Output/Annotation/FOE0219.sqijs differ diff --git a/HRV_Output/Annotation/FOE0219.sqijw b/HRV_Output/Annotation/FOE0219.sqijw new file mode 100644 index 0000000..ce19c78 Binary files /dev/null and b/HRV_Output/Annotation/FOE0219.sqijw differ diff --git a/HRV_Output/Annotation/FOE0219.sqrs b/HRV_Output/Annotation/FOE0219.sqrs new file mode 100644 index 0000000..1fb8c10 Binary files /dev/null and b/HRV_Output/Annotation/FOE0219.sqrs differ diff --git a/HRV_Output/Annotation/FOE0219.wqrs b/HRV_Output/Annotation/FOE0219.wqrs new file mode 100644 index 0000000..3c50cc5 Binary files /dev/null and b/HRV_Output/Annotation/FOE0219.wqrs differ diff --git a/HRV_Output/Annotation/FOK0209.hea b/HRV_Output/Annotation/FOK0209.hea new file mode 100644 index 0000000..32c412e --- /dev/null +++ b/HRV_Output/Annotation/FOK0209.hea @@ -0,0 +1,3 @@ +HRV_Output\Annotation\FOK0209 1 500 31827000 +HRV_Output\Annotation\FOK0209.jqrs 16+24 1/mV 12 +#Creator: HRV_toolbox write_hea.m \ No newline at end of file diff --git a/HRV_Output/Annotation/FOK0209.jqrs b/HRV_Output/Annotation/FOK0209.jqrs new file mode 100644 index 0000000..f78fc5e Binary files /dev/null and b/HRV_Output/Annotation/FOK0209.jqrs differ diff --git a/HRV_Output/Annotation/FOK0209.sqijs b/HRV_Output/Annotation/FOK0209.sqijs new file mode 100644 index 0000000..e719fd4 Binary files /dev/null and b/HRV_Output/Annotation/FOK0209.sqijs differ diff --git a/HRV_Output/Annotation/FOK0209.sqijw b/HRV_Output/Annotation/FOK0209.sqijw new file mode 100644 index 0000000..0637514 Binary files /dev/null and b/HRV_Output/Annotation/FOK0209.sqijw differ diff --git a/HRV_Output/Annotation/FOK0209.sqrs b/HRV_Output/Annotation/FOK0209.sqrs new file mode 100644 index 0000000..dd01138 Binary files /dev/null and b/HRV_Output/Annotation/FOK0209.sqrs differ diff --git a/HRV_Output/Annotation/FOK0209.wqrs b/HRV_Output/Annotation/FOK0209.wqrs new file mode 100644 index 0000000..0ba24af Binary files /dev/null and b/HRV_Output/Annotation/FOK0209.wqrs differ diff --git a/HRV_Output/Annotation/FOK0217.hea b/HRV_Output/Annotation/FOK0217.hea new file mode 100644 index 0000000..3cd0974 --- /dev/null +++ b/HRV_Output/Annotation/FOK0217.hea @@ -0,0 +1,3 @@ +HRV_Output\Annotation\FOK0217 1 500 34796000 +HRV_Output\Annotation\FOK0217.jqrs 16+24 1/mV 12 +#Creator: HRV_toolbox write_hea.m \ No newline at end of file diff --git a/HRV_Output/Annotation/FOK0217.jqrs b/HRV_Output/Annotation/FOK0217.jqrs new file mode 100644 index 0000000..75bdcb4 Binary files /dev/null and b/HRV_Output/Annotation/FOK0217.jqrs differ diff --git a/HRV_Output/Annotation/FOK0217.sqijs b/HRV_Output/Annotation/FOK0217.sqijs new file mode 100644 index 0000000..4701360 Binary files /dev/null and b/HRV_Output/Annotation/FOK0217.sqijs differ diff --git a/HRV_Output/Annotation/FOK0217.sqijw b/HRV_Output/Annotation/FOK0217.sqijw new file mode 100644 index 0000000..aedcd61 Binary files /dev/null and b/HRV_Output/Annotation/FOK0217.sqijw differ diff --git a/HRV_Output/Annotation/FOK0217.sqrs b/HRV_Output/Annotation/FOK0217.sqrs new file mode 100644 index 0000000..8774edf Binary files /dev/null and b/HRV_Output/Annotation/FOK0217.sqrs differ diff --git a/HRV_Output/Annotation/FOK0217.wqrs b/HRV_Output/Annotation/FOK0217.wqrs new file mode 100644 index 0000000..2f263bb Binary files /dev/null and b/HRV_Output/Annotation/FOK0217.wqrs differ diff --git a/HRV_Output/ParametersTable20220802_ActigraphyECG.tex b/HRV_Output/ParametersTable20220802_ActigraphyECG.tex deleted file mode 100644 index 6c9d1ea..0000000 --- a/HRV_Output/ParametersTable20220802_ActigraphyECG.tex +++ /dev/null @@ -1,102 +0,0 @@ -\begin{tabular}{|l|l|} -\hline -Fs&NaN\\\hline -writedata&HRV Output\\\hline -data confidence level&1\\\hline -windowlength&300\\\hline -increment&30\\\hline -numsegs&5\\\hline -RejectionThreshold&0.2\\\hline -MissingDataThreshold&0.15\\\hline -rawsig&0\\\hline -debug&0\\\hline -sqi LowQualityThreshold&0.9\\\hline -sqi windowlength&10\\\hline -sqi increment&1\\\hline -sqi TimeThreshold&0.1\\\hline -sqi margin&2\\\hline -preprocess figures&0\\\hline -preprocess gaplimit&2\\\hline -preprocess per limit&0.2\\\hline -preprocess forward gap&3\\\hline -preprocess method outliers&rem\\\hline -preprocess lowerphysiolim&0.375\\\hline -preprocess upperphysiolim&2\\\hline -preprocess method unphysio&rem\\\hline -preprocess threshold1&0.9\\\hline -preprocess minlength&30\\\hline -af on&1\\\hline -af windowlength&30\\\hline -af increment&30\\\hline -PVC qrsth&0.1\\\hline -timedomain on&1\\\hline -timedomain dataoutput&0\\\hline -timedomain alpha&50\\\hline -timedomain win tol&0.15\\\hline -ulf& 0-0.0033\\\hline -vlf&0.0033- 0.04\\\hline -lf& 0.04- 0.15\\\hline -hf& 0.15- 0.4\\\hline -freq on&1\\\hline -freq limits&[]\\\hline -freq zero mean&1\\\hline -freq method&lomb\\\hline -freq plot on&0\\\hline -freq debug sine&0\\\hline -freq debug freq&0.15\\\hline -freq debug weight&0.03\\\hline -freq normalize lomb&0\\\hline -freq burg poles&15\\\hline -freq resampling freq&7\\\hline -freq resample interp method&cub\\\hline -freq resampled burg poles&100\\\hline -sd on&1\\\hline -sd segmentlength&300\\\hline -prsa on&1\\\hline -prsa win length&30\\\hline -prsa thresh per&20\\\hline -prsa plot results&0\\\hline -prsa scale&2\\\hline -prsa min anch&20\\\hline -PeakDetect REF PERIOD&0.25\\\hline -PeakDetect THRES&0.6\\\hline -PeakDetect fid vec&[]\\\hline -PeakDetect SIGN FORCE&[]\\\hline -PeakDetect debug&0\\\hline -PeakDetect ecgType&MECG\\\hline -PeakDetect windows&15\\\hline -MSE on&1\\\hline -MSE windowlength&[]\\\hline -MSE increment&[]\\\hline -MSE RadiusOfSimilarity&0.15\\\hline -MSE patternLength&2\\\hline -MSE maxCoarseGrainings&20\\\hline -MSE method&fir\\\hline -MSE moment&mean\\\hline -MSE constant r&1\\\hline -Entropy on&1\\\hline -Entropy RadiusOfSimilarity&0.15\\\hline -Entropy patternLength&2\\\hline -DFA on&1\\\hline -DFA windowlength&[]\\\hline -DFA increment&[]\\\hline -DFA minBoxSize&4\\\hline -DFA maxBoxSize&[]\\\hline -DFA midBoxSize&16\\\hline -poincare on&1\\\hline -HRT on&1\\\hline -HRT BeatsBefore&2\\\hline -HRT BeatsAfter&16\\\hline -HRT GraphOn&0\\\hline -HRT windowlength&24\\\hline -HRT increment&24\\\hline -HRT filterMethod&mean5before\\\hline -gen figs&0\\\hline -save figs&0\\\hline -output format&csv\\\hline -output separate&1\\\hline -output num win&[]\\\hline -output ann format&binary\\\hline -time&20220802\\\hline -filename&20220802 ActigraphyECG\\\hline -\end{tabular} diff --git a/HRV_Output/ParametersTable20220817_ActigraphyECG.csv b/HRV_Output/ParametersTable20220817_ActigraphyECG.csv deleted file mode 100644 index bedb632..0000000 --- a/HRV_Output/ParametersTable20220817_ActigraphyECG.csv +++ /dev/null @@ -1,100 +0,0 @@ -Tab1,Tab2 -Fs,NaN -writedata,HRV Output -data confidence level,1 -windowlength,300 -increment,30 -numsegs,5 -RejectionThreshold,0.2 -MissingDataThreshold,0.15 -rawsig,0 -debug,0 -sqi LowQualityThreshold,0.9 -sqi windowlength,10 -sqi increment,1 -sqi TimeThreshold,0.1 -sqi margin,2 -preprocess figures,0 -preprocess gaplimit,2 -preprocess per limit,0.2 -preprocess forward gap,3 -preprocess method outliers,rem -preprocess lowerphysiolim,0.375 -preprocess upperphysiolim,2 -preprocess method unphysio,rem -preprocess threshold1,0.9 -preprocess minlength,30 -af on,1 -af windowlength,30 -af increment,30 -PVC qrsth,0.1 -timedomain on,1 -timedomain dataoutput,0 -timedomain alpha,50 -timedomain win tol,0.15 -ulf, 0-0.0033 -vlf,0.0033- 0.04 -lf, 0.04- 0.15 -hf, 0.15- 0.4 -freq on,1 -freq limits,[] -freq zero mean,1 -freq method,lomb -freq plot on,0 -freq debug sine,0 -freq debug freq,0.15 -freq debug weight,0.03 -freq normalize lomb,0 -freq burg poles,15 -freq resampling freq,7 -freq resample interp method,cub -freq resampled burg poles,100 -sd on,1 -sd segmentlength,300 -prsa on,1 -prsa win length,30 -prsa thresh per,20 -prsa plot results,0 -prsa scale,2 -prsa min anch,20 -PeakDetect REF PERIOD,0.25 -PeakDetect THRES,0.6 -PeakDetect fid vec,[] -PeakDetect SIGN FORCE,[] -PeakDetect debug,0 -PeakDetect ecgType,MECG -PeakDetect windows,15 -MSE on,1 -MSE windowlength,[] -MSE increment,[] -MSE RadiusOfSimilarity,0.15 -MSE patternLength,2 -MSE maxCoarseGrainings,20 -MSE method,fir -MSE moment,mean -MSE constant r,1 -Entropy on,1 -Entropy RadiusOfSimilarity,0.15 -Entropy patternLength,2 -DFA on,1 -DFA windowlength,[] -DFA increment,[] -DFA minBoxSize,4 -DFA maxBoxSize,[] -DFA midBoxSize,16 -poincare on,1 -HRT on,1 -HRT BeatsBefore,2 -HRT BeatsAfter,16 -HRT GraphOn,0 -HRT windowlength,24 -HRT increment,24 -HRT filterMethod,mean5before -gen figs,0 -save figs,0 -output format,csv -output separate,1 -output num win,[] -output ann format,binary -time,20220817 -filename,20220817 ActigraphyECG diff --git a/HRV_Output/ParametersTable20220817_ActigraphyECG.tex b/HRV_Output/ParametersTable20220817_ActigraphyECG.tex deleted file mode 100644 index 1798d1e..0000000 --- a/HRV_Output/ParametersTable20220817_ActigraphyECG.tex +++ /dev/null @@ -1,102 +0,0 @@ -\begin{tabular}{|l|l|} -\hline -Fs&NaN\\\hline -writedata&HRV Output\\\hline -data confidence level&1\\\hline -windowlength&300\\\hline -increment&30\\\hline -numsegs&5\\\hline -RejectionThreshold&0.2\\\hline -MissingDataThreshold&0.15\\\hline -rawsig&0\\\hline -debug&0\\\hline -sqi LowQualityThreshold&0.9\\\hline -sqi windowlength&10\\\hline -sqi increment&1\\\hline -sqi TimeThreshold&0.1\\\hline -sqi margin&2\\\hline -preprocess figures&0\\\hline -preprocess gaplimit&2\\\hline -preprocess per limit&0.2\\\hline -preprocess forward gap&3\\\hline -preprocess method outliers&rem\\\hline -preprocess lowerphysiolim&0.375\\\hline -preprocess upperphysiolim&2\\\hline -preprocess method unphysio&rem\\\hline -preprocess threshold1&0.9\\\hline -preprocess minlength&30\\\hline -af on&1\\\hline -af windowlength&30\\\hline -af increment&30\\\hline -PVC qrsth&0.1\\\hline -timedomain on&1\\\hline -timedomain dataoutput&0\\\hline -timedomain alpha&50\\\hline -timedomain win tol&0.15\\\hline -ulf& 0-0.0033\\\hline -vlf&0.0033- 0.04\\\hline -lf& 0.04- 0.15\\\hline -hf& 0.15- 0.4\\\hline -freq on&1\\\hline -freq limits&[]\\\hline -freq zero mean&1\\\hline -freq method&lomb\\\hline -freq plot on&0\\\hline -freq debug sine&0\\\hline -freq debug freq&0.15\\\hline -freq debug weight&0.03\\\hline -freq normalize lomb&0\\\hline -freq burg poles&15\\\hline -freq resampling freq&7\\\hline -freq resample interp method&cub\\\hline -freq resampled burg poles&100\\\hline -sd on&1\\\hline -sd segmentlength&300\\\hline -prsa on&1\\\hline -prsa win length&30\\\hline -prsa thresh per&20\\\hline -prsa plot results&0\\\hline -prsa scale&2\\\hline -prsa min anch&20\\\hline -PeakDetect REF PERIOD&0.25\\\hline -PeakDetect THRES&0.6\\\hline -PeakDetect fid vec&[]\\\hline -PeakDetect SIGN FORCE&[]\\\hline -PeakDetect debug&0\\\hline -PeakDetect ecgType&MECG\\\hline -PeakDetect windows&15\\\hline -MSE on&1\\\hline -MSE windowlength&[]\\\hline -MSE increment&[]\\\hline -MSE RadiusOfSimilarity&0.15\\\hline -MSE patternLength&2\\\hline -MSE maxCoarseGrainings&20\\\hline -MSE method&fir\\\hline -MSE moment&mean\\\hline -MSE constant r&1\\\hline -Entropy on&1\\\hline -Entropy RadiusOfSimilarity&0.15\\\hline -Entropy patternLength&2\\\hline -DFA on&1\\\hline -DFA windowlength&[]\\\hline -DFA increment&[]\\\hline -DFA minBoxSize&4\\\hline -DFA maxBoxSize&[]\\\hline -DFA midBoxSize&16\\\hline -poincare on&1\\\hline -HRT on&1\\\hline -HRT BeatsBefore&2\\\hline -HRT BeatsAfter&16\\\hline -HRT GraphOn&0\\\hline -HRT windowlength&24\\\hline -HRT increment&24\\\hline -HRT filterMethod&mean5before\\\hline -gen figs&0\\\hline -save figs&0\\\hline -output format&csv\\\hline -output separate&1\\\hline -output num win&[]\\\hline -output ann format&binary\\\hline -time&20220817\\\hline -filename&20220817 ActigraphyECG\\\hline -\end{tabular} diff --git a/HRV_Output/ParametersTable20220823_ActigraphyECG.csv b/HRV_Output/ParametersTable20220823_ActigraphyECG.csv deleted file mode 100644 index 4695c14..0000000 --- a/HRV_Output/ParametersTable20220823_ActigraphyECG.csv +++ /dev/null @@ -1,100 +0,0 @@ -Tab1,Tab2 -Fs,NaN -writedata,HRV Output -data confidence level,1 -windowlength,300 -increment,30 -numsegs,5 -RejectionThreshold,0.2 -MissingDataThreshold,0.15 -rawsig,0 -debug,0 -sqi LowQualityThreshold,0.9 -sqi windowlength,10 -sqi increment,1 -sqi TimeThreshold,0.1 -sqi margin,2 -preprocess figures,0 -preprocess gaplimit,2 -preprocess per limit,0.2 -preprocess forward gap,3 -preprocess method outliers,rem -preprocess lowerphysiolim,0.375 -preprocess upperphysiolim,2 -preprocess method unphysio,rem -preprocess threshold1,0.9 -preprocess minlength,30 -af on,1 -af windowlength,30 -af increment,30 -PVC qrsth,0.1 -timedomain on,1 -timedomain dataoutput,0 -timedomain alpha,50 -timedomain win tol,0.15 -ulf, 0-0.0033 -vlf,0.0033- 0.04 -lf, 0.04- 0.15 -hf, 0.15- 0.4 -freq on,1 -freq limits,[] -freq zero mean,1 -freq method,lomb -freq plot on,0 -freq debug sine,0 -freq debug freq,0.15 -freq debug weight,0.03 -freq normalize lomb,0 -freq burg poles,15 -freq resampling freq,7 -freq resample interp method,cub -freq resampled burg poles,100 -sd on,1 -sd segmentlength,300 -prsa on,1 -prsa win length,30 -prsa thresh per,20 -prsa plot results,0 -prsa scale,2 -prsa min anch,20 -PeakDetect REF PERIOD,0.25 -PeakDetect THRES,0.6 -PeakDetect fid vec,[] -PeakDetect SIGN FORCE,[] -PeakDetect debug,0 -PeakDetect ecgType,MECG -PeakDetect windows,15 -MSE on,1 -MSE windowlength,[] -MSE increment,[] -MSE RadiusOfSimilarity,0.15 -MSE patternLength,2 -MSE maxCoarseGrainings,20 -MSE method,fir -MSE moment,mean -MSE constant r,1 -Entropy on,1 -Entropy RadiusOfSimilarity,0.15 -Entropy patternLength,2 -DFA on,1 -DFA windowlength,[] -DFA increment,[] -DFA minBoxSize,4 -DFA maxBoxSize,[] -DFA midBoxSize,16 -poincare on,1 -HRT on,1 -HRT BeatsBefore,2 -HRT BeatsAfter,16 -HRT GraphOn,0 -HRT windowlength,24 -HRT increment,24 -HRT filterMethod,mean5before -gen figs,0 -save figs,0 -output format,csv -output separate,1 -output num win,[] -output ann format,binary -time,20220823 -filename,20220823 ActigraphyECG diff --git a/HRV_Output/ParametersTable20220824_ActigraphyECG.csv b/HRV_Output/ParametersTable20220824_ActigraphyECG.csv deleted file mode 100644 index fd81db2..0000000 --- a/HRV_Output/ParametersTable20220824_ActigraphyECG.csv +++ /dev/null @@ -1,100 +0,0 @@ -Tab1,Tab2 -Fs,NaN -writedata,HRV Output -data confidence level,1 -windowlength,300 -increment,30 -numsegs,5 -RejectionThreshold,0.2 -MissingDataThreshold,0.15 -rawsig,0 -debug,0 -sqi LowQualityThreshold,0.9 -sqi windowlength,10 -sqi increment,1 -sqi TimeThreshold,0.1 -sqi margin,2 -preprocess figures,0 -preprocess gaplimit,2 -preprocess per limit,0.2 -preprocess forward gap,3 -preprocess method outliers,rem -preprocess lowerphysiolim,0.375 -preprocess upperphysiolim,2 -preprocess method unphysio,rem -preprocess threshold1,0.9 -preprocess minlength,30 -af on,1 -af windowlength,30 -af increment,30 -PVC qrsth,0.1 -timedomain on,1 -timedomain dataoutput,0 -timedomain alpha,50 -timedomain win tol,0.15 -ulf, 0-0.0033 -vlf,0.0033- 0.04 -lf, 0.04- 0.15 -hf, 0.15- 0.4 -freq on,1 -freq limits,[] -freq zero mean,1 -freq method,lomb -freq plot on,0 -freq debug sine,0 -freq debug freq,0.15 -freq debug weight,0.03 -freq normalize lomb,0 -freq burg poles,15 -freq resampling freq,7 -freq resample interp method,cub -freq resampled burg poles,100 -sd on,1 -sd segmentlength,300 -prsa on,1 -prsa win length,30 -prsa thresh per,20 -prsa plot results,0 -prsa scale,2 -prsa min anch,20 -PeakDetect REF PERIOD,0.25 -PeakDetect THRES,0.6 -PeakDetect fid vec,[] -PeakDetect SIGN FORCE,[] -PeakDetect debug,0 -PeakDetect ecgType,MECG -PeakDetect windows,15 -MSE on,1 -MSE windowlength,[] -MSE increment,[] -MSE RadiusOfSimilarity,0.15 -MSE patternLength,2 -MSE maxCoarseGrainings,20 -MSE method,fir -MSE moment,mean -MSE constant r,1 -Entropy on,1 -Entropy RadiusOfSimilarity,0.15 -Entropy patternLength,2 -DFA on,1 -DFA windowlength,[] -DFA increment,[] -DFA minBoxSize,4 -DFA maxBoxSize,[] -DFA midBoxSize,16 -poincare on,1 -HRT on,1 -HRT BeatsBefore,2 -HRT BeatsAfter,16 -HRT GraphOn,0 -HRT windowlength,24 -HRT increment,24 -HRT filterMethod,mean5before -gen figs,0 -save figs,0 -output format,csv -output separate,1 -output num win,[] -output ann format,binary -time,20220824 -filename,20220824 ActigraphyECG diff --git a/HRV_Output/ParametersTable20220824_ActigraphyECG.tex b/HRV_Output/ParametersTable20220824_ActigraphyECG.tex deleted file mode 100644 index 8c6dc4f..0000000 --- a/HRV_Output/ParametersTable20220824_ActigraphyECG.tex +++ /dev/null @@ -1,102 +0,0 @@ -\begin{tabular}{|l|l|} -\hline -Fs&NaN\\\hline -writedata&HRV Output\\\hline -data confidence level&1\\\hline -windowlength&300\\\hline -increment&30\\\hline -numsegs&5\\\hline -RejectionThreshold&0.2\\\hline -MissingDataThreshold&0.15\\\hline -rawsig&0\\\hline -debug&0\\\hline -sqi LowQualityThreshold&0.9\\\hline -sqi windowlength&10\\\hline -sqi increment&1\\\hline -sqi TimeThreshold&0.1\\\hline -sqi margin&2\\\hline -preprocess figures&0\\\hline -preprocess gaplimit&2\\\hline -preprocess per limit&0.2\\\hline -preprocess forward gap&3\\\hline -preprocess method outliers&rem\\\hline -preprocess lowerphysiolim&0.375\\\hline -preprocess upperphysiolim&2\\\hline -preprocess method unphysio&rem\\\hline -preprocess threshold1&0.9\\\hline -preprocess minlength&30\\\hline -af on&1\\\hline -af windowlength&30\\\hline -af increment&30\\\hline -PVC qrsth&0.1\\\hline -timedomain on&1\\\hline -timedomain dataoutput&0\\\hline -timedomain alpha&50\\\hline -timedomain win tol&0.15\\\hline -ulf& 0-0.0033\\\hline -vlf&0.0033- 0.04\\\hline -lf& 0.04- 0.15\\\hline -hf& 0.15- 0.4\\\hline -freq on&1\\\hline -freq limits&[]\\\hline -freq zero mean&1\\\hline -freq method&lomb\\\hline -freq plot on&0\\\hline -freq debug sine&0\\\hline -freq debug freq&0.15\\\hline -freq debug weight&0.03\\\hline -freq normalize lomb&0\\\hline -freq burg poles&15\\\hline -freq resampling freq&7\\\hline -freq resample interp method&cub\\\hline -freq resampled burg poles&100\\\hline -sd on&1\\\hline -sd segmentlength&300\\\hline -prsa on&1\\\hline -prsa win length&30\\\hline -prsa thresh per&20\\\hline -prsa plot results&0\\\hline -prsa scale&2\\\hline -prsa min anch&20\\\hline -PeakDetect REF PERIOD&0.25\\\hline -PeakDetect THRES&0.6\\\hline -PeakDetect fid vec&[]\\\hline -PeakDetect SIGN FORCE&[]\\\hline -PeakDetect debug&0\\\hline -PeakDetect ecgType&MECG\\\hline -PeakDetect windows&15\\\hline -MSE on&1\\\hline -MSE windowlength&[]\\\hline -MSE increment&[]\\\hline -MSE RadiusOfSimilarity&0.15\\\hline -MSE patternLength&2\\\hline -MSE maxCoarseGrainings&20\\\hline -MSE method&fir\\\hline -MSE moment&mean\\\hline -MSE constant r&1\\\hline -Entropy on&1\\\hline -Entropy RadiusOfSimilarity&0.15\\\hline -Entropy patternLength&2\\\hline -DFA on&1\\\hline -DFA windowlength&[]\\\hline -DFA increment&[]\\\hline -DFA minBoxSize&4\\\hline -DFA maxBoxSize&[]\\\hline -DFA midBoxSize&16\\\hline -poincare on&1\\\hline -HRT on&1\\\hline -HRT BeatsBefore&2\\\hline -HRT BeatsAfter&16\\\hline -HRT GraphOn&0\\\hline -HRT windowlength&24\\\hline -HRT increment&24\\\hline -HRT filterMethod&mean5before\\\hline -gen figs&0\\\hline -save figs&0\\\hline -output format&csv\\\hline -output separate&1\\\hline -output num win&[]\\\hline -output ann format&binary\\\hline -time&20220824\\\hline -filename&20220824 ActigraphyECG\\\hline -\end{tabular} diff --git a/HRV_Output/ParametersTable20220802_ActigraphyECG.csv b/HRV_Output/ParametersTable20221010_ActigraphyECG.csv similarity index 97% rename from HRV_Output/ParametersTable20220802_ActigraphyECG.csv rename to HRV_Output/ParametersTable20221010_ActigraphyECG.csv index 9e80d47..a04c0d3 100644 --- a/HRV_Output/ParametersTable20220802_ActigraphyECG.csv +++ b/HRV_Output/ParametersTable20221010_ActigraphyECG.csv @@ -96,5 +96,5 @@ output format,csv output separate,1 output num win,[] output ann format,binary -time,20220802 -filename,20220802 ActigraphyECG +time,20221010 +filename,20221010 ActigraphyECG diff --git a/HRV_Output/ParametersTable20220823_ActigraphyECG.tex b/HRV_Output/ParametersTable20221010_ActigraphyECG.tex similarity index 97% rename from HRV_Output/ParametersTable20220823_ActigraphyECG.tex rename to HRV_Output/ParametersTable20221010_ActigraphyECG.tex index 4e23663..f0b3164 100644 --- a/HRV_Output/ParametersTable20220823_ActigraphyECG.tex +++ b/HRV_Output/ParametersTable20221010_ActigraphyECG.tex @@ -97,6 +97,6 @@ output separate&1\\\hline output num win&[]\\\hline output ann format&binary\\\hline -time&20220823\\\hline -filename&20220823 ActigraphyECG\\\hline +time&20221010\\\hline +filename&20221010 ActigraphyECG\\\hline \end{tabular} diff --git a/createBecomeFeedback.m b/createBecomeFeedback.m index bac14e4..5e990e3 100644 --- a/createBecomeFeedback.m +++ b/createBecomeFeedback.m @@ -5,7 +5,7 @@ clear close all -subName = 'FOK0208'; % change subject id here +subName = 'FOK0217'; % change subject id here userName = 'dorothee_poehlchen'; % change your name here gitdir = fullfile('C:\Users\',userName,'Documents\GitHub\becomeFeedback'); @@ -81,10 +81,10 @@ % Get dreem data %---------------------------- -% [dreemHypno, dreemReport] = loadSubjectDataDreemSD(dreemdir, subName); % if there is no dreem data COMMENT THIS LINE OUT! -% [allinonePhysSleep] = getPhysiologyDataDreem (dreemReport); -% nightData = synchronize (dreemHypno,allinonePhysSleep,'first','previous'); -% figuresNight = dreemNightFigures(nightData); +[dreemHypno, dreemReport] = loadSubjectDataDreemSD(dreemdir, subName); % if there is no dreem data COMMENT THIS LINE OUT! +[allinonePhysSleep] = getPhysiologyDataDreem (dreemReport); +nightData = synchronize (dreemHypno,allinonePhysSleep,'first','previous'); +figuresNight = dreemNightFigures(nightData); diff --git a/functions/+util/readHypnoFromH5.m b/functions/+util/readHypnoFromH5.m new file mode 100644 index 0000000..0df494c --- /dev/null +++ b/functions/+util/readHypnoFromH5.m @@ -0,0 +1,36 @@ +function hypnoConverted = readHypnoFromH5(h5File) + +info = h5info(h5File); +datasets = util.struct2nestedtable(info.Groups); + + + +info.Attributes = util.struct2nestedtable(info.Attributes); +info.Attributes.Properties.RowNames = info.Attributes.Name; + +datasets.Properties.RowNames = datasets.Name; +datasets = datasets((startsWith(datasets.Name, '/algo')==1),:); + +hypnoDreem = h5read(h5File, [datasets.Name{1},'/dreemnogram']); + +%%Make it hypnogramm compatible%% +%Wake = 5, REM = 4, S1 = 3, S2 = 2, S3 = 1 + +wakeIndex = find(hypnoDreem==0); +s1Index = find(hypnoDreem==1); +s3Index = find(hypnoDreem==3); +hypnoConverted = hypnoDreem; + +hypnoConverted(wakeIndex,:) = 5; +hypnoConverted(s1Index,:) = 3; +hypnoConverted(s3Index,:) = 1; + +%turn it into a timetable +startDate = datetime(info.Attributes.Value{info.Attributes.Name{'start_time'}},'ConvertFrom','posixtime','TimeZone','local'); +hypnoConverted = timetable(hypnoConverted,'TimeStep',seconds(30),'StartTime',startDate); +hypnoConverted.Time.Format = 'dd-MMM-uuuu HH:mm:ss Z'; + +end + + + diff --git a/functions/+util/readReportFromH5.m b/functions/+util/readReportFromH5.m new file mode 100644 index 0000000..8c1bed7 --- /dev/null +++ b/functions/+util/readReportFromH5.m @@ -0,0 +1,6 @@ +function reportRaw = readReportFromH5(h5File) +info = h5info(h5File); +info.Attributes = util.struct2nestedtable(info.Attributes); +info.Attributes.Properties.RowNames = info.Attributes.Name; +reportRaw = struct2table(jsondecode(info.Attributes.Value{'report'}), 'AsArray', true); +end \ No newline at end of file diff --git a/functions/+util/struct2nestedtable.m b/functions/+util/struct2nestedtable.m new file mode 100644 index 0000000..104a140 --- /dev/null +++ b/functions/+util/struct2nestedtable.m @@ -0,0 +1,22 @@ +function res = struct2nestedtable(instruct) +arguments + instruct struct; +end + +res = struct2table(instruct, 'AsArray', true); + +vtypes = varfun(@class,res,'OutputFormat','cell'); +sidxs = find(strcmp(vtypes, 'struct')); + +structstable = table(); +for sidx=sidxs + stable = util.struct2nestedtable(res(:,sidx).Variables); + + structstable.(res.Properties.VariableNames{sidx}) = stable; +end +cols = 1:width(res); +cols(sidxs) = []; + +res = [res(:, cols), structstable]; +end + diff --git a/functions/createBecomeReport.asv b/functions/createBecomeReport.asv new file mode 100644 index 0000000..06011c1 --- /dev/null +++ b/functions/createBecomeReport.asv @@ -0,0 +1,251 @@ +import mlreportgen.report.*; +import mlreportgen.dom.*; +import mlreportgen.utils.*; + +rpt = Report([outdir,'\' subName],'pdf'); +section = Section(); + +%% +plot1 = Image("C:\Users\dorothee_poehlchen\Documents\GitHub\becomeFeedback\functions\firstpage.png"); +% plot1.Width = "4in"; +% plot1.Height = "4in"; +append(section,plot1); + + + +%% SLEEP GOOD TO KNOW +p0a = Paragraph('Allgemeine Information: Schlaf'); +p0a.Style = {Bold,LineSpacing(2.5)}; +p0a.Underline = 'single'; +p0a.FontSize = '14pt'; +add(section, p0a); + +p0 = Paragraph('Schlaf ist ein Zustand der äußeren Ruhe bei Menschen und Tieren. Dabei unterscheiden sich viele Lebenszeichen von denen des Wachzustands. Puls, Atemfrequenz und Blutdruck sinken im sogenannten NREM-Schlaf ab und die Gehirnaktivität verändert sich. Der NREM-Schlaf kann weiter in 3 Unterphasen unterteilt werden, die die Vertiefung des Schlafes (N1