rdann cannot find file on specified path (Physionet wfdb)

4 ビュー (過去 30 日間)
Christopher McCausland
Christopher McCausland 2022 年 1 月 18 日
編集済み: Ullah Nadeem 2023 年 1 月 4 日
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 件のコメント
Ullah Nadeem
Ullah Nadeem 2023 年 1 月 3 日
編集済み: Ullah Nadeem 2023 年 1 月 4 日
Hi, had you resolved this issue?
Christopher McCausland
Christopher McCausland 2023 年 1 月 3 日
Hi Ullah,
I created a list of filenames from the downloaded data files and used this to create a list of annotations files which looped through as they were pulled from the server. My final comment (above) has full details.
Kind regards,
Christopher

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeHistorical Contests についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by