Hello
When using Rob Lukeās BIDS GLM app for fNIRS data, I ran into an error for more than half of my subjects, which is a ValueError stating that " support is only available for experiments where all durations are the same ". But in fact, they are the same (8s each). Iāve looked into the events.tsv and channels.tsv and they look no different to the other subjects - except for exact onsets and samples of course. For the same sub, thereās sometimes even one session working while the other is producing the error.
What those subjects all have in common is the read_raw_bids()
function throwing the following warning after reading events:
:1: RuntimeWarning: Limited 1 annotation(s) that were expanding outside the data range.
As I am fairly new to mne-bids, my question now is: Can I somehow gain insight into what causes this warning? And what is my ādata rangeā exactly? Iāve already looked for some mne.io.Raw methods to use, but that led me nowhere useful so far and now Iām a little stuck. Where do I have to start digging? Iād appreciate any help!
Below are 1) my specs, 2) execution of the GLM app + error message, as well as 3) how the events.tsv file looks like.
Cheers,
Dani
1)
- MNE version: 1.0.2
- MNE-bids version: 0.10
- operating system: Ubuntu 20.04
2)
GLM app execution:
{'ApplicationName': 'fNIRS-Apps: GLM Pipeline',
'ApplicationVersion': 'v0.3.4',
'Arguments': {'export_drifts': False,
'export_shorts': False,
'input_datasets': '/bids_dataset',
'output_location': '/bids_dataset/derivatives/fnirs-apps-glm-pipeline',
'sample_rate': 0.6,
'session_label': ['01'],
'short_regression': True,
'subject_label': ['03'],
'task_label': None},
'ExecutionStart': '2022-04-25T10:01:23.527725'}
Extracting subject metadata.
Subject data provided as input argument.
Subjects: ['03']
Extracting session metadata.
Session data provided as input argument.
Sessions: ['01']
Extracting tasks metadata.
Session data will be extracted from data.
Tasks: ['GoNoGo']
Processing: sub-03/ses-01/task-GoNoGo
Loading /bids_dataset/sub-03/ses-01/nirs/sub-03_ses-01_task-GoNoGo_nirs.snirf
Reading events from /bids_dataset/sub-03/ses-01/nirs/sub-03_ses-01_task-GoNoGo_events.tsv.
/run.py:156: RuntimeWarning: Limited 1 annotation(s) that were expanding outside the data range.
raw_intensity = read_raw_bids(bids_path=bids_path, verbose=True)
Reading channel info from /bids_dataset/sub-03/ses-01/nirs/sub-03_ses-01_task-GoNoGo_channels.tsv.
Not fully anonymizing info - keeping his_id, sex, and hand info
Reading 0 ... 4247 = 0.000 ... 521.956 secs...
Resampling to 0.6 Hz
Traceback (most recent call last):
File "/run.py", line 234, in <module>
raw, cha, roi = individual_analysis(b_path, sub,
File "/run.py", line 171, in individual_analysis
raise ValueError("Support is only available for experiments where "
ValueError: Support is only available for experiments where all durations are the same. See https://github.com/rob-luke/fnirs-apps-glm-pipeline/issues/1
3)
How the respective events.tsv looks like:
onset | duration | trial_type | value | sample |
---|---|---|---|---|
88.24220000000001 | 8.0 | Go | 1 | 718 |
96.23070000000001 | 8.0 | Go | 1 | 783 |
ā¦ | ||||
515.6884 | 8.0 | NoGo | 2 | 4196 |