|
Size: 2324
Comment: missing edit-log entry for this revision
|
Size: 1652
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| == Run mris_glm to compute contrast == | == Group Analysis command lines == |
| Line 18: | Line 18: |
| Upon successful completion of the estimation step (computed in a prior exercise), mris_glm may be configured on command line with proper options to perform contrast computation: | Upon successful completion of the make_average_subject command you should have an average subject in your SUBJECTS_DIR. After successfully completing [wiki:Self:FsTutorial/CreateFsgdFile Exercise A.] and [wiki:Self:FsTutorial/CreateContrastVectors Exercise B.] you should have an FSGD file called my_gender_age.txt and a contrast file called age.mat, both in your SUBJECTS_DIR/stats directory . The following are sample commands, that can be used with the data, to complete a group analysis: |
| Line 22: | Line 22: |
| mris_glm --hemi lh \ --trgsubj average \ --fsgd ./my_gender_age_fsgd.txt doss \ --beta_in ./beta_doss-thickness-100lh.mgz \ --var_in ./var_doss-thickness-100lh.mgz \ --gcv 0 0 1 \ --ces ./ces_Age_doss-thickness-100lh.mgz \ --t ./t_Age_doss-thickness-100lh.mgz \ --sigt ./sigt_Age_doss-thickness-100lh.mgz |
mris_preproc --fsgd my_gender_age.txt --target average --hemi lh -- meas thickness --out lh.my_gender_age.thickness.mgh |
| Line 33: | Line 26: |
Once this completes, you can do the smoothing step: |
|
| Line 34: | Line 30: |
| # For the right hemisphere mris_glm --hemi rh \ --trgsubj average \ --fsgd ./my_gender_age_fsgd.txt doss \ --beta_in ./beta_doss-thickness-100rh.mgz \ --var_in ./var_doss-thickness-100rh.mgz \ --gcv 0 0 1 \ --ces ./ces_Age_doss-thickness-100rh.mgz \ --t ./t_Age_doss-thickness-100rh.mgz \ --sigt ./sigt_Age_doss-thickness-100rh.mgz |
mri_surf2surf --hemi lh --s average --sval lh.my_gender_age.thickness.mgh --fwhm 10 --tval lh.my_gender_age.thickness.10.mgh |
| Line 45: | Line 32: |
| With the above configuration, mris_glm tests the given subjects for straight correlation between thickness and age. The command will read in the regression coefficients (--beta_in) and noise variance (--var_in) that were generated from the estimation process, and save the contrast effect size (ces), t-ratio of the contrast, and the significance of the t-ratio (i.e., t-test) in the same directory, all in paint format. | |
| Line 47: | Line 33: |
| Upon completion, make sure that the following files are available in the directory from which mris_glm was run by typing: | Once this is complete, you can move on to test your contrast vector: |
| Line 49: | Line 36: |
| ls -l ces_Age_doss-thickness-100lh.mgz ls -l t_Age_doss-thickness-100lh.mgz ls -l sigt_Age_doss-thickness-100lh.mgz |
mri_glmfit --y lh.my_gender_age.thickness.10.mgh --fsgd my_gender_age.txt --glmdir lh.my_gender_age.glmdir --pca --surf --average lh --C age.mat }}} |
| Line 53: | Line 39: |
| ls -l ces_Age_doss-thickness-100rh.mgz ls -l t_Age_doss-thickness-100rh.mgz ls -l sigt_Age_doss-thickness-100rh.mgz }}} in that directory. |
|
| Line 59: | Line 40: |
| The commands are the same for the right hemisphere, replacing every '''lh''' with an '''rh'''. |
[wiki:FsTutorial top] | [wiki:FsTutorial/GroupAnalysis previous]
Group Analysis command lines
In order to compute the contrats you will first need to change to the tutorial data directory and setup SUBJECTS_DIR:
cd $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs/group_analysis_tutorial
setenv SUBJECTS_DIR ${PWD}Change into the directory you ran the estimation step in, most likely called 'stats':
cd stats
Upon successful completion of the make_average_subject command you should have an average subject in your SUBJECTS_DIR. After successfully completing [wiki:FsTutorial/CreateFsgdFile Exercise A.] and [wiki:FsTutorial/CreateContrastVectors Exercise B.] you should have an FSGD file called my_gender_age.txt and a contrast file called age.mat, both in your SUBJECTS_DIR/stats directory . The following are sample commands, that can be used with the data, to complete a group analysis:
# For the left hemisphere mris_preproc --fsgd my_gender_age.txt --target average --hemi lh -- meas thickness --out lh.my_gender_age.thickness.mgh
Once this completes, you can do the smoothing step:
mri_surf2surf --hemi lh --s average --sval lh.my_gender_age.thickness.mgh --fwhm 10 --tval lh.my_gender_age.thickness.10.mgh
Once this is complete, you can move on to test your contrast vector:
mri_glmfit --y lh.my_gender_age.thickness.10.mgh --fsgd my_gender_age.txt --glmdir lh.my_gender_age.glmdir --pca --surf --average lh --C age.mat
The commands are the same for the right hemisphere, replacing every lh with an rh.
