...
where the first column is called fsid (containing all time points of all subjects) and the second column is fsid-base containing the within-subject template (=base) name, to group time points within subject. You can have many more columns such as gender, age, group, etc. Make sure you include the yearsfromBL column with an accurate measure of the time from the baseline scan for each time point (NOT the time from the previous timepoint). You can use the excel formula (=YEARFRAC) to get the time difference as a year fraction. If you are interested in including other variables in the model, add them into your longitudinal QDEC table. Make sure there are no spaces in the column headings as the file is space separated.
Then smooth the data from each qdec table using a script similar to the below. This example is for one qdec file and smooths to 15 and 20. You can repeat the mris_preproc and mri_surf2surf steps for multiple groups in the same script. Make sure you label the files with the group name if you have multiple qdec tables.
Expand | ||
---|---|---|
|
Once you have completed the smoothing you are ready to carry out the LinearMixedEffectsModels. Again, the analysis uses MATLAB so you may need to request access to Argus if you don’t have an installation of MATLAB with the required toolboxes. Alternatively you can follow the steps from the FreeSurfer Wiki on a local installation of MATLAB.