dirconn.simulation.inverse.roi_series#

dirconn.simulation.inverse.roi_series(data: TimeSeries, head: HeadModel, rois: Sequence[str], *, method: str = 'mne', reg: float | None = None, mode: str = 'pca_flip') → TimeSeries#

Return the time courses of regions estimated from sensor data.

Parameters:
  • data (TimeSeries) – Sensor data with exactly the channels of head, in its order.

  • head (HeadModel)

  • rois (sequence of str) – DK labels such as "precuneus-rh"; the series come back in this order.

  • method (see spatial_filter().)

  • reg (see spatial_filter().)

  • mode ({"pca_flip", "mean_flip"}) – See extract_roi().

Returns:

One cortical node per region, with the segmentation and time axis of data. The amplitude is in the arbitrary units of the filter.

Return type:

TimeSeries