Code Monkey home page Code Monkey logo

r-for-brain-network's Introduction

R for brain network

Why R for brain network?

Human brain network derived from functional magnetic resonance imaging (fMRI) data are often analyzed and visualize using a combination of MATLAB or network-visualization software (e.g., cytoscape, gephi).

However, much of graph analysis can be accomplished in R. Here, I document a graph-analysis workflow of fMRI resting-state network in R. This allows easy integration with other statistical analysis conducted on the targeted graph measures (e.g., degree, participation coefficient, modularity, system segregation).

This repository includes documentation of the following:

  • Manipulate gifti (surface), nifti (volume), cifti (surface + volume) in R to generate network matrices
    • Checkout the cifti markdown file for most updated workflow (3/5/2019).
    • Most future addition would focus on cifti, as the combination of surface and volumetric data (subcortical) are preferrable.
  • Calculate network metrics/measures
  • Visualize network matrices and graphs
  • Analyze data
  • Visualize results

Prerequisites

  • The gifti and cifti packages are required to read in gifti or cifti files.
  • gridExtra & ggplotify for arranging the plots. pals for color pallete.
  • A forked version of the r package superheat is used for most of the visualization. Example:

  • The igraph is used to make network visualizaiton (i.e., hairball/spring graphs)

Acknowledgments

  • The superheat package was super convenient for my work. Check out the original author's vignette for examples.
  • The gifti and cifti packages from John Muschelli are obviously critical for interacting with these data format.

r-for-brain-network's People

Contributors

mychan24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

r-for-brain-network's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.