psyc410_s2x:fmri_part3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
psyc410_s2x:fmri_part3 [2025/04/08 19:26] – [Part 2: Third Level Analysis] admin | psyc410_s2x:fmri_part3 [2025/04/09 11:19] (current) – removed admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <WRAP center round todo 60%> | ||
- | <WRAP centeralign> | ||
- | <typo fs:36px; fc:red; fw: bold; fv: | ||
- | |||
- | <typo fs:20px; fc:black; fw: bold> | ||
- | </ | ||
- | </ | ||
- | |||
- | |||
- | <WRAP centeralign> | ||
- | <typo ff:' | ||
- | Lab 9: fMRI Part 3: Group Analysis with FSL </ | ||
- | </ | ||
- | |||
- | ====== Information, | ||
- | |||
- | |||
- | ===== Assigned Readings / Videos: ===== | ||
- | |||
- | * tbd | ||
- | |||
- | |||
- | ===== Goals for this lab: ===== | ||
- | |||
- | This lab will continue the analysis that you started in in the previous lab. Last time, you used FSL to analyze two (for the Motor task) or three (for the Face task) runs of data from a single subject. Tonight you will conduct //Second Level Analysis// that will combine the results across those runs. You will then perform a //Third Level analysis// (aka ' | ||
- | |||
- | |||
- | |||
- | ===== Software introduced in this lab ===== | ||
- | |||
- | * n/a | ||
- | |||
- | ===== Laboratory Report ===== | ||
- | <WRAP center round important 70%> | ||
- | <WRAP centeralign>< | ||
- | * Throughout this (and all) lab exercise pages you will find instructions for your lab reports within these boxes. | ||
- | |||
- | </ | ||
- | |||
- | |||
- | |||
- | ===== Housekeeping ===== | ||
- | <WRAP center round info 70%> | ||
- | Some of the images used in tonight' | ||
- | </ | ||
- | |||
- | ===== Data used in this lab ===== | ||
- | |||
- | * You will continue working on the data you were [[: | ||
- | * Therefore, all of your output from tonight' | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ====== Part 1: Second level analysis ====== | ||
- | |||
- | As mentioned [[psyc410_s25: | ||
- | |||
- | <WRAP center round info 90%> | ||
- | Remember, a '' | ||
- | </ | ||
- | |||
- | The inputs to a second level analysis are **not** raw image volumes, but rather consist of the first level statistics and variances. In other words, each voxel does not contain a time-series of datapoints, but rather the statistics that were calculated at the first level. For that reason, second level analyses run much faster than first level analyses. | ||
- | |||
- | FSL uses a sophisticated approach to combining First Level Analyses into a Higher Order Analysis that is discussed [[https:// | ||
- | |||
- | <WRAP center round tip 90%> | ||
- | To save yourself a lot of traversing through file manager boxes to find the relevant files, launch '' | ||
- | </ | ||
- | |||
- | |||
- | |||
- | |||
- | =====Data Tab===== | ||
- | |||
- | **1.** Initiate a second-level analysis in '' | ||
- | * Choose the '' | ||
- | * note, by default, this button is set to '' | ||
- | |||
- | When you choose '' | ||
- | |||
- | {{course: | ||
- | |||
- | =====Stats Tab===== | ||
- | |||
- | The stats tab is used to specify your statistical model. | ||
- | |||
- | * Choose a '' | ||
- | |||
- | <WRAP center round info 90%> | ||
- | <WRAP centeralign> | ||
- | A fixed-effects analysis allows us to make inferences about our sample, whereas a mixed-effects analysis allows us to make inferences about the population (to learn a bit more about this you can see [[https:// | ||
- | |||
- | A **fixed-effects model** is appropriate when " | ||
- | |||
- | However, this would //not// be appropriate when " | ||
- | </ | ||
- | |||
- | Return to the '' | ||
- | |||
- | =====Data Tab===== | ||
- | You will be providing as your **input** to the second level analysis, the **output // | ||
- | * Thus, choose '' | ||
- | * Set '' | ||
- | * Select '' | ||
- | * Specify the output //.feat// directory from each run of the first level analysis | ||
- | * e.g., '' | ||
- | |||
- | {{course: | ||
- | |||
- | |||
- | **3.** Specify output | ||
- | * Enter ''/ | ||
- | |||
- | =====Stats Tab===== | ||
- | |||
- | Return to the '' | ||
- | |||
- | **4. ** There are two options for specifying your model. Because we have such a simple model, we can use the '' | ||
- | |||
- | |||
- | {{course: | ||
- | {{course: | ||
- | |||
- | =====Post-stats Tab===== | ||
- | |||
- | The Post-stats tab will look the same as for the [[psyc410_s25: | ||
- | |||
- | For your lab, <wrap em>I want you to compare two different methods for correcting for multiple comparisons</ | ||
- | |||
- | <WRAP center round info 100%> | ||
- | When '' | ||
- | </ | ||
- | |||
- | |||
- | **1. ** Run the '' | ||
- | * Set '' | ||
- | * Set the '' | ||
- | * Press '' | ||
- | |||
- | **2. ** When the Uncorrected analysis is finished (the HTML file will no longer read '' | ||
- | * Set '' | ||
- | * Set the '' | ||
- | * Set the '' | ||
- | * Press '' | ||
- | |||
- | <WRAP center round box 60%> | ||
- | You will compare the output of these two analyses as part of the next section. | ||
- | </ | ||
- | |||
- | |||
- | /* | ||
- | <WRAP center round tip 90%> | ||
- | Be aware that '' | ||
- | </ | ||
- | */ | ||
- | |||
- | =====Exploring your Second Level Analysis===== | ||
- | To get a quick overview of your results you can explore the HTML output file. If you click on '' | ||
- | * task A vs baseline | ||
- | * task B vs. baseline | ||
- | * task A > task B | ||
- | * task B > task A | ||
- | |||
- | You can click on any of these to see the results overlaid on a series of 2D " | ||
- | |||
- | This is a convenient way to get a quick look, but that format is too rigid to fully explore your results given that the HTML output is not interactive. So in this section we will use '' | ||
- | |||
- | When FSL combines data from different sources (e.g., '' | ||
- | |||
- | **1. ** Load the '' | ||
- | |||
- | You can now overlay one or more statistical results. | ||
- | |||
- | <WRAP center round info 70%> | ||
- | '' | ||
- | </ | ||
- | |||
- | The statistical overlays are located in the output folder that you specified for you second level analysis (e.g., '' | ||
- | |||
- | <WRAP center round info 60%> | ||
- | **'' | ||
- | </ | ||
- | |||
- | <WRAP center round tip 90%> | ||
- | <WRAP centeralign> | ||
- | |||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | |||
- | The parameter estimates (aka beta values) are the estimated values that represent //how much// of a particular expected activation template (aka // | ||
- | |||
- | We contrast differences in //how much// variance is explained by different experimental conditions. So, a COPE might tell us whether the //how much// of the estimated face activation template exists in a particular voxel statistically differs from the //how much// of the estimated scene activation template for that same voxel. | ||
- | </ | ||
- | |||
- | In our analysis of the face task: | ||
- | * **COPE1** is the face main effect (or right hand) showing all voxels where the face regressor was significantly fit by the data | ||
- | * **COPE2** is the scene main effect (or left hand) showing all voxels where the scene regressor was significantly fit by the data | ||
- | * **COPE3** is the faces vs. scenes **// | ||
- | * **COPE4** is the scenes vs. faces **// | ||
- | |||
- | <WRAP center round alert 90%> | ||
- | The file names within each of these COPE folders are identical, so it is essential that you take your time and be absolutely sure that you are always in the directory you want to be in / think you're in. | ||
- | </ | ||
- | |||
- | At the top level of the folder is a file named '' | ||
- | |||
- | |||
- | |||
- | ====Effects of Cluster Correction==== | ||
- | |||
- | Let's explore the effect of cluster correction by looking at the results from '' | ||
- | |||
- | **2. ** Load **'' | ||
- | * '' | ||
- | * If you followed the instructions above, this will be the '' | ||
- | * Change the voxel colors from '' | ||
- | |||
- | **3. ** Load **'' | ||
- | * '' | ||
- | * If you followed the instructions above, this will be the '' | ||
- | * Change the voxel colors from '' | ||
- | |||
- | You can now compare the effect of multiple comparisons correction. The red voxels (corrected) are on top of the blue voxels (uncorrected). So anyplace you see a blue voxel is a location that is being reported as significant in the // | ||
- | |||
- | |||
- | ===== LAB REPORT Part 1A ===== | ||
- | <WRAP center round important 100%> | ||
- | <WRAP centeralign> | ||
- | <WRAP centeralign> | ||
- | <typo fs:x-large; fc:purple; fw:bold; text-shadow: | ||
- | LAB REPORT Part 1A | ||
- | </ | ||
- | </ | ||
- | |||
- | |||
- | - We know that there are false positives (Type I error) in the // | ||
- | - Correcting for multiple comparisons can sometimes lead to voxels that are truly active being disregarded (" | ||
- | </ | ||
- | |||
- | |||
- | /* | ||
- | FSL also stores the unthresholded z statistic volume in a subdirectory within your COPE folder called ''/ | ||
- | */ | ||
- | |||
- | Before proceeding, remove the // | ||
- | |||
- | **4. ** Click around in the brain and see if you can identify areas of particularly " | ||
- | |||
- | <WRAP center round help 90%> | ||
- | Try changing the '' | ||
- | |||
- | Let me know if you figure it out. | ||
- | </ | ||
- | |||
- | |||
- | <WRAP center round tip 90%> | ||
- | ** Where am I? ** | ||
- | To identify where in the brain a particular voxel is located, you can use the '' | ||
- | </ | ||
- | |||
- | |||
- | ===== LAB REPORT Part 1B ===== | ||
- | <WRAP center round important 100%> | ||
- | <WRAP centeralign> | ||
- | <WRAP centeralign> | ||
- | <typo fs:x-large; fc:purple; fw:bold; text-shadow: | ||
- | LAB REPORT Part 1B | ||
- | </ | ||
- | </ | ||
- | - Find a cluster of activation on the right fusiform gyrus (for the face task) or the right motor cortex (for the motor task) and include this figure in your report. | ||
- | |||
- | //Tip: If you have a very active participant with big clusters, you'll want to raise the '' | ||
- | |||
- | </ | ||
- | |||
- | |||
- | **5. ** Load results of your scene > face (or left hand > right hand) contrast. | ||
- | * '' | ||
- | * Change the overlay color to " | ||
- | |||
- | Explore the results the same way you did in the last part (it might be helpful to hide those results). | ||
- | |||
- | |||
- | ===== LAB REPORT Part 1C ===== | ||
- | <WRAP center round important 100%> | ||
- | <WRAP centeralign> | ||
- | <WRAP centeralign> | ||
- | <typo fs:x-large; fc:purple; fw:bold; text-shadow: | ||
- | LAB REPORT Part 1C | ||
- | </ | ||
- | </ | ||
- | - Find a cluster of activation on the right parahippocampal gyrus (for the face task) or the left motor cortex (for the motor task) and include this figure in your report. | ||
- | |||
- | //Tip: If you have a very active participant with big clusters, you'll want to raise the '' | ||
- | |||
- | </ | ||
- | |||
- | ======Part 2: Third Level Analysis====== | ||
- | You should now have completed and explored a second level analysis of your subject' | ||
- | |||
- | Normally, you would need to conduct first and second level analyses for __each__ of these subjects before proceeding to the third level step. However, because you now have done this for one subject, there is nothing more to learn by running the additional subjects needed for your third level analysis except patience (and the value of scripting!). Plus, I love you all very very much. Therefore, these analyses have already been done for you and you can proceed directly to the third level analysis. | ||
- | |||
- | =====Data for third level analysis===== | ||
- | |||
- | The following fifteen participated in the **Motor** and **Face** tasks: | ||
- | < | ||
- | 2545 2552 2553 2554 2585 2731 2766 2767 2814 3850 3855 5743 5744 5769 5770 | ||
- | </ | ||
- | |||
- | **Note**: averaging our results across 16 subjects would improve our SNR by 4 times (square root of 16). | ||
- | |||
- | The second level analysis results for the **face study** are located in the following location for each participant: | ||
- | ~/ | ||
- | | ||
- | The second level analysis results for the **motor study** are located in the following location for each participant: | ||
- | ~/ | ||
- | |||
- | Within the '' | ||
- | |||
- | |||
- | The input to third level analysis will be the relevant cope file, '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | <WRAP center round info 70%> | ||
- | The third level analysis combines the data for //each cope// across all subjects. So each time you run a third level analysis, you are focusing solely on just one of your first/ | ||
- | </ | ||
- | |||
- | |||
- | ===== Data Tab ===== | ||
- | |||
- | **1.** Open FEAT if it is not open already and select '' | ||
- | |||
- | **2.** Set '' | ||
- | |||
- | **3.** Click on '' | ||
- | |||
- | Typing out the long path to each // | ||
- | |||
- | After you select the first file, and before you copy it to the other 14 fields, I recommend that you replace ''/ | ||
- | |||
- | //{{ : | ||
- | |||
- | <WRAP center round tip 90%> | ||
- | <WRAP centeralign> | ||
- | |||
- | '' | ||
- | |||
- | //To copy text//: | ||
- | You can copy text just as you would elsewhere in the operating system. | ||
- | * Click on the '' | ||
- | * From the file menu select '' | ||
- | * Alternatively, | ||
- | |||
- | //To paste text//: | ||
- | Pasting is where things get weird (relative to what you're used to). | ||
- | * If you are using a three-button mouse, you can place the cursor where you want to paste the text and simply click the third button (often this is the scroll-wheel button). | ||
- | * If you are using a two-button mouse or a trackpad you need to first change a setting in the preferences (you' | ||
- | * In the Mac menu bar select '' | ||
- | * Now you should be able to paste text simply by holding down the '' | ||
- | </ | ||
- | |||
- | |||
- | **4.** Specify your '' | ||
- | |||
- | //{{ : | ||
- | |||
- | ===== Stats Tab ===== | ||
- | Go to the '' | ||
- | |||
- | {{: | ||
- | {{: | ||
- | |||
- | ===== Post-stats Tab ===== | ||
- | As in our second level analysis, we now need to select the '' | ||
- | |||
- | **For the Face / Scene task** | ||
- | Voxels along the fusiform gyrus are known to be highly sensitive to faces. However, the activation can be fairly localized (i.e., not many voxels in the cluster). This can make cluster correction too conservative. So to ensure that we see fusiform gyrus activation in our sample, we will use an '' | ||
- | |||
- | **For the Motor task** | ||
- | Basic motor and perception tasks create huge (by fMRI standards) activations. So we're going to use an **// | ||
- | |||
- | <WRAP center round info 90%> | ||
- | The uncorrected z-statistics image is always provided in addition to whatever thresholding criterion you choose. | ||
- | </ | ||
- | |||
- | **1. ** Run your third level analysis | ||
- | * Press the **'' | ||
- | |||
- | A browser window should open and you can follow your results in the same way that you followed your second level results. | ||
- | |||
- | <WRAP center round alert 90%> | ||
- | * Rerun the analysis for each of the four copes. | ||
- | * Don't forget to <wrap em> change input **and** output directories for each cope</ | ||
- | </ | ||
- | |||
- | =====Exploring your Third Level Analysis===== | ||
- | Your analyses should be complete and it is now time to examine your results. As discussed above for the second level analysis, the HTML output is too inflexible to explore your results. I suggest you use '' | ||
- | |||
- | As with the second level analysis, the statistical overlays are named '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | <WRAP center round alert 90%> | ||
- | <WRAP centeralign> | ||
- | |||
- | Each of your '' | ||
- | |||
- | The confusing part is that the subdirectory is named '' | ||
- | |||
- | So, if you want to load your results for cope 4, you will find the file in '' | ||
- | |||
- | The structure of '' | ||
- | </ | ||
- | |||
- | |||
- | Examine these results as you did before for the second level. | ||
- | |||
- | Remember from before, | ||
- | * **COPE1** is the main effect of Task B (face or right-hand) | ||
- | * **COPE2** is the main effect of Task A (scene or left-hand) | ||
- | * **COPE3** is the Task B vs Task A **// | ||
- | * **COPE4** is the Task A vs Task B **// | ||
- | |||
- | **1. ** Display your group results | ||
- | * Load the results from all four COPES overlaid on the '' | ||
- | * Load the results from COPE1 and change the colorscale to '' | ||
- | * Load the results from COPE2 and change the colorscale to '' | ||
- | * Load the results from COPE3 and change the colorscale to '' | ||
- | * Load the results from COPE4 and change the colorscale to '' | ||
- | |||
- | <WRAP center round important 100%> | ||
- | <WRAP centeralign>< | ||
- | - Include a figure that only displays the results of COPE1 and COPE2. | ||
- | - Are there regions that are commonly activated by both? | ||
- | - If yes, why? | ||
- | - Include a figure that only displays the results of COPE3 and COPE4 | ||
- | - For each of the two contrasts, identify two regions that seem to be // | ||
- | </ | ||
- | |||
- | |||
- | <WRAP center round tip 90%> | ||
- | As with the second level analyses, '' | ||
- | </ | ||
- | |||
- | |||
- | |||
psyc410_s2x/fmri_part3.1744158398.txt.gz · Last modified: 2025/04/08 19:26 by admin