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  

|
March 30, 2019 01:32PM
AFNI experts,

I am running proc py for functional data using stimulus files. In this dataset, there are two conditions (Condition A and Condition B), and three stimulus files (Stim I, Stim C, and Stim F). Firstly, I have compared Stim I and Stim C and the part of the proc py script was like below.

-regress_stim_labels I C \
-regress_basis 'BLOCK(1,1)' \
-regress_censor_motion 0.3 \
-regress_opts_3dD \
-gltsym 'SYM: +I -C' \
-glt_label 1 I_vs_C

After preprocessing, I ran 3dttest++ to compare between conditions (Condition A vs Condition B) using the belwo 3dttest++ script.

3dttest++ -prefix Flanker_Ex-Rest \
-paired \
-mask GM_mask_2009c+tlrc \
-clustsim \
-setA ConditionA \
subject1 stats.subject1.ConditionA+tlrc'[10]' \
.
.
subject 30 stats.subject30.ConditionA+tlrc'[10]' \
-setB ConditionB \
subject1 stats.subject1.ConditionB+tlrc'[10]' \
.
.
subject 30 stats.subject30.ConditionB+tlrc'[10]' \

It was processed successfully and I was able to examine the difference between conditions. Next, I wanted to compare Stim I and Stim F, so rerun the proc using the part of the script below.

-regress_stim_labels I F \
-regress_basis 'BLOCK(1,1)' \
-regress_censor_motion 0.3 \
-regress_opts_3dD \
-gltsym 'SYM: +I -F' \
-glt_label 1 I_vs_F \

When running 3dttest++ after preprocessing using the same script above, I had the below error message.

** ERROR: selector index 10 is out of range 0..9
** ERROR: bad sub-brick selector [10]
** FATAL ERROR: Option -setA: can't open dataset 'stats.subject1.ConditionA+tlrc[10]'

I changed sub-brick of each subject in 3dttest++ script like below
subject1 stats.subject1.ConditionA+tlrc'[9]' \
and it was running successfully, but the data look a little bit weird compared to using sub-brick 10.

Could you please let me know why the sub-brick error occurred even after using the same proc.py script and if using sub-brick 9 instead of 10 is correct?

Thank you in advance for your help,
Jun
Subject Author Posted

AFNI proc py bad sub-brick selector

Junyeon March 30, 2019 01:32PM

Re: AFNI proc py bad sub-brick selector

ptaylor March 30, 2019 01:43PM

Re: AFNI proc py bad sub-brick selector

Junyeon March 30, 2019 03:58PM

Re: AFNI proc py bad sub-brick selector

rick reynolds March 30, 2019 09:56PM

Re: AFNI proc py bad sub-brick selector

Junyeon March 31, 2019 10:07AM

Re: AFNI proc py bad sub-brick selector

rick reynolds April 01, 2019 02:08PM

Re: AFNI proc py bad sub-brick selector

Junyeon April 03, 2019 10:57AM