frites.conn.conn_net#

frites.conn.conn_net(da, roi='roi', order=None, sep='-', invert=False, verbose=None)[source]#

Compute the net on directed connectivity.

This function can be used to compute the net difference on directed connectivity (i.e. A - B = A->B - B->A).

Parameters
daxr.DataArray

Xarray DataArray containing the connectivity array

roi‘roi’

Name of the spatial dimension

orderpython:list | python:None

List of names for specifying the final order

seppython:str | ‘-’

Separator between brain region names (e.g. if ‘Insula->Thalamus’ then sep is ‘->’)

invertbool | python:False

Specify whether the difference should be computed with A - B or B - A

Returns
outxr.DataArray

DataArray, with the same dimension names as the input, representing the net difference of directed connexions.