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  

|
September 25, 2020 10:47AM
Hi,

Thanks for the reply. I deleted the files and ran the code again. Now the result i get using BRIK.gz and HEAD are the same but i still get 256 and 257 as values. Here are the results of codes you told me to run (I am running it on OSC owens server):

afni -ver

Precompiled binary linux_openmp_64: Sep 2 2020 (Version AFNI_20.2.16 'Aulus Vitellius')

ls bin_rest_binarized*+orig.HEAD | wc -l

28

ls bin_rest_binarized*+orig.BRIK.gz | wc -l

28


This is my code (I ran it from R):

# name of file
binarize_name <- paste("bin_rest_binarized", sub_code, "_", les_code, sep = "")

# code for 3dcalc
system2("3dcalc", args = paste0("-a ", bin_name, " -expr 'notzero(a)' -prefix ", binarize_name))

#code for 3dmask_tool
system2("3dmask_tool", args = paste0("-input bin_rest_binarized*+orig.HEAD -prefix mask_inter \
-frac 1.0"))

system2("3dmask_tool", args = paste0("-input bin_rest_binarized*+orig.BRIK.gz -prefix mask_inter_brik \
-frac 1.0"))

The data is 91 * 109 * 91 and this is the values i see

0 1 256 257
654657 9402 9404 229166

Thanks
Prateek Sasan
Subject Author Posted

3dmask_tool : different solutions using HEAD and BRIK and values 256 and 257 appearing

prateeksasan1 September 24, 2020 05:55PM

Re: 3dmask_tool : different solutions using HEAD and BRIK and values 256 and 257 appearing

ptaylor September 24, 2020 09:13PM

Re: 3dmask_tool : different solutions using HEAD and BRIK and values 256 and 257 appearing

prateeksasan1 September 25, 2020 10:47AM

Re: 3dmask_tool : different solutions using HEAD and BRIK and values 256 and 257 appearing

prateeksasan1 September 27, 2020 11:48AM

Re: 3dmask_tool : different solutions using HEAD and BRIK and values 256 and 257 appearing

ptaylor September 27, 2020 03:16PM

Re: 3dmask_tool : different solutions using HEAD and BRIK and values 256 and 257 appearing

rick reynolds September 29, 2020 12:16PM

Re: 3dmask_tool : different solutions using HEAD and BRIK and values 256 and 257 appearing

prateeksasan1 October 05, 2020 03:48PM

Re: 3dmask_tool : different solutions using HEAD and BRIK and values 256 and 257 appearing

ptaylor October 05, 2020 04:46PM