ajay:neuroelf_usage_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ajay:neuroelf_usage_notes [2013/10/21 12:50] – [Visualization Help] ajay | ajay:neuroelf_usage_notes [2025/01/21 02:00] (current) – [Exporting files to SPM, FSL, etc.] asatpute | ||
---|---|---|---|
Line 313: | Line 313: | ||
- Then...< | - Then...< | ||
- | voi_betas = glm.VOIBetas(voi);</ | + | voi_betas = glm.VOIBetas(voi); |
- | + | %or to get all the beta maps not limited to a voi | |
+ | betas = glm.GLMData.Subject(S).BetaMaps(:,:,:,: | ||
+ | </ | ||
==== Using command lines to extract design information from glm NeuroElf ==== | ==== Using command lines to extract design information from glm NeuroElf ==== | ||
- glm.SubjectPredictors provides names of predictors | - glm.SubjectPredictors provides names of predictors | ||
Line 373: | Line 374: | ||
- to restrict stats to voxels with brain data, keep the multiplication box checked; potentially alter the minimum anatomical value to increase/ | - to restrict stats to voxels with brain data, keep the multiplication box checked; potentially alter the minimum anatomical value to increase/ | ||
- higher interpolation (cubic/ | - higher interpolation (cubic/ | ||
+ | |||
+ | ===== Using the new 3D rendering tool with skull ===== | ||
+ | Jochen Email | ||
+ | - download and install the latest snapshot: http:// | ||
+ | - then use " | ||
+ | - when you next open the NeuroElf GUI, load the following VMR/ | ||
+ | - in the main UI, ensure that the colin_hires_ICBMnorm.vmr is selected | ||
+ | - use the render button (below the surface view button) on the right side to switch to render view | ||
+ | - in the newly open render UI, select the colin_brain_rendskull_ICBMnorm.vmr dataset as the "Alpha volume" | ||
+ | - once the rendering is complete, you can use the same controls as for the surface view (mouse; with shift to translate and alt to zoom; and also cursor keys) | ||
+ | |||
+ | When you want to add a stats map (or several maps), please know that each map will be resampled into the resolution of the anatomical prior to rendering, so to display 3 stats maps (at the same time) on top of the high-res colin brain, you probably need between 2 and 3 GB free memory! Also, for stats maps, I suggest changing them to " | ||
===== Drawing/ | ===== Drawing/ | ||
Line 456: | Line 469: | ||
- | ==== Scripting and Batching: | + | ==== Scripting and Batching: |
- | Sometimes we may want to run multiple glms changing one or another option. | + | |
- | If this is what you want to do, BE SURE TO DO THESE TWO THINGS | + | Verify the parameters for you GLM. In the command line, once you load the glm (E.g. by using >>glm = xff(' |
+ | - glm.Study(1).RunTimeVars.Predictors' | ||
+ | - glm.RunTimeVars | ||
+ | |||
+ | Sometimes we may want to run multiple glms changing one or another option. If so, BE SURE TO DO THESE TWO THINGS: | ||
- clear the object between analyses. glm.ClearObject; | - clear the object between analyses. glm.ClearObject; | ||
- ' | - ' | ||
Line 467: | Line 483: | ||
- INCORRECT: struct(' | - INCORRECT: struct(' | ||
- where rps is a cell array pointing to files name for realignment parameters | - where rps is a cell array pointing to files name for realignment parameters | ||
+ | - VERIFY YOUR GLM using the methods indicated above. | ||
+ | |||
+ | If your scripting is running inordinately slow, it may be because NeuroElf is loading, closing, and re-loading relevant data for a given step in your code. For example, when obtaining the betas from a glm for a set of vois, if you iterate across the vois to load the GLM, then it may reload all the GLM data each time. This is because NeuroElf runs efficiently by not loading up all the data unless it really needs to, but if you're coding, then you need to specify that. Use the following: | ||
+ | >> | ||
Line 477: | Line 497: | ||
- where the second argument, true, makes the output be written in TAL order, such that it complies with FSL's internal preference. | - where the second argument, true, makes the output be written in TAL order, such that it complies with FSL's internal preference. | ||
- also works with vtc, glm, etc. | - also works with vtc, glm, etc. | ||
+ | |||
+ | ==== Installing Neuroelf on Apple Silicon | ||
+ | |||
+ | 1. Update MAC OS | ||
+ | 2. Update Matlab | ||
+ | 3. Download neuroelf | ||
+ | 4. You may run into issues with mexmaca64 files. You either have to tell OS that those files are allowed to be opened by trying to open them. Or you can delete all of them, install XCode, and then recompile the mexmaca64 files from scratch (see below). | ||
+ | 5. in matlab, add path to the parent neuroelf directory (not with subdirectories) | ||
+ | 7. then, save path | ||
+ | 8. >>n = neuroelf | ||
+ | 9. >> | ||
+ | 10. >> | ||
+ | |||
ajay/neuroelf_usage_notes.1382359839.txt.gz · Last modified: 2013/10/21 12:50 by ajay