tanguyduval / spm12-apps

New neuroimaging technologies in SPM: BIDS, docker, boutique, and quality control

Home Page:http://www.fil.ion.ucl.ac.uk/spm/software/spm12/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository includes the following spm apps:

  • BIDS: for dicom to BIDS conversion and for parsing a BIDS folder. BIDS is the standard for neuroimaging data organization: http://bids.neuroimaging.io
  • Boutiques: for running any dockerized neuroimaging tool (e.g. FSL, Freesurfer, ANTs, ...). Boutiques is the standard describing these tools https://boutiques.github.io/
  • Quality Control: includes a module for exporting nifti results as an interactive Html page and an advanced Nifti viewer with ROI tools (for drawing a mask).

Documentation

INSTALL

  1. Install spm12 if you don't have it: https://www.fil.ion.ucl.ac.uk/spm/software/spm12/
  2. [R2014b or later] Copy-Paste in your Matlab command line:
% CHANGE DIRECTORY to default Matlab path
if isempty(userpath), userpath('reset'); end
cd(userpath)
% DOWNLOAD spm-apps
websave('spm12-apps.zip','https://github.com/tanguyduval/spm12-apps/archive/master.zip')
unzip spm12-apps.zip
% ADD to Matlab path
addpath(fullfile('spm12-apps-master','BIDS'))
addpath(fullfile('spm12-apps-master','Boutiques'))
addpath(fullfile('spm12-apps-master','QualityControl'))
savepath
% RUN spm Batch Editor
cfg_util('initcfg')
cfg_ui

[R2014a or older] In spm Batch Editor: File-->Add Application-->select cfg_mlbatch_appcfg.m in each folder

FEATURES

BIDS parser module

create a participant BIDS pipeline in just a minute

  • Fill module as follows

  • Preview your BIDS dataset

  • add a new module BasicIO>FileOperation>Gunzip files
  • Use the dependency button and select one modality (e.g. dwi) and fill as follows

  • Add additional modules or just click the run icon. Subject 1 session 1 will be processed.
    Results will be saved into bidsfolder/derivatives/matlabbatch/sub-NAME/ses-SESSION/DWI/
  • Click on the run for all subjects icon (double play icon) to loop across all subjects/sessions
  • Save your single participant pipeline using the save icon into a m-file
  • Share your pipeline.

Boutiques

(run FSL, ANTS, Freesurfer, ... or your own app)

Use pre-existing Boutiques files

Create a Custom Boutiques file
  • Add a new Generic module

    • Fill the module as follows
      Use Docker: docker images with preinstalled neuroimaging softwares can be found on https://hub.docker.com/
      bids/mrtrix3-connectome includes ANTS MRtrix3 and FSL docker images will be automatically downloaded and inputs/output folders mounted
      if you choose "NO", command will be run locally
    • Reload modules
cfg_util('initcfg')
cfg_ui
  • Use your preset module in an other pipeline

  • Your preset is saved under spm-apps\Boutiques\Boutiques

About

New neuroimaging technologies in SPM: BIDS, docker, boutique, and quality control

http://www.fil.ion.ucl.ac.uk/spm/software/spm12/


Languages

Language:MATLAB 96.7%Language:HTML 1.8%Language:C 0.9%Language:JavaScript 0.3%Language:Java 0.2%Language:CSS 0.1%Language:Objective-C 0.1%Language:M 0.0%