User guide¶
Note
You can download the user guide and examples for offline viewing.
This user guide is especially directed towards grad students with a background in computer science, machine learning, computational biology or neuroscience. However, less or more advanced readers can also find interesting pieces of information throughout the guide.
Table of contents¶
- 1. Introduction
- 2. What is
nilearn
? - 3. Using
nilearn
for the first time - 4. Machine learning applications to Neuroimaging
- 5. Decoding and MVPA: predicting from brain images
- 5.1. An introduction to decoding
- 5.2. Choosing the right predictive model for neuroimaging
- 5.3. FREM: fast ensembling of regularized models for robust decoding
- 5.4. SpaceNet: decoding with spatial structure for better maps
- 5.5. Searchlight : finding voxels containing information
- 5.6. Running scikit-learn functions for more control on the analysis
- 6. Functional connectivity and resting state
- 6.1. Extracting times series to build a functional connectome
- 6.2. Connectome extraction: inverse covariance for direct connections
- 6.3. Extracting functional brain networks: ICA and related
- 6.4. Region Extraction for better brain parcellations
- 6.4.1. Fetching movie-watching based functional datasets
- 6.4.2. Brain maps using Dictionary learning
- 6.4.3. Visualization of Dictionary learning maps
- 6.4.4. Region Extraction with Dictionary learning maps
- 6.4.5. Visualization of Region Extraction results
- 6.4.6. Computing functional connectivity matrices
- 6.4.7. Visualization of functional connectivity matrices
- 6.4.8. Validating results
- 6.5. Clustering to parcellate the brain in regions
- 7. Plotting brain images
- 7.1. Different plotting functions
- 7.2. Different display modes
- 7.3. Available Colormaps
- 7.4. Adding overlays, edges, contours, contour fillings, markers, scale bar
- 7.5. Displaying or saving to an image file
- 7.6. Surface plotting
- 7.7. Interactive plots
- 8. Analyzing fMRI using GLMs
- 9. Manipulation brain volumes with nilearn
- 9.1. Input and output: neuroimaging data representation
- 9.2. Manipulating images: resampling, smoothing, masking, ROIs…
- 9.3. From neuroimaging volumes to data matrices: the masker objects
- 9.3.1. The concept of “masker” objects
- 9.3.2.
NiftiMasker
: applying a mask to load time-series - 9.3.3. Extraction of signals from regions:
NiftiLabelsMasker
,NiftiMapsMasker
- 9.3.4. Extraction of signals from regions for multiple subjects:
MultiNiftiMasker
,MultiNiftiLabelsMasker
,MultiNiftiMapsMasker
- 9.3.5. Extraction of signals from seeds:
NiftiSpheresMasker
- 10. Advanced usage: manual pipelines and scaling up
- 10.1. Building your own neuroimaging machine-learning pipeline
- 10.2. Downloading statistical maps from the Neurovault repository