-
Notifications
You must be signed in to change notification settings - Fork 1
binary_roi_files
Mandy Renfro edited this page Apr 8, 2018
·
1 revision
- Create new folder for masks
- Navigate to your new folder containing the copied underlay image
- Create a copy of the underlay image for the mask:
mri_convert /home/data/madlab/surfaces/{experiment}/{sub ID}/mri/brainmask.mgz
brainmask.nii.gz
- Open AFNI by typing "afni" in terminal
- Open the "Define Datamode ->" menu, then click "Plugins"
- Select "Draw Dataset" from the drop-down menu
- If you are making the mask for the first time, make sure the "Copy Dataset" box above is yellow and the drop-down to the right says "zero".
- This will create a matrix of zeros on which you will trace your mask
- Click "Choose dataset for copying", then select the structural image
- Double-click the file name, then hit "Set"
- The new file will bear the word "COPY-" plus the name of the original file
- Immediately exit AFNI and rename the new copy according to your intended mask region:
- e.g. "lh_caudate_anat_mask.nii.gz"
- Open AFNI and again set the underlay as the original structural image
- Open the "Define Datamode ->" menu, then click "Plugins"
- This time, make sure to uncheck the "Copy Dataset" option
- Click on "Choose dataset to change directly" and select your newly named matrix of zeros
- Double-click the file name, then hit "Set"
- Ensure "Value" on the AFNI Editor [A] is set to "1"
- DO NOT HIT "DONE" ON THE CURRENT WINDOW TITLED "AFNI Editor [A]". Doing so will close the editor function and you will not be able to access the pen function!
-
Click on "Underlay", then select the structural image
- Double-click on name, then "Set"
-
Click on "Overlay", then select the newly named copy
- Make sure "See Overlay" is yellow (or it won't be displayed)
- You are now finally ready to begin drawing your masks!
- Of the three views, select the window that allows you the best view of the region you wish to mask
- Enlarge the window for ease of viewing by clicking the bottom right corner and dragging diagonally
- The bar below the image represents the number of slices in the volume (~255) and serves as a way to keep track of where you are in space. Drag the gray boxes or use the arrow keys to navigate
- On the right side of the window, you'll see options:
- Adjusting the color overlay opacity will help you apply the borders of the masked area properly
- You must select the "pen" option to begin drawing on the image
- Cycle through the slices until you are finished, then click "Save" on the AFNI Editor [A] window
- Moving DICOMs to HPC
- DICOM Conversion
- Freesurfer Recon_All, Quality Assurance, and Resubmission
- Preprocessing
- Normalization To Be Completed
- Creation of EV Files
- First Level Analysis
- Second Level Analysis To Be Completed
- Group Level Analysis To Be Completed
- DWI To Be Completed