HBClab / NiBetaSeries

Nipype implementation of BetaSeries Correlations (Beta)
https://nibetaseries.readthedocs.io
MIT License
32 stars 28 forks source link

How to deal with event files from multiple runs? #325

Closed LilianYou closed 4 years ago

LilianYou commented 4 years ago

Dear expert,

I'm trying to conduct beta series analyses for multiple runs simultaneously. I am a little confused about how should I manipulate the event file. The tutorial only deals with one event file from one run, but how should I deal with multiple event files from multiple runs (all saved in one folder)? Do I need to combine events from all runs in one data frame? If I save them separately, how should I name it? Here is a screenshot of manipulation of a single event file:

Screen Shot 2020-06-11 at 8 49 57 PM

Best, Lily

jdkent commented 4 years ago

Hi Lily,

If you have two bold runs named

sub-033_task-boldRun1_run-1_bold.nii.gz
sub-033_task-boldRun1_run-2_bold.nii.gz

Then you would want two event files in the same directory named:

sub-033_task-boldRun1_run-1_events.tsv
sub-033_task-boldRun1_run-2_events.tsv

nibetaseries will attempt to run on all properly named files in the bids directory if no filters are specified.

Hope that helps! James

LilianYou commented 4 years ago

Hi James,

I think I got it. I thought that event_df created new data to be used later, but it's actually just changing the data format in the tsv file. Thanks.

Best, Lily