Skip to content
forked from spm/spm12

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

Notifications You must be signed in to change notification settings

tanguyduval/spm12-apps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • MATLAB 96.6%
  • HTML 1.8%
  • C 0.9%
  • JavaScript 0.3%
  • Java 0.2%
  • CSS 0.1%
  • Other 0.1%