|
|
# Brain Imaging Data Structure (BIDS)
|
|
|
PhysIO supports physiological logfiles prepared according to the [BIDS standard](https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/06-physiological-and-other-continous-recordings.html)
|
|
|
|
|
|
- In brief, BIDS files are (optionally compressed) tab-separated values
|
|
|
(`*.tsv[.gz]`) files that contain raw traces of peripheral recordings from
|
|
|
cardiac and respiratory sources, as well as scan trigger events
|
|
|
- The header of the columns of this `*.tsv` file, as well as meta-information,
|
|
|
such as sampling rate and relative onset of physiological logging to MRI scan
|
|
|
onset is described in an accompanying `*.json` file
|
|
|
- It is assumed to have the that this `*.json` file has the same name
|
|
|
(apart from the extension) as the `*.tsv` file
|
|
|
- If PhysIO does not find this file, you can manually enter the timing
|
|
|
information in the `log_files` structure, and a default column order of
|
|
|
(cardiac, respiratory, trigger) is assumed
|
|
|
- Example `*.tsv` file (with cardiac, respiratory, trigger column
|
|
|
:
|
|
|
```
|
|
|
-0.949402 -0.00610382 0
|
|
|
-0.949402 -0.00610382 0
|
|
|
-0.951233 -0.00915558 0
|
|
|
-0.951233 -0.00915558 0
|
|
|
-0.953064 -0.0122073 0
|
|
|
-0.953064 -0.0122073 0
|
|
|
-0.95459 -0.0076297 1
|
|
|
-0.95459 -0.0076297 0
|
|
|
```
|
|
|
- Example `*.json` file:
|
|
|
```
|
|
|
{
|
|
|
"SamplingFrequency": 50.0,
|
|
|
"Columns": [
|
|
|
"cardiac",
|
|
|
"respiratory",
|
|
|
"trigger"
|
|
|
],
|
|
|
"StartTime": -255.45
|
|
|
}
|
|
|
```
|
|
|
- See `tapas_physio_read_physlogfiles_bids.m` for more details and technical
|
|
|
documentation.
|
|
|
|
|
|
# BioPac
|
|
|
|
|
|
## Mat-file Export (`.mat`)
|
... | ... | |