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  

|
July 20, 2014 03:00PM
I would like to take my 8run (8 row) timing files and split them up into 8 individual .1D files (because I want to run 3ddeconvolve on each run separately - is there another way to do this??).

It sounds like I can do this with timing tool? Perhaps I have the format of my partitions file wrong?

Should the partitions file have the names of the new timing files, each name on each row?

like this?
run1
run2
run3
run4
run5
run5
run7
run8

I get odd errors:

Traceback (most recent call last):
File "/home/peterk/abin/timing_tool.py", line 2009, in <module>
sys.exit(main())
File "/home/peterk/abin/timing_tool.py", line 2003, in main
rv = ard.process_options()
File "/home/peterk/abin/timing_tool.py", line 1328, in process_options
if self.timing.partition(val[0], val[1]): return 1
File "/home/peterk/abin/lib_timing.py", line 136, in partition
print "** timing and label row lengths differ at line %d"%ind+1
TypeError: cannot concatenate 'str' and 'int' objects



This does not work either:
run1, run2, run3, run4, run5, run6, run7, run8

** Timing nrows differs from partition nrows (8, 1)


Example 5. Partition the stimulus timing file 'response_times.1D' into multiple timing files based on the labels in a partition file,
partitions.1D. If partitions.txt contains (0, correct, incorrect), there will be 2 output timing files, new_times_correct.1D and
new_times_incorrect.1D. Times where the partition label is '0' will be skipped.

timing_tool.py -timing response_times.1D \
-partition partitions.txt new_times
Subject Author Posted

Partition Timing Files

PeterK July 20, 2014 03:00PM

Re: Partition Timing Files

rick reynolds July 21, 2014 03:58PM