-
Notifications
You must be signed in to change notification settings - Fork 0
Qdec
Mehul Gajwani edited this page Mar 3, 2025
·
1 revision
Qdec is a GUI-based function implemented in Freesurfer that allows users to fit GLMs to the surface data.
However, due to some limitations of Qdec, MRI_glmfit is usually used to achieve higher flexibility of the design and contrast design. tksurf is later used for visualisation, extracting ROI/vertex data (e.g, thickness), piloting as well as small-area multiple comparison correction. A detailed notes about these methods can be found here.
- Toolbox for generating surfaces in non-human primates: https://github.com/Macatools/macapype
- Toolbox for doing HCP analyses on non-HCP data: https://edickie.giAn R toolbox for dealing with CIFTI data
- Tutorial for using HCP data: https://github.com/iamdamion/HCP-snippets
- Plotting parcellated results on cortical surfaces while showing ROI boundaries: https://github.com/StuartJO/plotSurfaceROIBoundary
- Plotting things on subcortical surfaces: https://github.com/LCBC-UiO/ggseg3dthub.io/ciftify/#/
Save the xlsx file in to csv file, using tab instead of comma is better.



Make sure -qcache is processed; check as below:

$ recon-all -s sub-320 -qcache
Started at Wed Aug 12 00:53:56 AEST 2020
Ended at Wed Aug 12 01:04:21 AEST 2020
Roughly 10 mins.
Let’s try freesurfer/6.0:
$ module load freesurfer/6.0

$ module load virtualgl
$ vglrun qdec`



This means your qdec is not ready, checking step 0:



Review the results from qDEC


$ module load virtualgl
$ vglrun tksurfer -annot aparc fsaverage lh pial


- Download the latest version of Freesurfer and set environment variables etc
- Download connectme workbench tools: https://www.humanconnectome.org/software/connectome-workbench
- Download (git clone) the GIFTI toolbox: https://github.com/gllmflndn/gifti.git
- Download (git clone) CBIG tools from Thomas Yeo’s Lab: https://github.com/ThomasYeoLab/CBIG
- Download files from the repo:
- Add
MNItoFSAVERAGE.mfile to path - download the files from the
surfacesdirectory (give different representations of LH and RH surfaces)
- Add
- Open matlab
- Open MNItoFSAVERAGE.m and ensure paths in function are all correct for your setup
- Run the function to map the volumetric file to the surface; e.g., MNItoFSAVERAGE(‘myStatMap.nii’,’~/outputDirectory/')
- Open wb_view
- Click skip. A window will appear
- Click File > Open > (set filter to all files) > select lh.surf.gii (or rh.surf.gii) [from Surfaces.zip]. This is an inflated white matter surface. You need to load this first. You can then load the other afterwards and toggle between surfaces. These are representations of the fsaverage brain
- To load an overlay, click Open > File > (set filter to all files) > Select .gii of map
- Click ‘on’ in the bottom left
- Change colour palette using monkey wrench
- Hit yellow button next to overlay control to add/delete overlays
- 0.0 Home
- 0.1 Neuroscience fundamentals
- 0.2 Reproducible Science
- 0.3 MRI Physics, BIDS, DICOM, and data formats
- 0.4 Introduction to Diffusion MRI
- 0.5 Introduction to Functional MRI
- 0.6 Measuring functional and effective connectivity
- 0.7 Connectomics, graph theory, and complexity
- 0.8 Statistical and Mathematical Tidbits
- 0.9 Introduction to Psychopathology
- 0.10 Introduction to Genetics and Bioinformatics
- 0.11 Neural field theory and eigenmodes
- 0.12 Introduction to Programming
- 1.0 Working on the Cluster
- 2.0 Programming Languages
- 2.1 Python
- 2.1.1 Getting Set Up
- 2.1.2 Applications of Python in Neuroimaging
- 2.2 MATLAB
- 2.3 R and RStudio
- 2.4 Programming Intro Exercises
- 2.5 git and GitHub
- 2.6 SLURM and Job Submission
- 2.1 Python
- 3.0 Neuroimaging Tools and Packages
- 3.1 BIDS
- 3.2 FreeSurfer
- 3.2.1 Qdec
- 3.3 FSL
- 3.3.1 ICA-FIX
- 3.4 Connectome Workbench/wb_command
- 3.5 fMRIPrep
- 3.6 QSIPrep
- 3.7 HCP Pipeline
- 3.8 tedana
- 4.0 Quality control
- 4.1 MRIQC
- 4.2 Common Artefacts
- 4.3 T1w
- 4.4 rs-fMRI
- 5.0 Specialist Tools
- 6.0 Putting it all together
- 7.0 Data management