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  

|
January 21, 2015 05:21PM
Hello,

I am trying to create a random timing generation similar to example # 8. I have 2 sets of stimuli (expt and control) which both have A and B parts. I need to create a fixed ordering in that trial A needs to be followed by B, but the expt & control conditions can be random, as long as they do not interrupt A and B. I have 36 stim for expt condition and 20 for control. The A trials last 3 seconds followed by B trials that last 4 seconds.

When I enter the following:

make_random_timing.py -num_runs 1 -run_time 692 \
-num_stim 4 -num_reps 36 \
-stim_labels exptA exptB controlA controlB \
-stim_dur 3 4 3 4 \
-ordered_stimuli exptA exptB controlA controlB \
-pre_stim_rest 10 -post_stim_rest 10 \
-show_timing_stats -seed 31415 -prefix stimesH \

I get the writing timing files:

writing timing file: stimesH_01_exptA.1D
writing timing file: stimesH_02_exptB.1D
writing timing file: stimesH_03_controlA.1D
writing timing file: stimesH_04_controlB.1D

Along with the ISI statistics. However, I cannot figure out how to verify the stimulus order. That is, the following command is not running:

timing_tool.py -multi_timing stimesH*.1D \
-multi_timing_to_events events.stimesH.txt \
-multi_stim_dur 3 4 3 4 \
-tr 1.0 -min_frac 0.5 -per_run -run_len 692 \

All that outputs is:

timing_tool.py -multi_timing stimesH*.1D \
-multi_timing_to_events events.stimesH.txt \
-multi_stim_dur 3 4 3 4 \
-tr 1.0 -min_frac 0.5 -per_run -run_len 692 \ ? -multi_timing_to_events events.stimesH.txt \
? -multi_stim_dur 3 4 3 4 \
? -tr 1.0 -min_frac 0.5 -per_run -run_len 692 \
** -run_len takes only <type 'float'>s, have: ['692', ' ']
** mulit_timing_to_events requires -run_len

Can someone help me with how to get the timing tool to display the output timings for this example?

Many thanks in advance!
Subject Author Posted

Assistance NEEDED with random stimulus timing

acquired.aphasia January 21, 2015 05:21PM

Re: Assistance NEEDED with random stimulus timing

rick reynolds January 21, 2015 09:03PM