analysis_random_graphs: Perform an analysis with random graphs for brain MRI data

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/analysis_random_graphs.R

Description

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.

Usage

1
analysis_random_graphs(g.list, N = 100, savedir = ".", ...)

Arguments

g.list

List of lists containing igraph graph objects

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 sim.rand.graph.par (e.g. clustering=T)

Details

The steps that are performed are:

  1. N random graphs are generated for each group and density/threshold (and subject if you have subject-specific graphs).

  2. 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.

  3. Small world parameters are calculated, along with values for a few global graph measures that may be of interest.

  4. Normalized rich club coefficients and associated p-values will be calculated.

Value

A list containing:

rich

A data table containing normalized rich-club coefficients and p-values

small

A data table with small-world parameters

rand

A data table with some global graph measures for all random graphs generated

Author(s)

Christopher G. Watson, [email protected]

See Also

small.world

Other Random graph functions: RandomGraphs, RichClub

Examples

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)

brainGraph documentation built on May 29, 2018, 9:03 a.m.