bids.analysis
.Analysis¶
-
class
Analysis
(layout, model)[source]¶ Represents an entire BIDS-Model analysis.
Parameters: - layout (BIDSLayout, str) – A BIDSLayout instance or path to pass on to the BIDSLayout initializer.
- model (str or dict) – a BIDS model specification. Can either be a string giving the path of the JSON model spec, or an already-loaded dict containing the model info.
Methods
setup
([steps, drop_na])Set up the sequence of steps for analysis. -
setup
(steps=None, drop_na=False, **kwargs)[source]¶ Set up the sequence of steps for analysis.
Parameters: - steps (list) – Optional list of steps to set up. Each element must be either an int giving the index of the step in the JSON config block list, or a str giving the (unique) name of the step, as specified in the JSON config. Steps that do not match either index or name will be skipped.
- drop_na (bool) – Boolean indicating whether or not to automatically drop events that have a n/a amplitude when reading in data from event files.