rdann cannot find file on specified path (Physionet wfdb)
Show older comments
Hi there,
I am working with physionet data (2018 you snooze you loose compitition) and the wfdb toolbox. I am trying to use the rdann function to read the .annotation data;
annRead = rdann(recordName, annotator)
As per the docuemntation I should be able to specify the full pathname for "recordName" and the file extention for "annotator" so for file "tr03-0005.arousal" it would look something like this;
recordName = ('H:\PhD_DataBase\physionet.org\files\challenge-2018\1.0.0\training\tr03-0005\tr03-005.arousal') % Location, NB: each patient has their own file and subfold with identical names
annotator = ('arousal') %arousal file type
annRead = rdann(recordName, annotator); % call rdann func
When I attempt to run the above I get the error 'Command exited with non-zero status!!' which I am assuming means the file cannot be found, however the folder (and subfolders) have been added to path and are listed in 'Set Path'. However if I try,
isfile('H:\PhD_DataBase\physionet.org\files\challenge-2018\1.0.0\training\tr03-0005\tr03-0005.arousal')
a logical 1 is returned so the file can be found.
Has anyone had success opening the .arousal files for this dataset (2018 you snooze you loose compitition) with rdann?
The files are open source data so I will include a couple patients in the structure provided. I can read in the .mat and .hea files no problem but I need the .arousals (not the trXX-XXXX-arousal.mat file those are fine but the actual .arousal files). I have stripped out the data files as they are too large to upload but the .arousal, .hea and (arousal).mat are still there. I care about the .arousal files as it has more information included than the trXX-XXXX-arousal.mat files.
Kinds regards,
Christopher
6 Comments
Star Strider
on 18 Jan 2022
Physionet has undergone some changes in the past few years, and it’s been a bit difficult for me to keep up with them. (Finding and bookmarking the ATM recently took a bit of effort.) I have not done that challenge (or any others), so the only recommendation I have is to contact Physionet directly and ask them. They have always responded to me when I had questions, usually within a couple days.
I definitely do consider this to be a MATLAB question, since Physionet is quite MATLAB-friendly and I see a lot of posts here using those database files, although not always correctly.
.
Christopher McCausland
on 18 Jan 2022
Star Strider
on 18 Jan 2022
Thank you! I am and I hope you are as well.
Please follow up here with whatever Physionet suggests, and your results with it.
As always, my pleasure!
Christopher McCausland
on 26 Jan 2022
Ullah Nadeem
on 3 Jan 2023
Edited: Ullah Nadeem
on 4 Jan 2023
Hi, had you resolved this issue?
Christopher McCausland
on 3 Jan 2023
Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!