bids.modeling.statsmodels.BIDSStatsModelsGraph

class BIDSStatsModelsGraph(layout, model)[source]

Rooted graph structure representing the contents of a BIDS-StatsModel file.

Parameters:
  • layout (bids.layout.BIDSLayout or 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.

Attributes:
root_node

Returns the graph’s root node.

Methods

get_node(name)

Return the named node.

load_collections([nodes, drop_na])

Load collections in all nodes.

run_graph([entities])

Run the entire graph recursively.

write_graph([dotfilename, format, pipe])

Generates a graphviz dot file and a png file

__init__(layout, model)[source]

Methods

__init__(layout, model)

get_node(name)

Return the named node.

load_collections([nodes, drop_na])

Load collections in all nodes.

run_graph([entities])

Run the entire graph recursively.

write_graph([dotfilename, format, pipe])

Generates a graphviz dot file and a png file

Attributes

root_node

Returns the graph's root node.