AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
May 30, 2017 05:02AM
Dear AFNI experts,

I am looking for some advice to extracting beta values from specific brain area.
There are two questions, one is generating a mask, and the other one is extracting the beta values
(I'm new to this part, so forgive me if my question is too basic..)



Steps which I did:
1. Extract cluster, where I am interest in, from ANOVA result:
3dclust -1noneg -1thresh 0.05 -prefix anova_cluster 3 500 ANOVA'[5]'

2. Create a mask1:
whereami -mask_atlas_region CA_ML_18_MNIA:R:ins
(I used CA_ML_18_MNIA because I normalized the data into MNI space)

3. Resample the mask:
3dresample -dxyz 3.0 3.0 3.0 -prefix resample3 -input CA_ML_18_MNIA.ins.r+tlrc

4. Create a mask2:
3dcalc -prefix ROI -a 'resample3+tlrc' -b 'anova_cluster+tlrc' -expr '(step(a)*b)'

Question1
When I process no.4, I got the FATAL ERROR message "dataset anova_cluster+tlrc differs in size [~voxels] from others [~]"
I'm not clear what I have to check.. even I tried to search other materials.
(- As I understood, I thought when we generate a mask, the values of the regions where we interested in are '1', and the other parts are '0'.
Thus, I thought the voxel size should be same...)
Therefore, in this part, may I ask you that how can I solve the problem?



i. Create a mask from specific area (because I failed on generating the mask using two data..[above one..])
whereami -mask_atlas_region CA_ML_18_MNIA:R:ins

ii. Resample the mask:
3dresample -dxyz 3.0 3.0 3.0 -prefix resample3 -input CA_ML_18_MNIA.ins.r+tlrc

iii. Tried to extract beta values [actually.. I'm not sure that this function is correct..]
3dmaskave -mask resample3+tlrc stats.s10_REML+tlrc'[4]'

Question2
When I process no.iii, I also get the message that the "Input and mask datasets are not same dimensions!"
Also, I'm not clear whether it is right way to extract the beta values..
Thus, may I ask you that how can I solve this problem? (also extracting the beta values)

Thank you in advance.
DaWoon



Edited 1 time(s). Last edit at 05/30/2017 07:12AM by dawoon.
Subject Author Posted

Extracting beta values from specific brain area

dawoon May 30, 2017 05:02AM

Re: Extracting beta values from specific brain area

Daniel Glen May 30, 2017 11:18AM

Re: Extracting beta values from specific brain area

dawoon May 31, 2017 01:27AM