Differences between revisions 14 and 15
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
The following are images from the base OAS2_0057_before coronal slices 175 and 205, respectively.<<BR>> The following are before images from the base OAS2_0057 coronal slices 175 and 205, respectively.<<BR>>
Line 13: Line 13:
recon-all -autorecon-pial -autorecon3 -base OAS2_0057_before recon-all -autorecon-pial -autorecon3 -base OAS2_0057
Line 15: Line 15:
----
Line 18: Line 18:
recon-all -long OAS2_0057_MR1 OAS2_0057_before* -all
recon-all -long OAS2_0057_MR2 OAS2_0057_before* -all
recon-all -long OAS2_0057_MR1 OAS2_0057 -all
recon-all -long OAS2_0057_MR2 OAS2_0057 -all
Line 21: Line 21:
*Note: here we use OAS2_0057_before as the base name to keep it consistent with the file you are using for the edits, but note that in your actual data, the base name cannot be renamed to something else (e.g. _before, _edit) unless it's after it's already ran/reran. So if you want a copy of the before version, rename that to baseid_before and edit the baseid version.
Line 34: Line 34:
tkmedit OAS2_0057_MR1.long.OAS2_0057_before -brainmask.mgz -aux T1.mgz -surfs
Line 36: Line 35:
tkmedit OAS2_0057_MR1.long.OAS2_0057_fixed -brainmask.mgz -aux T1.mgz -surfs

top | previous

Making Pial Surfaces Edits

  • To follow this exercise exactly be sure you've downloaded the tutorial data set before you begin. If you choose not to download the data set you can follow these instructions on your own data, but you will have to substitute your own specific paths and subject names.

Towards the anterior region of the brain, notice that there's a lot of dura remaining from the skullstrip making the pial surface extend further out from the grey matter. In these cases, manual edits will be the quickest way to fix the problem. Also notice that this problem exists in all three stages: cross, base, and long. Except for very special cases (e.g. comparing cross sectional vs. longitudinal processing) you will not need the final cross-sectional results, but instead use the longitudinal results for downstream analysis. Therefore, it is easiest and quickest now to just edit the base, and then rerun the base and longitudinal data from there. If you prefer to correct the cross-sectionals, you can also do that, the base should automatically be fixed, but needs to be checked. Remember to delete the base directory when you are recreating the new base from your edited time points, or at least delete the brainmask.mgz file from the mri directory of the base before rerunning it, to make sure that the updates are transferred.

The following are before images from the base OAS2_0057 coronal slices 175 and 205, respectively.


We will step through the quick route of just editing the base. After deleting the extra dura from brainmask.mgz, rerun the base with the following command:

recon-all -autorecon-pial -autorecon3 -base OAS2_0057

To rerun the longitudinals, use the following commands (note - it is better if you delete or rename the existing longitudinal directories for this subject. Or you can delete the brainmask.mgz in the mri directories if you don't want to delete the whole subjectdir, maybe because of other edits in the long runs. If the brainmask.mgz exists in the long runs, it won't copy the pial edits that were done on the base.)

recon-all -long OAS2_0057_MR1 OAS2_0057 -all
recon-all -long OAS2_0057_MR2 OAS2_0057 -all


Here is the final output of the base for the same slices, 175 and 205:
0057_175_after.jpg 0057_205_after.jpg

and the longitudinals, OAS2_0057_MR1.long.OAS2_0057 (slice 183) and OAS2_0057_MR2.long.OAS2_0057 respectively:


You can compare these results with the before-edit versions in tkmedit.

tkmedit OAS2_0057_MR1.long.OAS2_0057 -brainmask.mgz -aux T1.mgz -surfs
tkmedit OAS2_0057_MR1.long.OAS2_0057_fixed -brainmask.mgz -aux T1.mgz -surfs

FsTutorial/LongPialEdits (last edited 2011-12-07 13:03:58 by KhoaNguyen)