MoAE#

/demos/MoAE
    ├── models
    └── options

This “Mother of All Experiments” is based on the block design dataset of SPM.

In the options folder has several examples of how to encode the options of your analysis in a json file.

In the models shows the BIDS statistical model used to run the GLM of this demo.

preprocessing + stats#

moae_01_bids_app#

# MoAE demo

This script shows how to use the bidspm BIDS app

  • Download

    • download the dataset from the FIL for the block design SPM tutorial

  • Preprocessing

    • copies the necessary data from the raw to the derivative folder,

    • runs spatial preprocessing

    those are otherwise handled by the workflows:

  • Stats

    This will run the subject level GLM and contrasts on it of the MoaE dataset

    • GLM specification + estimation

    • compute contrasts

    • show results

    that are otherwise handled by the workflows

Note

Results might be a bit different from those in the SPM manual as some default options are slightly different in this pipeline (e.g use of FAST instead of AR(1), motion regressors added)

type bidspm help or bidspm(‘action’, ‘help’) or see this page: https://bidspm.readthedocs.io/en/stable/bids_app_api.html for more information on what parameters are obligatory or optional

stats with fmriprep output + default stats model#

moae_fmriprep#

This script will run the FFX and contrasts on it of the MoAE dataset using the fmriprep preprocessed data

If you want to get the preprocessed data and you have datalad on your computer you can run the following commands to get the necessary data:

datalad install --source git@gin.g-node.org:/SPM_datasets/spm_moae_fmriprep.git \
        inputs/fmriprep
cd inputs/fmriprep && datalad get *.json \
                  */*/*tsv \
                  */*/*json \
                  */*/*desc-preproc*.nii.gz \
                  */*/*desc-brain*.nii.gz

Otherwise you also grab the data from OSF: https://osf.io/vufjs/download

region of interest#

moae_02_create_roi_extract_data#

This script shows how to create a ROI and extract data from it.

Warning

This is “double dipping” as we use the same data to create the ROI we are going to extract the value from.

slice display#

moae_03_slice_display#

This script shows how to display the results of a GLM by having on the same image:

  • the beta estimates

  • the t statistics

  • ROI contours