Skip to content

Reproducible and Programmatic Human Neuroimaging Visualisations

Notifications You must be signed in to change notification settings

sidchop/RepoNeuroVis

Repository files navigation

A Practical Guide for Generating Reproducible and Programmatic Neuroimaging Visualizations

Paper

Neuroimaging visualizations form the centerpiece of the interpretation and communication of scientific results, and are also a cornerstone for data quality control. Often, these images and figures are produced by manually changing settings on Graphical User Interfaces (GUIs). There now exist many well-documented code-based brain visualization tools that allow users to programmatically generate publication-ready figures directly within R, Python and MATLAB environments. Here, we provide a rationale for the wide-spread adoption of code-generated brain visualizations by highlighting corresponding advantages in replicability, flexibility, and integration over GUI based tools. We then provide a practical guide outlining the steps required to generate these code-based brain visualizations. We also present a comprehensive table of tools currently available for programmatic brain visualizations (https://sidchop.shinyapps.io/braincode_selector/) and provide didactic examples of visualizations and associated code as a point of reference. Finally, we provide a web-app (https://sidchop.shinyapps.io/braincode/) which can generate simple code-templates as starting points for these visualizations.

Full paper: A Practical Guide for Generating Reproducible and Programmatic Neuroimaging Visualizations. Chopra, Sidhant., Labache, L., Dhamala, E., Orchard, E., Holmes. A.


Tool finder:

To assists researchers in finding a code-based brain visualization tool, we have provided a interactive table: https://sidchop.shinyapps.io/braincode_selector/. If you think that we have missed a code-based package/library or tool box which can generate brain visualization directly within in R, python or MATLAB environments, please creating an issue on this GitHub page or leave a comment on this google sheet.


Template generator (R & Python):

Brain-Code: A web-app for generating code templates for brain visualizations

To assist new users transition into generating code-based brain visualizations we have developed a web-app (https://sidchop.shinyapps.io/braincode/) which allows for interactive generation of code-templates for beginner friendly libraries/packages in R and Python. In the web-app, users can select R or Python as their coding environment, and choose between voxel, ROI, vertex, and edge-level visualizations. They can then manually adjust a limited set of visualization setting, such as color-scales and view, and are provided with a reactive code-template which can be copied and then used within their respective programming environment. The provided code templates require users to customize the code, such as alter file-paths. The available settings have been purposefully limited to allow users to explore and fine-tune additional visualization options within their own programming environment. The code-template also contains links and prompts to more detailed documentation, alternate packages/libraries and tutorials which allow for more complex and publication-ready brain visualizations. If the web-app (https://sidchop.shinyapps.io/braincode/) becomes unavailable, bundled version can be downloaded and executed locally using R or Python using the following links:

Note: This web-app is still being refined, so some features are a little slow and we are working on the UI. Please feel free to leave feedback by creating an issue on this GitHub page.

Interface for BrainCode web-app which generates simple code-based templates for brain visualizations. (1) Select your programming environment (R or Python). (2) Select your visualization type (Voxel, Region, Vertex and Edge). (3) Manually adjust limited visualization settings and examine how it reactively changes the visualization (4) and code template (5). (5) Copy the code template into your programming environment, change file-paths to your own data and explore other visualization settings offered by the functions.

Examples of figures made within R and Python:  

Examples of figures made in Python:

Questions

Please contact me (Sidhant Chopra) as sidhant.chopra@yale.edu and/or sidhant.chopra4@gmail.com

About

Reproducible and Programmatic Human Neuroimaging Visualisations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages