bids.analysis.analysis.AnalysisNode

class AnalysisNode(level, collection, contrasts, input_nodes=None, dummy_contrasts=None)[source]

A single analysis node generated within a Step.

Parameters
  • level (str) – The level of the Node. Most be one of ‘run’, ‘session’, ‘subject’, or ‘dataset’.

  • collection (bids.variables.kollekshuns.BIDSVariableCollection) – The BIDSVariableCollection containing variables at this Node.

  • contrasts (list) – A list of contrasts defined in the originating Step.

  • dummy_contrasts (list) – Optional dictionary specifying which conditions to create indicator contrasts for. Dictionary must include a “type” key (‘t’ or ‘FEMA’), and optionally a subset of “conditions”. This parameter is over-written by the setting in setup() if the latter is passed.

Attributes
contrasts
entities

Methods

get_contrasts(self[, names, variables])

Return contrast information for the current block.

get_design_matrix(self[, names, format, …])

Get design matrix and associated information.

matches_entities(self, entities[, strict])

Determine whether current AnalysisNode matches passed entities.

__init__(self, level, collection, contrasts, input_nodes=None, dummy_contrasts=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, level, collection, contrasts)

Initialize self.

get_contrasts(self[, names, variables])

Return contrast information for the current block.

get_design_matrix(self[, names, format, …])

Get design matrix and associated information.

matches_entities(self, entities[, strict])

Determine whether current AnalysisNode matches passed entities.

Attributes

contrasts

entities