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  

|
December 04, 2008 06:01PM
Hi,
I'm attempting to use the align_epi2anat procedure. But, I'm getting errors and the "-child_epi" subcommand doesn't seem to be working. Is there anything obviously wrong with my syntax?
I have pasted the later part of the screen output with some error notices. Is there anything in there that tells you what might be wrong?

Thanks.
Darren

syntax:

#!/usr/bin/env tcsh
# To prog for talairaching and aligning datasets

foreach id ( 07 )

@auto_tlrc -base ~/abin/TT_N27+tlrc -input s"$id"anat+orig
align_epi_anat.py -big_move \
-anat s"$id"anat+orig -epi s"$id"hum1R_tshift_card+orig \
-epi_base median -child_epi s"$id"hum"?"R_tshift_card+orig.HEAD \
-AddEdge -epi2anat -suffix al2anat \
-tlrc_apar s"$id"anat_at+tlrc

end

Last part of the Screen Output:

#Script is running:
3dNotes -h "align_epi_anat.py -big_move -anat s07anat+orig -epi \
s07hum1R_tshift_card+orig -epi_base median -child_epi \
s07hum?R_tshift_card+orig.HEAD -AddEdge -epi2anat -suffix al2anat \
-tlrc_apar s07anat_at+tlrc" s07hum1R_tshift_cardal2anat+orig

*+ WARNING: Over-writing dataset ./s07hum1R_tshift_cardal2anat+orig.HEAD
#++ Removing all the temporary files
#Script is running:
rm -f __tt_s07hum1R_tshift_card*
#Script is running:
rm -f __tt_s07anat*
#++ Parent /home/newfmri/HSC2007Projects/s07/session/humour/s07hum1R_tshift_card+orig: Child: /home/newfmri/HSC2007Projects/s07/session/humour/s07hum?R_tshift_card+orig
#Script is running (command trimmed):
3dAttribute TAXIS_OFFSETS s07hum?R_tshift_card+orig
#++ Can not do time shifting of slices. Data is already time shifted
Error: Second index j=1 is >= to number of elements (1) in 0th line of output
Traceback (most recent call last):
File "/home/newfmri/abin/align_epi_anat.py", line 2454, in ?
ps.process_child_epi(child_epi)
File "/home/newfmri/abin/align_epi_anat.py", line 2304, in process_child_epi
child.epi_ts, child.epi_vr, child.epi_ns = \
File "/home/newfmri/abin/align_epi_anat.py", line 2056, in process_epi
if(ps.dry_run() or \
File "/home/newfmri/abin/afni_base.py", line 405, in dset_dims
dl = [int(com.val(0,0)), int(com.val(0,1)), int(com.val(0,2)), int(com.val(0,3))]
TypeError: int() argument must be a string or a number

Subject Author Posted

align_epi2anat

Darren Campbell December 04, 2008 06:01PM

Re: align_epi2anat

rick reynolds December 05, 2008 09:10AM

Re: align_epi2anat

Daniel Glen December 05, 2008 04:04PM

Re: align_epi2anat

Darren Campbell December 16, 2008 03:02PM

Re: align_epi2anat

Daniel Glen December 16, 2008 03:52PM

Re: align_epi2anat

Jeff Phillips April 29, 2009 07:18PM

Re: align_epi2anat

Daniel Glen April 29, 2009 07:58PM

Re: align_epi2anat

Jeff Phillips April 29, 2009 08:29PM