Calculate an asymmetry index, a ratio of intra-hemispheric edges in the left to right hemisphere of a graph for brain MRI data.
edge_asymmetry(g, level = c("hemi", "vertex"), A = NULL)
A data table with edge counts for both hemispheres and the asymmetry
index; if level
is vertex, the data table will have
vcount(g)
rows.
An igraph
graph object
Character string indicating whether to calculate asymmetry for
each region, or the hemisphere as a whole (default: 'hemi'
)
Numeric matrix; the adjacency matrix of the input graph. Default:
NULL
Christopher G. Watson, cgwatson@bu.edu
The equation is:
The level
argument specifies whether to calculate asymmetry for each
vertex, or for the whole hemisphere.