Open mrikasper opened 2 years ago
Correspondence of BIDS columns to ons_secs
fields:
trigger
= ons_secs.svolpulse
(is a time vector, has to be transformed into the right row of the .tsv
file)
tapas_physio_create_scan_timing
svolpulse
to row in .tsv
file via find(ons_secs.svolpulse(iVolume)==ons_secs.t)
or similarcardiac
= ons_secs.c
tapas_physio_read_physlogfiles
respiratory
= ons_secs.r
@mrikasper where can I find the sampling frequency? Is it physio.log_files.sampling_interval? Also I am committing into the branch created from the issue, if you want to have a look
Related to this common user request, it would be great to also allow for the extraction of derived physiological measures (RVT, HRV) at the initial sampling frequency
physio.mat
file
Create a function to write out continuous physiological recordings
physio.ons_secs.[t,c,r,svolpulse]
according to BIDS in a function, e.g.,code/readin/tapas_physio_write_physlogfiles_BIDS.m
This function should be called within
tapas_physio_main_create_regressors
either after syncing (labeled part 2 of the file) or preprocessing (part 3 of the file would be a BIDS derivative, but maybe more useful?)_physio-cardiac
,_physio-respiratory
etc. as in specification (or resample?).json
files: https://bids-specification.readthedocs.io/en/stable/02-common-principles.html#tabular-files.json
with vendor-specific metadata:Question: where is output file(s) saved?
physio.BIDS_out
filetapas_physio_new
, and call in example scriptsub-01_task-visual_run-1_physio.{json,tsv.gz}