Charestlab / pyGLMdenoise

python implementation of GLMdenoise
6 stars 6 forks source link

pass design by onset time and duration pairs #77

Open CompuNeuroPsychiatryLabEinKerem opened 3 years ago

CompuNeuroPsychiatryLabEinKerem commented 3 years ago

Hi,

Similarly to the Matlab toolbox - is there a way to pass the design by onset+duration pairs rather than a matrix? If so, what is the format?

Thanks!

JasperVanDenBosch commented 2 years ago

Hi @CompuNeuroPsychiatryLabEinKerem Sorry for taking so long to reply to this. The answer is yes, if you pass a dataframe with onset and duration columns, such as obtained by reading a BIDS events file, to the GLMdenoise.fit() method, it should work.