This function is not quite a "proper" function. It performs the steps needed for doing typical graph theory analyses with brain MRI data if you need to generate equivalent random graphs. This includes calculating small world parameters and normalized rich club coefficients.
analysis_random_graphs(g.list, N = 100, savedir = ".", ...)
List of lists containing igraph
graph objects
Integer specifying number of random graphs to generate per individual graph (default: 100)
Character string specifying the directory in which to save the generated graphs (default: current working directory)
Other arguments passed to sim.rand.graph.par
(e.g.
clustering=T
)
A list containing:
A data table containing normalized rich-club coefficients and p-values
A data table with small-world parameters
A data table with some global graph measures for all random graphs generated
The steps that are performed are:
N
random graphs are generated for each group and
density/threshold (and subject if you have subject-specific graphs).
These graphs are all written to disk in savedir
. All of these
are read back into R
and combined into lists; these lists are also
written to disk (in a sub-directory named ALL
), so you can delete
the individual .rds
files afterwards.
Small world parameters are calculated, along with values for a few global graph measures that may be of interest.
Normalized rich club coefficients and associated p-values will be calculated.
Other Random graph functions: RandomGraphs
,
RichClub
# NOT RUN {
rand_all <- analysis_random_graphs(g.norm, 1e2,
savedir='/home/cwatson/dti/rand', clustering=F)
# }
Run the code above in your browser using DataLab