bids.analysis.auto_model

auto_model(layout, scan_length=None, one_vs_rest=False)[source]

Create a simple default model for each of the tasks in a BIDSLayout. Contrasts each trial type against all other trial types and trial types at the run level and then uses t-tests at each other level present to aggregate these results up.

Parameters:
  • layout (BIDSLayout) –
  • scan_length (Int) – where the scan length can not be read from the nifti. Primarily for testing.
  • one_vs_rest (Bool) – contrasts of each trial type against everyother trialtype.
Returns:

models (list) list of model dictionaries for each task