brain

fMRI: how to do ROI analysis

ROI stands for region of interest. The region is predefined usually from glm contrast. For example, you find visual cortex is activated when a flash is presented through glm analysis, you may then do more analysis on this particular region. ROI analy
Xu Cui
42 sec read

recon-all images

Check out recon-all procedures here rawavg orig nu T1 brainmask norm nu_noneck aseg.auto aseg.auto_noCCseg aseg brain wm.seg filled lh.orig lh.smoothwm lh.inflated.nofix lh.qsphere.nofix lh.white lh.pial lh.inflated lh.sphere
Xu Cui
8 sec read

Visualization with freesurfer

Assume CON14 is our subject ID and it is inside directory $SUBJECTS_DIR. After the display window and the control panel pops up, try playing with the menus and buttons. tkmedit for volume tkmedit CON14 rawavg.mgz tkmedit CON14 rawavg.mgz lh.pial -aux
Xu Cui
21 sec read

recon-all of freesurfer

recon-all is a batch program and runs >30 steps.  It easily takes 30 hours to finish one subject. Use tkmedit CON14 T1.mgz and tksurfer CON14 lh inflated to visualize images. More about visualization with freesurfer. Note: commands are in green. T
Xu Cui
10 min read

Lucas Center tips

Hardware settings In the “Projector source” panel, click “eprime” button to select Eprime as source. Always turn the knob to “SRBox” instead of “USBox”. Transfering data: You use gFTP to transfer data f
Xu Cui
21 sec read

Trigger scanner script: E-Prime and MatLab

E-Prime This piece of code is used in Lucas Center scanner #2 at Stanford University. SRBOX.Lamps "4" Sleep(100) SRBOX.Lamps "" Set SumACC = New Summation You also need to declare SumACC in user script Dim SumACC = As Summation Ma
Xu Cui
1 min read

xjView, a viewing program for SPM2, SPM5, SPM8 and…

xjView’s official webpage moves to https://www.alivelearn.net/xjview/ xjView is a MatLab program Jian and I wrote a few years ago to display SPM T-test images more easily. Main features include p-value slider: change p-value and display the sup
Xu Cui
33 sec read

retinotopy with freesurfer

Retinotopy analysis consists two parts, one on high resolution structural images (segmentation, inflation, cut, etc), the other on functional images. structural Before you start, you need to put the structural i
Xu Cui
2 min read

brain images: convert between different formats

For single file to single file conversion, you usually use mri_convert of freesurfer. For example mri_convert x.img y.nii Other options would be LONI Debabeler or MRICro. Here are some special cases: multiple 3D ANALYZE to a single 4D Nifti: mri_conc
Xu Cui
1 min read