dirconn.viz.dominant_networks#
- dirconn.viz.dominant_networks(regions: Sequence[Any], networks: Sequence[Any]) DataFrame#
Assign every region to the network that holds most of its vertices.
- Parameters:
regions (sequence of mne.Label) – The regions (for example the Desikan-Killiany parcellation of
fsaverage).networks (sequence of mne.Label) – The networks, named
7Networks_<k>-<hemi>, and anything else (the medial wall), which never wins but counts against the share.
- Returns:
Indexed by region name, with
network(the name fromYEO_NETWORKS, or None when the region touches no network),share(that network’s vertices over all the region’s) anddominant(share >= MIN_DOMINANT_SHARE). Only networks of the region’s own hemisphere are compared, and a tie goes to the first network.- Return type:
pandas.DataFrame