Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/analysis_random_graphs.R
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.
1  analysis_random_graphs(g.list, N = 100, savedir = ".", ...)

g.list 
List of lists containing 
N 
Integer specifying number of random graphs to generate per individual graph (default: 100) 
savedir 
Character string specifying the directory in which to save the generated graphs (default: current working directory) 
... 
Other arguments passed to 
The steps that are performed are:
N
random graphs are generated for each group and
density/threshold (and subject if you have subjectspecific 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 subdirectory 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 pvalues will be calculated.
A list containing:
rich 
A data table containing normalized richclub coefficients and pvalues 
small 
A data table with smallworld parameters 
rand 
A data table with some global graph measures for all random graphs generated 
Christopher G. Watson, [email protected]
Other Random graph functions: RandomGraphs
,
RichClub
1 2 3 4 5  ## Not run:
rand_all < analysis_random_graphs(g.norm, 1e2,
savedir='/home/cwatson/dti/rand', clustering=F)
## End(Not run)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.