|
Size: 6656
Comment:
|
Size: 7607
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| *To follow this exercise exactly be sure you've downloaded the [https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/Data tutorial data set] before you begin. This set of exercises is not possible without the [https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/Data tutorial data set]. | [[FsTutorial|top]] | [[FsTutorial/OutputData|previous]] |
| Line 4: | Line 4: |
| * If you are taking one of the formally organized courses, the data is already installed on the computer provided to you. If not, then to follow this exercise exactly be sure you've downloaded the [[FsTutorial/Data|tutorial data set]] before you begin. This set of exercises is not possible without the [[FsTutorial/Data|tutorial data set]]. Please set the environmental variable {{{TUTORIAL_DATA}}} to the location that you have downloaded the data to (here, it has been copied to $FREESURFER_HOME/subjects): ---- {{{ tcsh setenv TUTORIAL_DATA $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs }}} ---- *Notice the command to open tcsh. If you are already running the tcsh command shell, then the 'tcsh' command is not necessary. |
|
| Line 5: | Line 13: |
| This set of exercise will take you through a few examples of problem outputs, asking you to identify the problems and possible methods to fix the problems. Each example will have a before and after picture, as well as an explanation of how to fix the problems seen. | This set of exercises will take you through a few examples of problem outputs, asking you to identify the problems and possible methods to fix the problems. Each example will have a before and after picture, as well as an explanation of how to fix the problems seen. |
| Line 7: | Line 15: |
| Below is a list of common things that require manual intervention. As you move through this exercise there will be links to pages instructing you how to fix these problems. While you are trying to identify the problems with the subjects listed below you may find it helpful to refer back to the [wiki:Self:FsTutorial/OutputData previous exercise], or open your own instane of the subject good_output to compare these subjects to a good example. | Below is a list of common things that require manual intervention. As you move through this exercise there will be links to pages instructing you how to fix these problems. While you are trying to identify the problems with the subjects listed below you may find it helpful to refer back to the [[FsTutorial/OutputData|previous exercise]], or open your own instance of the subject good_output to compare these subjects to a good example. |
| Line 9: | Line 17: |
| *Skull strip *Edits to the wm volume *Edits to the brainmask volume *Adding control points *Talairach transformation |
<<==TableOfContents==>> == Correcting topological defects == First make sure you have your SUBJECTS_DIR set to the correct location: ---- {{{ tcsh setenv SUBJECTS_DIR $TUTORIAL_DATA cd $SUBJECTS_DIR }}} ---- Now you can open the subject, topo_defect_before, in tkmedit. ---- {{{ tkmedit topo_defect_before brainmask.mgz \ lh.white -aux wm.mgz -aux-surface rh.white |
| Line 15: | Line 34: |
| == Subject 1 == | }}} ---- This will open the brainmask.mgz volume, the wm.mgz loaded as aux, and the surfaces for both hemispheres. |
| Line 17: | Line 38: |
| First make sure you have your SUBJECTS_DIR set to the correct location: | You can feel free to open other volumes in aux or to load in the aseg.mgz if you want or need to. Take a look at this subject, inspecting the various outputs that were mentioned in the [[FsTutorial/OutputData|previous exercise]] and see if you can indentify what is wrong. Click [[FsTutorial/TopologicalDefect|here]] for detailed instructions on how you can fix it. You can also compare this to the finished version, topo_defect_after. == Edits to the wm volume == Now, take a look at the next subject, wm1_edits_before. ---- |
| Line 19: | Line 46: |
| setenv SUBJECTS_DIR $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs | tkmedit wm1_edits_before brainmask.mgz \ lh.white -aux T1.mgz -aux-surface rh.white |
| Line 21: | Line 50: |
Now you can open the first subject, subject1_before, in tkmedit. {{{ tkmedit subject1_before brainmask.mgz lh.white -aux T1.mgz -aux-surface rh.white }}} This will open the brainmask.mgz volume, the T1.mgz loaded as aux, and the surfaces for both hemispheres. Open a second terminal window and open the surfaces in tksurfer: {{{ setenv SUBJECTS_DIR $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs tksurfer subject1_before lh inflated & tksurfer subject1_before rh inflated & }}} This will open the inflated surfaces for both hemisphere in tksurfer. You can feel free to open other volumes in aux or to load in the aseg.mgz if you want or need to. Take a look at this first subject, inspecting the various outputs that were mentioned in the [wiki:Self:FsTutorial/OutputData previous exercise] and see if you can indentify what is wrong. If you are stuck and you need a [wiki:Self:FsTutorial/TroubleshootingHints hint] you can click for some help. When you think you've identified the problem, click [wiki:Self:FsTutorial/SkullStripFix here] for detailed instructions on how you can fix it. You can also compare this to the finished version, subject1_after. == Subject 2 == Now, take a look at the next subject, subject2_before. {{{ tkmedit subject2_before brainmask.mgz lh.white -aux T1.mgz -aux-surface rh.white }}} |
---- |
| Line 50: | Line 54: |
| ---- | |
| Line 51: | Line 56: |
| setenv SUBJECTS_DIR $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs tksurfer subject2_before lh inflated & tksurfer subject2_before rh inflated & |
tksurfer wm1_edits_before lh inflated & tksurfer wm1_edits_before rh inflated & |
| Line 55: | Line 59: |
| ---- | |
| Line 57: | Line 62: |
| You may need to open other volumes in order to see or fix the problem. Take a look through this subject and see if you can identify what is wrong. | The trouble with this subject has occurred during the white matter segmentation step. Check the surfaces to find the spot that does not match the actual boundaries. If you load the wm.mgz volume as the aux volume you will see a hole in this area. If you are looking in tksurfer you will see a hole or dimple in the inflated surface. You can use the "save point" "goto point" commands to find this spot in the volume. You may need to open other volumes in order to see or fix the problem. |
| Line 59: | Line 65: |
| If you are stuck and you need a [wiki:Self:FsTutorial/TroubleshootingHints hint] you can click for some help. | Click [[FsTutorial/WhiteMatterEdits|here]] for detailed instructions on how you can fix it. You can also compare this to the finished version, wm1_edits_after. |
| Line 61: | Line 67: |
| When you think you've identified the problem, click [wiki:Self:FsTutorial/WhiteMatterEdits here] for detailed instructions on how you can fix it. You can also compare this to the finished version, subject2_after | == Edits to the brainmask volume == Now, take a look at the next subject, pial_edits_before. ---- {{{ tkmedit pial_edits_before brainmask.mgz \ lh.white -aux T1.mgz -aux-surface rh.white |
| Line 63: | Line 74: |
| == Subject 3 == Now, take a look at the next subject, subject3_before. {{{ tkmedit subject3_before brainmask.mgz lh.white -aux T1.mgz -aux-surface rh.white |
|
| Line 68: | Line 75: |
| ---- | |
| Line 71: | Line 79: |
| ---- | |
| Line 72: | Line 81: |
| setenv SUBJECTS_DIR $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs tksurfer subject3_before lh inflated & tksurfer subject3_before rh inflated & |
tksurfer pial_edits_before lh inflated & tksurfer pial_edits_before rh inflated & |
| Line 76: | Line 84: |
| ---- | |
| Line 78: | Line 87: |
| You may need to open other volumes in order to see or fix the problem. Take a look through this subject and see if you can identify what is wrong. | The trouble with this subject has occurred while making the final surfaces. Check the final surfaces (pial and white surfaces) to make sure that they follow the actual boundaries and that they do not include anything that should not be included. |
| Line 80: | Line 89: |
| If you are stuck and you need a [wiki:Self:FsTutorial/TroubleshootingHints hint] you can click for some help. | You may need to open other volumes in order to see or fix the problem. |
| Line 82: | Line 91: |
| When you think you've identified the problem, click [wiki:Self:FsTutorial/PialEdits here] for detailed instructions on how you can fix it. | Click [[FsTutorial/PialEdits|here]] for detailed instructions on how you can fix it. |
| Line 84: | Line 93: |
| == Subject 4 == Now, take a look at the next subject, subject4_before. |
== Skull strip == Now, take a look at the next subject, skullstrip1_before, in tkmedit. ---- |
| Line 87: | Line 97: |
| tkmedit subject4_before brainmask.mgz lh.white -aux T1.mgz -aux-surface rh.white | tkmedit skullstrip1_before brainmask.mgz \ lh.white -aux T1.mgz -aux-surface rh.white |
| Line 89: | Line 101: |
| ---- This will open the brainmask.mgz volume, the T1.mgz loaded as aux, and the surfaces for both hemispheres. The trouble with this subject has occurred in the skull stripping step. Check the brainmask.mgz volume carefully, comparing it to the T1.mgz volume (loaded in aux) to make sure that the skull has been completely stripped away, leaving behind the complete cortex and the cerebellum. You can feel free to open other volumes in aux or to load in the aseg.mgz if you want or need to. Click [[FsTutorial/SkullStripFix|here]] for detailed instructions on how you can fix it. You can also compare this to the finished version, skullstrip1_after. == Adding control points == Now, take a look at the next subject, cp_before. ---- {{{ tkmedit cp_before brainmask.mgz \ lh.white -aux T1.mgz -aux-surface rh.white }}} ---- |
|
| Line 92: | Line 122: |
| ---- | |
| Line 93: | Line 124: |
| setenv SUBJECTS_DIR $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs tksurfer subject4_before lh inflated & tksurfer subject4_before rh inflated & |
tksurfer cp_before lh inflated & tksurfer cp_before rh inflated & |
| Line 97: | Line 127: |
| ---- | |
| Line 99: | Line 130: |
| You may need to open other volumes in order to see or fix the problem. Take a look through this subject and see if you can identify what is wrong. | The trouble with this subject has occured during the intensity normalization. Check the white surface and be sure it is including all of the white matter as it should. If you find an area that is not included as white matter be sure to check to see that the intensity is at (or very close to) 110. |
| Line 101: | Line 132: |
| If you are stuck and you need a [wiki:Self:FsTutorial/TroubleshootingHints hint] you can click for some help. | You may need to open other volumes in order to see or fix the problem. |
| Line 103: | Line 134: |
| When you think you've identified the problem, click [wiki:Self:FsTutorial/ControlPoints here] for detailed instructions on how you can fix it. | Click [[FsTutorial/ControlPoints|here]] for detailed instructions on how you can fix it. |
| Line 105: | Line 136: |
| == Subject 5 == Now, take a look at the next subject, subject5_before. |
== Talairach transformation == Now, take a look at the next subject, tal_before. ---- |
| Line 108: | Line 140: |
| tkmedit subject5_before brainmask.mgz lh.white -aux T1.mgz -aux-surface rh.white | tkmedit tal_before brainmask.mgz \ lh.white -aux T1.mgz -aux-surface rh.white |
| Line 110: | Line 144: |
| ---- | |
| Line 113: | Line 148: |
| ---- | |
| Line 114: | Line 150: |
| setenv SUBJECTS_DIR $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs tksurfer subject5_before lh inflated & tksurfer subject5_before rh inflated & |
tksurfer tal_before lh inflated & tksurfer tal_before rh inflated & |
| Line 118: | Line 153: |
| ---- | |
| Line 120: | Line 156: |
| You may need to open other volumes in order to see or fix the problem. Take a look through this subject and see if you can identify what is wrong. | The trouble with this subject is a little tricky to figure out. The midline cutting planes are not actually on the midline, but the real root of this problem is in one of the very initial steps of recon-all. The talairach transform is bad and will need to be fixed. |
| Line 122: | Line 158: |
| If you are stuck and you need a [wiki:Self:FsTutorial/TroubleshootingHints hint] you can click for some help. | You may need to open other volumes in order to see or fix the problem. |
| Line 124: | Line 160: |
| When you think you've identified the problem, click [wiki:Self:FsTutorial/Talairach here] for detailed instructions on how you can fix it. |
Click [[FsTutorial/Talairach|here]] for detailed instructions on how you can fix it. |
Troubleshooting your output
If you are taking one of the formally organized courses, the data is already installed on the computer provided to you. If not, then to follow this exercise exactly be sure you've downloaded the tutorial data set before you begin. This set of exercises is not possible without the tutorial data set. Please set the environmental variable TUTORIAL_DATA to the location that you have downloaded the data to (here, it has been copied to $FREESURFER_HOME/subjects):
tcsh setenv TUTORIAL_DATA $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs
- Notice the command to open tcsh. If you are already running the tcsh command shell, then the 'tcsh' command is not necessary.
This set of exercises will take you through a few examples of problem outputs, asking you to identify the problems and possible methods to fix the problems. Each example will have a before and after picture, as well as an explanation of how to fix the problems seen.
Below is a list of common things that require manual intervention. As you move through this exercise there will be links to pages instructing you how to fix these problems. While you are trying to identify the problems with the subjects listed below you may find it helpful to refer back to the previous exercise, or open your own instance of the subject good_output to compare these subjects to a good example.
<<==TableOfContents==>>
Correcting topological defects
First make sure you have your SUBJECTS_DIR set to the correct location:
tcsh setenv SUBJECTS_DIR $TUTORIAL_DATA cd $SUBJECTS_DIR
Now you can open the subject, topo_defect_before, in tkmedit.
tkmedit topo_defect_before brainmask.mgz \ lh.white -aux wm.mgz -aux-surface rh.white
This will open the brainmask.mgz volume, the wm.mgz loaded as aux, and the surfaces for both hemispheres.
You can feel free to open other volumes in aux or to load in the aseg.mgz if you want or need to. Take a look at this subject, inspecting the various outputs that were mentioned in the previous exercise and see if you can indentify what is wrong.
Click here for detailed instructions on how you can fix it. You can also compare this to the finished version, topo_defect_after.
Edits to the wm volume
Now, take a look at the next subject, wm1_edits_before.
tkmedit wm1_edits_before brainmask.mgz \ lh.white -aux T1.mgz -aux-surface rh.white
Again, this will bring up the brainmask.mgz volume, the T1.mgz volume, and the surfaces for both hemispheres.
In your second terminal window, if not already open, open the surfaces in tksurfer:
tksurfer wm1_edits_before lh inflated & tksurfer wm1_edits_before rh inflated &
This will open the inflated surfaces for both hemispheres in tksurfer.
The trouble with this subject has occurred during the white matter segmentation step. Check the surfaces to find the spot that does not match the actual boundaries. If you load the wm.mgz volume as the aux volume you will see a hole in this area. If you are looking in tksurfer you will see a hole or dimple in the inflated surface. You can use the "save point" "goto point" commands to find this spot in the volume. You may need to open other volumes in order to see or fix the problem.
Click here for detailed instructions on how you can fix it. You can also compare this to the finished version, wm1_edits_after.
Edits to the brainmask volume
Now, take a look at the next subject, pial_edits_before.
tkmedit pial_edits_before brainmask.mgz \ lh.white -aux T1.mgz -aux-surface rh.white
Again, this will bring up the brainmask.mgz volume, the T1.mgz volume, and the surfaces for both hemispheres.
In your second terminal window, if not already open, open the surfaces in tksurfer:
tksurfer pial_edits_before lh inflated & tksurfer pial_edits_before rh inflated &
This will open the inflated surfaces for both hemispheres in tksurfer.
The trouble with this subject has occurred while making the final surfaces. Check the final surfaces (pial and white surfaces) to make sure that they follow the actual boundaries and that they do not include anything that should not be included.
You may need to open other volumes in order to see or fix the problem.
Click here for detailed instructions on how you can fix it.
Skull strip
Now, take a look at the next subject, skullstrip1_before, in tkmedit.
tkmedit skullstrip1_before brainmask.mgz \ lh.white -aux T1.mgz -aux-surface rh.white
This will open the brainmask.mgz volume, the T1.mgz loaded as aux, and the surfaces for both hemispheres.
The trouble with this subject has occurred in the skull stripping step. Check the brainmask.mgz volume carefully, comparing it to the T1.mgz volume (loaded in aux) to make sure that the skull has been completely stripped away, leaving behind the complete cortex and the cerebellum.
You can feel free to open other volumes in aux or to load in the aseg.mgz if you want or need to.
Click here for detailed instructions on how you can fix it. You can also compare this to the finished version, skullstrip1_after.
Adding control points
Now, take a look at the next subject, cp_before.
tkmedit cp_before brainmask.mgz \ lh.white -aux T1.mgz -aux-surface rh.white
Again, this will bring up the brainmask.mgz volume, the T1.mgz volume, and the surfaces for both hemispheres.
In your second terminal window, if not already open, open the surfaces in tksurfer:
tksurfer cp_before lh inflated & tksurfer cp_before rh inflated &
This will open the inflated surfaces for both hemispheres in tksurfer.
The trouble with this subject has occured during the intensity normalization. Check the white surface and be sure it is including all of the white matter as it should. If you find an area that is not included as white matter be sure to check to see that the intensity is at (or very close to) 110.
You may need to open other volumes in order to see or fix the problem.
Click here for detailed instructions on how you can fix it.
Talairach transformation
Now, take a look at the next subject, tal_before.
tkmedit tal_before brainmask.mgz \ lh.white -aux T1.mgz -aux-surface rh.white
Again, this will bring up the brainmask.mgz volume and the T1.mgz volume and the surfaces for both hemispheres.
In your second terminal window, if not already open, open the surfaces in tksurfer:
tksurfer tal_before lh inflated & tksurfer tal_before rh inflated &
This will open the inflated surfaces for both hemispheres in tksurfer.
The trouble with this subject is a little tricky to figure out. The midline cutting planes are not actually on the midline, but the real root of this problem is in one of the very initial steps of recon-all. The talairach transform is bad and will need to be fixed.
You may need to open other volumes in order to see or fix the problem.
Click here for detailed instructions on how you can fix it.
