You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of calculating the participation coefficient of each node, we have to figure out the modular partition....so it makes sense to add it to the standard nodal measures calculated by calculate_nodal_measures function:
Calculate and store nodal measures as nodal attributes
which can be accessed directly, or using
:func:`BrainNetwork.report_nodal_measures()``
By default calculates:
* `betweenness` : float
* `closeness` : float
* `clustering` : float
* `degree` : int
* `module` : int
* `participation_coefficient` : float
* `shortest_path_length` : float
@Islast - you wrote these two sections. Is there a clear way of explaining the difference? Sorry for my misunderstanding. You're likely going to have to explain something about classes (I've never written them myself!) 😬
The text was updated successfully, but these errors were encountered:
There's not a terribly good reason for this.
The nodal partition is handled by a different function (scona.graph_measures.calc_nodal_partition).
I didn't include module partitioning in scona.graph_measures.calculate_nodal_measures because it is time consuming, however when we call scona.BrainNetwork.calculate_nodal_measures we immediately save the nodal partition so that we only have to calculate it once. In this second case I felt that this was not too time consuming however I now realise that this asymmetry is confusing.
Since nodal partition is an important nodal measure I propose changingscona.graph_measures.calculate_nodal_measures to by default call cal_nodal_partition with an option to suppress this to save time.
As part of calculating the participation coefficient of each node, we have to figure out the modular partition....so it makes sense to add it to the standard nodal measures calculated by
calculate_nodal_measures
function:scona/scona/graph_measures.py
Lines 279 to 295 in b095326
I'm a bit confused though, because in the
calculate_nodal_measures
class then the module is calculated:scona/scona/classes.py
Lines 223 to 241 in b095326
@Islast - you wrote these two sections. Is there a clear way of explaining the difference? Sorry for my misunderstanding. You're likely going to have to explain something about classes (I've never written them myself!) 😬
The text was updated successfully, but these errors were encountered: