Learn R Programming

⚠️There's a newer version (3.1.0) of this package.Take me there.

brainGraph (version 2.2.0)

Graph Theory Analysis of Brain MRI Data

Description

A set of tools for performing graph theory analysis of brain MRI data. It works with data from a Freesurfer analysis (cortical thickness, volumes, local gyrification index, surface area), diffusion tensor tractography data (e.g., from FSL) and resting-state fMRI data (e.g., from DPABI). It contains a graphical user interface for graph visualization and data exploration, along with several functions for generating useful figures.

Copy Link

Version

Install

install.packages('brainGraph')

Monthly Downloads

568

Version

2.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Christopher G Watson

Last Published

May 29th, 2018

Functions in brainGraph (2.2.0)

brainGraph_boot

Bootstrapping for global graph measures
contract_brainGraph

Contract graph vertices based on brain lobe and hemisphere
cor.diff.test

Calculate the p-value for differences in correlation coefficients
edge_asymmetry

Calculate an asymmetry index based on edge counts
create_mats

Create connection matrices for tractography or fMRI data
plot.bg_GLM

Plot GLM diagnostics for a brain network
IndividualContributions

Approaches to estimate individual network contribution
plot.mtpc

Plot statistics from an MTPC analysis
small.world

Calculate graph small-worldness
plot_brainGraph_gui

GUI for plotting graphs overlaid on an MNI152 image or in a circle.
GraphColors

Color graph vertices and edges
craddock200

Coordinates for data from the Craddock200 atlas
partition

Partition a design matrix into columns of interest and nuisance
dosenbach160

Coordinates for data from the Dosenbach160 atlas
setup_randomise

Helper function to setup for randomise
hoa112

Coordinates for data from Harvard-Oxford atlas
RichClub

Rich club calculations
plot.brainGraph

Plot a brain graph with a specific spatial layout
dk

Coordinates for data from the Desikan-Killiany atlas
dk.scgm

Coordinates for data from the Desikan-Killiany atlas
communicability

Calculate communicability
DataTables

Create a data table with graph global and vertex measures
GraphDistances

Calculate Euclidean distance of edges and vertices
plot.brainGraph_GLM

Plot a graph with results from brainGraph_GLM
corr.matrix

Calculate correlation matrix and threshold
write_brainnet

Write files to be used for visualization with BrainNet Viewer
choose.edges

Select edges for re-wiring.
brainsuite

Coordinates for data from BrainSuite atlas
xfm.weights

Transform edge weights
coeff_var

Calculate coefficient of variation
make_ego_brainGraph

Create a graph of the union of multiple vertex neighborhoods
plot.brainGraph_mediate

Plot a graph with results from a mediation analysis
make_brainGraph

Create a brainGraph object
rich_club_attrs

Assign graph attributes based on rich-club analysis
destrieux

Coordinates for data from the Destrieux atlas
get_lm_vars

Get some variables for LM
destrieux.scgm

Coordinates for data from the Destrieux atlas
GLMhelpers

Helper function to set-up for GLM analyses
robustness

Analysis of network robustness
delete_all_attr

Delete all attributes of a graph
CountEdges

Count number of edges of a brain graph
s_core

Calculate the s-core of a network
is.brainGraph

Determine whether x is a brainGraph object
set_brainGraph_attr

Set graph, vertex, and edge attributes common in MRI analyses
lpba40

Coordinates for data from the LONI probabilistic brain atlas
dkt

Coordinates for data from the Desikan-Killiany-Tourville atlas
plot.brainGraph_mtpc

Plot a graph with results from MTPC
RandomGraphs

Simulate N random graphs w/ same clustering and degree sequence as the input.
plot.brainGraph_permute

Plot results from permutation testing
make_empty_brainGraph

Create an empty graph with attributes for brainGraph
plot_volumetric

Plot group distributions of volumetric measures for a given brain region
plot.brainGraph_resids

Plot model residuals for each brain region
make_glm_brainGraph

Create a graph with GLM-specific attributes
dkt.scgm

Coordinates for data from the Desikan-Killiany-Tourville atlas
make_nbs_brainGraph

Create a graph with NBS-specific attributes
subset_graph

Subset graphs based on a given logical condition
mtpc

Multi-threshold permutation correction
plot_corr_mat

Plot a correlation matrix
plot_global

Plot global graph measures across densities
rotation

Apply a rotation matrix to a set of points
summary.bg_GLM

Print a summary from brainGraph_GLM analysis
symmetrize_mats

Create a symmetric matrix
summary.brainGraph_permute

Print a summary from a permutation analysis
plot_brainGraph_multi

Save PNG of three views of a brain graph
plot_brainGraph_list

Write PNG files for a list of graphs
efficiency

Calculate graph global, local, or nodal efficiency
make_intersection_brainGraph

Create the intersection of graphs based on a logical condition
get.resid

Linear model residuals in structural covariance networks
make_mediate_brainGraph

Create a graph with mediation-specific attributes
rstudent_mat

Calculate studentized residuals with matrix input
plot.brainGraph_NBS

Plot a graph with results from the network-based statistic
plot_vertex_measures

Plot vertex-level graph measures at a single density or threshold
plot.brainGraph_boot

Plot bootstrap output of global graph measures across densities
VertexRoles

Gateway coefficient, participation coefficient, and within-mod degree z-score
vulnerability

Calculate graph vulnerability
plot_rich_norm

Plot normalized rich club coefficients against degree threshold
summary.bg_mediate

Print a summary from a brainGraph mediation analysis
summary.brainGraph

Print a summary of a brainGraph object
update_brainGraph_gui

Function to dynamically plot a graph
vec.transform

Transform a vector to have a different range
apply_thresholds

Threshold additional set of matrices
analysis_random_graphs

Perform an analysis with random graphs for brain MRI data
aal90

Coordinates for data from the AAl90 atlas
aal116

Coordinates for data from the AAl116 atlas
aal2.120

Coordinates for data from the AAL2 atlas
aal2.94

Coordinates for data from the AAL2 atlas
args_as_list

Convert arguments into a single list
bg_to_mediate

Convert brainGraph results to "mediate" object
NBS

Network-based statistic for brain MRI data
brainGraph_GLM

Fit linear models at each vertex of a graph
brainGraph_permute

Permutation test for group difference of graph measures
GLMfit

Fit linear models for t contrasts
brainGraph_GLM_design

Create a design matrix for linear model analysis
centr_lev

Calculate a vertex's leverage centrality
auc_diff

Difference in the area-under-the-curve of two vectors
centr_betw_comm

Calculate communicability betweenness centrality
brainGraph_init

Initialize variables for further use in brainGraph
brainGraph_mediate

Mediation analysis with brain graph measures as mediator variables