[go: up one dir, main page]

Skip to content

This script lets you easily extract a specific binary mask file from the HCP-MMP1.0 parcellation.

License

Notifications You must be signed in to change notification settings

davidwisniewski/fmri-extract-HCP-mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fmri-extract-HCP-mask

This script lets you easily extract a specific volumetric, binary mask file from the HCP-MMP1.0 parcellation atlas.

Set up

  1. Download all files.
  2. Unzip HCP_atlas.zip.
  3. Check that both the atlas files (.nii) and the mmp.csv file are in the same folder.

How to use

This is a simple script that takes the volumetric map of the Human Connectome Project MMP1.0 parcellation (included here), extracts a desired ROI, and saves it as a binary mask file. The volumetric map is in MNI space, and so will be the resulting mask files.

  1. Go to the ROI lookup table (mmp.csv). Find the ROI you are interested in, and write down the ROI code (num.roi column). You can run multiple ROIs or just one.
  2. call the create_HCP_mask() function.

Function input

  • the roicode/s you looked up
  • the folder where you put the atlas files
  • an output folder
  • operation: If you picked multiple rois you can either save all separately ('single'), or combine them into a single large ROI ('sum').
  • laterality: You can select whether you want to extract left ('l'), right ('r'), or bilateral ('b') ROIs.
  • dilation: Select whether you want to dilate the resulting ROI masks. The script will expand the ROI by n voxels in each direction, where n is the number you enter here. Default: n = 0 (no dilation).

Example: create_HCP_mask([1:3], '/MyAtlasFolder/', '/MyOutputFolder/', 'single', 'b', 2)

Sources

The atlas and lookup table files used here are not mine, all credits to the creators:

Requirements

  • downloaded all files and unzip the HCP_atlas.zip file
  • Matlab + SPM12 installed

Bugs / Improvements

If you find bugs in this script or have suggestions for improvement, please report both here https://github.com/davidwisniewski/fmri-extract-HCP-mask/issues

Contact

david.wisniewski@ugent.be

About

This script lets you easily extract a specific binary mask file from the HCP-MMP1.0 parcellation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages