|
1 | 1 | classdef NetworkAtlas < nla.DeepCopyable |
2 | | - %NETWORKATLAS Network atlas(also known as infomap) |
3 | | - % Defines ROI positions/information and networks |
| 2 | + % Network atlas (also known as infomap) |
| 3 | + % Defines ROI positions/information and networks |
| 4 | + % |
| 5 | + % :param name: The name of the atlas |
| 6 | + % :param net_names: N\ :sub:`nets`\ x 3 matrix. The names of the networks |
| 7 | + % :param ROI_key: N\ :sub:`ROIs`\ x 2 matrix. First column is ROI (Region Of Interest) indexes, second column is the network they belong to |
| 8 | + % :param ROI_order: N\ :sub:`ROIs`\ x 1 vector. Functional Connectivity data indexes corresponding to ROIs |
| 9 | + % :param ROI_pos: N\ :sub:`ROIs`\ x 3 matrix. Centroid positions for each ROI. |
| 10 | + % :param net_colors: N\ :sub:`nets`\ x 3 matrix. The color of each network when plotted. |
| 11 | + % :param parcels: Optional MATLAB struct field for surface parcellations. Contains two sub-fields ``ctx_l`` and ``ctx_r``. N\ :sub:`verts`\ x 1 vectors. Each element of a vector corresponds to a vertex within the spatial mesh and contains the index of the ROI for that vertex. |
| 12 | + % :param space: Optional The mesh that the atlas` ROI locations/parcels are in. Two options - ``TT`` or ``MNI`` |
| 13 | + |
4 | 14 |
|
5 | 15 | properties (SetAccess = private) |
6 | | - nets |
| 16 | + nets % This is the net_names |
7 | 17 | ROIs |
8 | 18 | ROI_order |
9 | 19 | name |
|
102 | 112 | end |
103 | 113 |
|
104 | 114 | function val = numNets(obj) |
| 115 | + % :returns: The number of networks |
105 | 116 | val = numel(obj.nets); |
106 | 117 | end |
107 | 118 |
|
108 | 119 | function val = numNetPairs(obj) |
| 120 | + % :returns: The number of network pairs |
109 | 121 | val = nla.helpers.triNum(numel(obj.nets)); |
110 | 122 | end |
111 | 123 |
|
112 | 124 | function val = numROIs(obj) |
| 125 | + % :returns: The number of Regions Of Interest (ROIT) |
113 | 126 | val = numel(obj.ROIs); |
114 | 127 | end |
115 | 128 |
|
116 | 129 | function val = numROIPairs(obj) |
| 130 | + % :returns: The number of ROI pairs |
117 | 131 | val = nla.helpers.triNum(numel(obj.ROIs) - 1); |
118 | 132 | end |
119 | 133 | end |
|
0 commit comments