Learn R Programming

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

brainGraph (version 2.7.3)

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

736

Version

2.7.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Christopher G Watson

Last Published

November 7th, 2019

Functions in brainGraph (2.7.3)

brainsuite

Coordinates for data from BrainSuite atlas
coeff_var

Calculate coefficient of variation
choose.edges

Select edges for re-wiring.
craddock200

Coordinates for data from the Craddock200 atlas
rotation

Apply a rotation matrix to a set of points
auc_diff

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

Calculate communicability betweenness centrality
args_as_list

Convert arguments into a single list
create_mats

Create connection matrices for tractography or fMRI data
centr_lev

Calculate a vertex's leverage centrality
FreesurferAtlases

Coordinates for data from Freesurfer atlases
check_weights

Check for edge weights
delete_all_attr

Delete all attributes of a graph
DataTables

Create a data table with graph global and vertex measures
check_strength

Check for presence of a strength attribute
check_degree

Check for presence of a degree attribute
AAL

Coordinates for data from the AAL-based atlases
make_brainGraph

Create a brainGraph object
communicability

Calculate communicability
import_scn

Import data for structural connectivity analysis
IndividualContributions

Approaches to estimate individual network contribution
efficiency

Calculate graph global, local, or nodal efficiency
hoa112

Coordinates for data from Harvard-Oxford atlas
apply_thresholds

Threshold additional set of matrices
make_ego_brainGraph

Create a graph of the union of multiple vertex neighborhoods
plot_brainGraph_list

Write PNG files for a list of graphs
brainGraph_permute

Permutation test for group difference of graph measures
cor.diff.test

Calculate the p-value for differences in correlation coefficients
GLM

Fit linear models at each vertex of a graph
contract_brainGraph

Contract graph vertices based on brain lobe and hemisphere
get_lm_vars

Get some variables for LM
make_intersection_brainGraph

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

Plot a graph with results from MTPC
symm_mean

Symmetrize a matrix with the mean of off-diagonal elements
plot_volumetric

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

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

Calculate vertex hubness
make_mediate_brainGraph

Create a graph with mediation-specific attributes
RandomGraphs

Perform an analysis with random graphs for brain MRI data
GLMfit

Fit linear models for t contrasts
symmetrize_mats

Create a symmetric matrix
xfm.weights

Transform edge weights
Residuals

Linear model residuals in structural covariance networks
update_brainGraph_gui

Function to dynamically plot a graph
lpba40

Coordinates for data from the LONI probabilistic brain atlas
update_fs_names

Update column names in a Freesurfer table
MediationAnalysis

Mediation analysis with brain graph measures as mediator variables
make_nbs_brainGraph

Create a graph with NBS-specific attributes
is.brainGraph

Determine whether x is a brainGraph object
setup_randomise

Helper function to setup for randomise
make_empty_brainGraph

Create an empty graph with attributes for brainGraph
GraphColors

Color graph vertices and edges
CountEdges

Count number of edges of a brain graph
make_glm_brainGraph

Create a graph with GLM-specific attributes
plot.brainGraph

Plot a brain graph with a specific spatial layout
rich_club_attrs

Assign graph attributes based on rich-club analysis
RichClub

Rich club calculations
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
rstudent_mat

Calculate studentized residuals with matrix input
Bootstrapping

Bootstrapping for global graph measures
NBS

Network-based statistic for brain MRI data
plot.brainGraph_mediate

Plot a graph with results from a mediation analysis
partition

Partition a design matrix into columns of interest and nuisance
s_core

Calculate the s-core of a network
corr.matrix

Calculate correlation matrix and threshold
GraphDistances

Calculate Euclidean distance of edges and vertices
mtpc

Multi-threshold permutation correction
set_brainGraph_attr

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

Analysis of network robustness
small.world

Calculate graph small-worldness
vec.transform

Transform a vector to have a different range
GLMdesign

Create a design matrix for linear model analysis
VertexRoles

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

Calculate an asymmetry index based on edge counts
subset_graph

Subset graphs based on a given logical condition
dosenbach160

Coordinates for data from the Dosenbach160 atlas
plot_corr_mat

Plot a correlation matrix
GLMhelpers

Helper function to set-up for GLM analyses
plot_global

Plot global graph measures across densities
vulnerability

Calculate graph vulnerability
plot_rich_norm

Plot normalized rich club coefficients against degree threshold
plot_vertex_measures

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

Write files to be used for visualization with BrainNet Viewer