Coding, fMRI, & Stats Help
Below are some resources that can be helpful for you if you are learning to code, or already know how but are looking to improve or learn new tricks.
Also included are resources for statistical analyses (behavior and fMRI), version control (git), learning about neural networks, and medial temporal lobe segmentation.
There are also a variety of summer schools you can apply to which will train you in various topics. Here is a list of a few that are offered and here is a github repository of a more comprehensive list.
Programming
General
Program better, for fun and profit
Basic and more advanced code snippets (several languages, including Python and R)
This website lists several different programming/analysis tutorials
Online Experiments
Mechanical Turk Tutorial
Another Mechanical Turk Tutorial
Matlab Toolbox for communicating with MTurk
psiTurk (for use with Mechanical Turk; includes ready-made experiments shared by others)
Pavlovia – Run PsychoPy (Python) experiments online
Gorilla (for building online experiments)
Matlab
Matlab for the behavioral sciences
MathWorks Matlab tutorial
Matlab documentation
Matlab course (via coursera)
Overview of handy Matlab commands
Psychtoolbox tutorial
Psychtoolbox wiki
Princeton MVPA toolbox (Matlab-based)
Quest (Matlab-based toolbox for staircasing)
Sample Matlab Code
artmuse_nBack_sampleCode.m (Psychtoolbox code; from Aly & Turk-Browne, 2016, PNAS)
nBack stimuli (to use with above code)
artmuse_nBack_analysisCode.m (analysis code for n-back data)
addRandomPhase.m (make phase-scrambled images)
Unix
Unix Shell Tutorial from Foundations for Research Computing
R
An introduction to linear mixed-effects modeling in R
Power analysis in R
Intro to R – Manual
R for Data Science (free book)
Introduction to R (another free book)
Introductory R course
ANOVA in R (afex)
ggplot2
colors in ggplot2
Elementary statistics with R
More advanced R tutorial
Introduction to mixed models in R
Aly-RCommands-Tutorial.R (Mariam’s excessive cheat sheet for R commands)
Python
Python on Codecademy
PsychoPy
A really useful PsychoPy tutorial
OpenSesame (experiment builder with a GUI and Python)
Python Data Science Handbook (free book)
Python tutorial from Foundations for Research Computing
scikit-learn (general-purpose machine learning in Python)
Nilearn (machine learning for neuroimaging in Python)
PyMVPA (MVPA in Python)
Stats and Analysis Help
General
An introduction to mixed-effects models for experimental psychology
Best practice guidance for linear mixed-effects models in psychological science
A (visual) introduction to mixed effects models
Interactive guide to basic probability and stats
Andy Conway’s stats lectures
Effect Size Calculator
A primer for calculating effect sizes
Transforming stimulus size to visual angle, or vice versa
Robust correlation toolbox (for Matlab)
Two-way repeated-measures ANOVA (Matlab)
ROC toolbox (Matlab) [related paper]
ROC demo
Shiny app for analytic power analyses of two-way interactions
Shiny app for sample size justification
Simulating power for mixed-effects models
Simulating datasets for mixed-effects models (to pair with above reference on simulating power)
Power analysis in R
Conversions between partial eta squared and Cohen’s d
General fMRI
Andy’s Brain Book (fMRI tutorials)
NIH fMRI course – slides & videos (summer 2018)
fMRI Bootcamp (videos by Rebecca Saxe)
Neurostars (online community for fMRI help)
Neuropipe (pipeline for fMRI – highly recommended; our lab’s forked version is here, and tips for using Neuropipe on our server are here)
NeuroElf (Matlab toolbox for fMRI)
Simitar (Matlab-based searchlight analysis toolbox)
Neuroimaging Data Processing Wiki (intro to fMRI analyses)
BIDS (for organization & description of fMRI data)
mriqc (quality control)
fmriprep (preprocessing pipeline)
Mumford Brain Stats (fMRI help)
practiCal fMRI
Neurodesign (toolbox to optimize fMRI expt design)
Power calculation guide for fMRI studies
FSL
FEAT user guide (FSL)
Handy FSL functions
Permutation tests in FSL (randomise)
Permutation tests in FSL (PALM)
FSLeyes (the new fslview)
SPM
SPM12 Manual
fMRI quality assurance toolbox
Eye Tracking
GazeAlyze (Matlab toolbox for eye tracking analyses)
BubbleView (eye tracking proxy that makes use of mouse clicks)
BubbleView adapted for jsPsych
TurkEyes (various interfaces for collecting attention data without eye movements)
Data Visualization
iWantHue color palette generator
Fundamentals of Data Visualization (book written in R Markdown!)
Beeswarm plots (Matlab)
Beeswarm plots ®
Bounded line plot – draw shaded boundaries around a line to represent error/CIs (Matlab)
Circular graph for illustrating network connections (Matlab)
Color calculator
Color wheel
ColorBrewer
Repair polygon artifact in Matlab vector exports
Neural Networks
Version control
A book about Git
Git tutorial for behavioral scientists
Git in 10 minutes
A link collection for Git
Version Control with Git (Tutorial from Foundations for Research Computing)
Medial temporal lobe imaging and analysis
Guide to functional imaging of the MTL
MTL segmentation guide
Hippocampal subfield harmonization group
ASHS (automated segmentation approach)

