intro-to-mrtools

Introduction to mrTools

This site provides some (self-paced) teaching material to get up to speed with mrTools, a set of Matlab tools for analyzing MRI data (https://github.com/justingardner/mrTools).

:memo: On some pages, there is a bit of maths / linear algebra, which shows up only when you look at the rendered version intro-to-mrtools. You can have a look at the source materials and any code on the github repo page.

There is a worked walk-through of an analysis of anatomical / fMRI data with a view to programming your own analysis and scripting reproducible pipelines. Along the way, we try to provide some additional info about mrTools internals, some programming conventions, and ideas for how you may adapt the tools for your use case.



mrTools provides a set of Matlab tools to analyze fMRI data. It can do basic analyses like correlation analyses used in retinotopy experiments, event-related, population RF and GLM analyses. It can display the results of analyses on inplane anatomies, flat maps and surfaces. It is designed to make it easy to write your own script and programs in Matlab to analyze your data. http://gru.stanford.edu/doku.php/mrtools/overview https://www.cns.nyu.edu/heegerlab/wiki/doku.php?id=mrtools:top (mirror)

Gardner, Justin L., Merriam, Elisha P., Schluppeck, Denis, Besle, Julien, & Heeger, David J. (2018, June 28). mrTools: Analysis and visualization package for functional magnetic resonance imaging data (Version 4.7). Zenodo. http://doi.org/10.5281/zenodo.1299483

DOI

Pre-requisites, additional reading

To make most of this material, it’s a good idea to have worked through some of the tutorials hosted on Justin Gardner’s (JLG) webpage:

There is also quite detailed documentation on the code http://gru.stanford.edu/mrTools (mirrored: https://www.cns.nyu.edu/heegerlab/wiki/doku.php?id=mrtools:top)

Downloads / installs

Dependencies

I (@schluppeck) made the videos and materials running with

Code snippets for this tutorial

You can grab the markdown documents and data from which this webpage + tutorial is made by cloning the followowing repo:

cd ~/matlab/ # or where you want to download to
git clone https://github.com/nottingham-neuroimaging/intro-to-mrtools.git

Any problems?

If you encounter any problems with the material, running it on non-macOS platforms, if you find bugs or have suggestions for improvements, please file an issue on the github page.

Videos

There is a youtube playlist for the videos in this series:

Youtube playlist intro-to-mrtools

Week Topic
1 getting started / setup / data / mrInit
2 a quick look at the mrLoadRet gui
3 the data model / data structures (intro)
4 details about data views
5 interacting with the dataset (interrogators)
6 first steps with scripting
7 alignments / mrAlign - moving between spaces
8 more alignment / transforms / moving between spaces
 
  making custom plots (interrogater example)
  finding functions / documentation (mrSearchHelp, webpages, general best ways)
  making use of freesurfer segmentations / flat maps
 

Data

The data for working through the materials is included in the data subfolder on this github repo. These were acquired during a session w/ the MSc Brain Imaging students 2017/18 (Project: Using neuroimaging for education: fMRI, EEG and MEG (ED-NIMG) #E11122014).

Colophon

Written by Denis Schluppeck (started 2020-07)