-
Notifications
You must be signed in to change notification settings - Fork 49
Description
Detailed Description
The content of a BIDS physiological file contains is described in its companion .json file - where an important entry contains the column header.
At the moment, phys2bids fills that entry either using the name of the channels from the original file or using the list that the user provides with the option -chnames.
Look at the channels from our tutorial file,

It's quite easy for a human (that has a little acquaintance with physiological recordings) to make an educated guess on what is the content of each channel. We could write a function that does that "educated guess" and suggests a column header for each channel to the user.
Context / Motivation
BIDS suggests specific column headers for the files, and it would be great if we could help the standardisation of this report by adding such function.
Possible Implementation
The first thing that comes up in my mind would be a sort of pattern recognition function/comparison with a database of physiological recordings.
Triggers are normally spiky (or blocky), pulses have quite a recognisable pattern, respiration another one. Chest expansion-based respiration recordings are normally smoother than others, while O2 and CO2 could have tidal shape responses and they are normally the inverse of each other.
@RayStick @BrightMG @CesarCaballeroGaudes and @rmarkello might have even better ideas!