Learn R Programming

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

brainGraph (version 2.0.2)

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

581

Version

2.0.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Christopher G Watson

Last Published

February 23rd, 2018

Functions in brainGraph (2.0.2)

apply_thresholds

Threshold additional set of matrices
aal116

Coordinates for data from the AAl116 atlas
NBS

Network-based statistic for brain MRI data
brainGraph_mediate

Mediation analysis with brain graph measures as mediator variables
brainGraph_permute

Permutation test for group difference of graph measures
craddock200

Coordinates for data from the Craddock200 atlas
brainsuite

Coordinates for data from BrainSuite atlas
create_mats

Create connection matrices for tractography or fMRI data
choose.edges

Select edges for re-wiring.
coeff_var

Calculate coefficient of variation
DataTables

Create a data table with graph global and vertex measures
delete_all_attr

Delete all attributes of a graph
dkt

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

Helper function for GLM fitting
mtpc

Multi-threshold permutation correction
hoa112

Coordinates for data from Harvard-Oxford atlas
dkt.scgm

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

Create a graph of the union of multiple vertex neighborhoods
make_empty_brainGraph

Create an empty graph with attributes for brainGraph
plot.bg_GLM

Plot GLM diagnostics for a brain network
plot.brainGraph_boot

Plot bootstrap output of global graph measures across densities
partition

Partition a design matrix into columns of interest and nuisance
plot.brainGraph

Plot a brain graph with a specific spatial layout
plot_brainGraph_gui

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

Write PNG files for a list of graphs
plot.brainGraph_mediate

Plot a graph with results from a mediation analysis
plot_vertex_measures

Plot vertex-level graph measures at a single density or threshold
plot_volumetric

Plot group distributions of volumetric measures for a given brain region
rstudent_mat

Calculate studentized residuals with matrix input
RandomGraphs

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

Calculate the s-core of a network
randomise

Randomize and fit a model and find the maximum statistic
robustness

Analysis of network robustness
summary.brainGraph_boot

Print a summary from a bootstrap analysis
rotation

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

Print a summary from a permutation analysis
vec.transform

Transform a vector to have a different range
VertexRoles

Gateway coefficient, participation coefficient, and within-mod degree z-score
summary.NBS

Print a summary of NBS analysis
summary.bg_GLM

Print a summary from brainGraph_GLM analysis
aal2.120

Coordinates for data from the AAL2 atlas
aal2.94

Coordinates for data from the AAL2 atlas
centr_betw_comm

Calculate communicability betweenness centrality
centr_lev

Calculate a vertex's leverage centrality
GraphColors

Color graph vertices and edges
communicability

Calculate communicability
destrieux

Coordinates for data from the Destrieux atlas
destrieux.scgm

Coordinates for data from the Destrieux atlas
efficiency

Calculate graph global, local, or nodal efficiency
get.resid

Linear model residuals across brain regions
make_glm_brainGraph

Create a graph with GLM-specific attributes
make_intersection_brainGraph

Create the intersection of graphs based on a logical condition
plot.brainGraph_resids

Plot model residuals for each brain region
plot.mtpc

Plot statistics from an MTPC analysis
rich_club_norm

Calculate the normalized rich club coefficient
rich_core

Calculate the rich core of a graph
aal90

Coordinates for data from the AAl90 atlas
brainGraph_GLM

Fit linear models at each vertex of a graph
analysis_random_graphs

Perform an analysis with random graphs for brain MRI data
GraphDistances

Calculate Euclidean distance of edges and vertices
brainGraph_GLM_design

Create a design matrix for linear model analysis
corr.matrix

Calculate correlation matrix and threshold
CountEdges

Count number of edges of a brain graph
dk.scgm

Coordinates for data from the Desikan-Killiany atlas
dk

Coordinates for data from the Desikan-Killiany atlas
subset_graph

Subset graphs based on a given logical condition
lpba40

Coordinates for data from the LONI probabilistic brain atlas
summary.bg_mediate

Print a summary from a brainGraph mediation analysis
summary.brainGraph

Print a summary of a brainGraph object
xfm.weights

Transform edge weights
make_brainGraph

Create a brainGraph object
plot.brainGraph_GLM

Plot a graph with results from brainGraph_GLM
plot.brainGraph_NBS

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

Save PNG of three views of a brain graph
plot_corr_mat

Plot a correlation matrix
auc_diff

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

Plot global graph measures across densities
plot_rich_norm

Plot normalized rich club coefficients against degree threshold
set_brainGraph_attr

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

Convert brainGraph results to "mediate" object
setup_glm

Helper function to set-up for GLM analyses
symmetrize_mats

Create a symmetric matrix
GLMfit

Fit linear models for t contrasts
update_brainGraph_gui

Function to dynamically plot a graph
vulnerability

Calculate graph vulnerability
brainGraph_boot

Bootstrapping for global graph measures
write_brainnet

Write files to be used for visualization with BrainNet Viewer
contract_brainGraph

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

Calculate the p-value for differences in correlation coefficients
dosenbach160

Coordinates for data from the Dosenbach160 atlas
edge_asymmetry

Calculate an asymmetry index based on edge counts
IndividualContributions

Approaches to estimate individual network contribution
is.brainGraph

Determine whether x is a brainGraph object
make_mediate_brainGraph

Create a graph with mediation-specific attributes
make_nbs_brainGraph

Create a graph with NBS-specific attributes
plot.brainGraph_mtpc

Plot a graph with results from MTPC
plot.brainGraph_permute

Plot results from permutation testing
rich_club_attrs

Assign graph attributes based on rich-club analysis
rich_club_coeff

Calculate the rich club of a graph
small.world

Calculate graph small-worldness
setup_randomise

Helper function to setup for randomise
summary.brainGraph_resids

Print a summary of residuals for structural covariance data
summary.mtpc

Print a summary of MTPC results
args_as_list

Convert arguments into a single list
brainGraph_init

Initialize variables for further use in brainGraph