Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in ConvertRawDataToRRIntervals #34

Open
amisepa opened this issue Dec 21, 2021 · 2 comments
Open

Error in ConvertRawDataToRRIntervals #34

amisepa opened this issue Dec 21, 2021 · 2 comments

Comments

@amisepa
Copy link

amisepa commented Dec 21, 2021

I can successfully run ConvertRawDataToRRIntervals on most of my raw ECG files, but not on some, and I cannot figure out why. They don't different visually.

I get the following error:

image

The problem seems to come from run_sqrs that returns an empty sqrs_ann line 60 of ConvertRawDataToRRIntervals.

Desktop:

  • Windows 10
  • Matlab 2021b
@GiuliaDAP
Copy link
Contributor

Dd you check if the ECG recordings for which you get the error message are very short or shorter than the window used for the analysis?
https://github.com/cliffordlab/PhysioNet-Cardiovascular-Signal-Toolbox/blob/master/InitializeHRVparams.m#L163

@amisepa
Copy link
Author

amisepa commented Jan 15, 2022

Thank you. The files are ~120 s long so that's probably why.

I had HRVparams.windowlength set to the length (in s) of each file. Is it actually a sliding window that should be shorter than the file length? I did not set the HRVparams.sqi.windowlength parameter si I am guessing it is using default 10 s?

Thanks for the link, I did not see all these preprocessing parameters before. For the HRVparams.preprocess.method_outliers, would you recommend the 'pchip' or the 'curb' method to interpolate the outliers? I think some files have a lot of artifacts and end up being too short after rejection, leading to the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants