@auto_tlrc

I’m trying to run @auto_tlrc on resting state data, using
@auto_tlrc -base TT_N27+tlrc -input ${Subject}_MPRAGE+orig -no_ss -OK_maxite

I’ve also tried without the -OK_maxite option. Sometimes the command works and other times it fails, and I can’t figure out why.

I get *** ERROR: failed (35) to open file ./__ats_tmp___upad40_S38_MPRAGE+tlrc.HEAD for attribute writing;
- Do you have permission to write to this disk?
- Is the disk full?

Here is a longer version of the some of the output.
Warping has converged.

++ 3dcopy: AFNI version=AFNI_18.1.09 (Apr 30 2018) [64-bit]
++ 3dWarp: AFNI version=AFNI_18.1.09 (Apr 30 2018) [64-bit]
++ Authored by: RW Cox
Applying brain mask
++ 3dcalc: AFNI version=AFNI_18.1.09 (Apr 30 2018) [64-bit]
++ Authored by: A cast of thousands
++ Output dataset ././__ats_tmp__reg_braintlrcstep+orig.BRIK
++ 3dWarp: AFNI version=AFNI_18.1.09 (Apr 30 2018) [64-bit]
++ Authored by: RW Cox
++ 3drename: AFNI version=AFNI_18.1.09 (Apr 30 2018) [64-bit]
++ THD_rename_dataset_files: rename __ats_tmp___pad40_S38_MPRAGE+orig.HEAD → __ats_tmp___pad40_S38_MPRAGE.skl+orig.HEAD
++ THD_rename_dataset_files: rename __ats_tmp___pad40_S38_MPRAGE+orig.BRIK → __ats_tmp___pad40_S38_MPRAGE.skl+orig.BRIK
++ 3dcalc: AFNI version=AFNI_18.1.09 (Apr 30 2018) [64-bit]
++ Authored by: A cast of thousands
++ Output dataset ././__ats_tmp___pad40_S38_MPRAGE+orig.BRIK
Unpadding …
++ 3dZeropad: AFNI version=AFNI_18.1.09 (Apr 30 2018) [64-bit]
++ output dataset: ./__ats_tmp___upad40_S38_MPRAGE+orig.BRIK
++ 3drefit: AFNI version=AFNI_18.1.09 (Apr 30 2018) [64-bit]
++ Authored by: RW Cox
++ Processing AFNI dataset __ats_tmp___upad40_S38_MPRAGE+orig
*+ WARNING: Changing the space of an ORIG view dataset may cause confusion!
*+ WARNING: NIFTI copies will be interpreted as TLRC view (not TLRC space).
*+ WARNING: Consider changing the view of the dataset to TLRC view also
++ 3drefit processed 1 datasets
Changing view of transformed anatomy
++ 3drefit: AFNI version=AFNI_18.1.09 (Apr 30 2018) [64-bit]
++ Authored by: RW Cox
++ Processing AFNI dataset __ats_tmp___upad40_S38_MPRAGE+orig.HEAD

  • changing dataset view code
  • Changed dataset view type and filenames.
    *** ERROR: failed (35) to open file ./__ats_tmp___upad40_S38_MPRAGE+tlrc.HEAD for attribute writing;
    - Do you have permission to write to this disk?
    - Is the disk full?
    *** Datablock write error: failure to write attributes - is disk full? do you have write permission?
    ++ 3drefit processed 1 datasets
    Setting parent with 3drefit -wset S38_MPRAGE+orig __ats_tmp___upad40_S38_MPRAGE+tlrc
    ++ 3drefit: AFNI version=AFNI_18.1.09 (Apr 30 2018) [64-bit]
    ++ Authored by: RW Cox

*** DATASET error: have no warp but have no data on disk as well
PURGING dataset ./__ats_tmp___upad40_S38_MPRAGE+orig.HEAD from memory
** ERROR: Can’t open dataset __ats_tmp___upad40_S38_MPRAGE+tlrc
++ 3drefit processed 0 datasets
++ 3drename: AFNI version=AFNI_18.1.09 (Apr 30 2018) [64-bit]
++ Warning: ignoring +tlrc on new_prefix.
++ THD_rename_dataset_files: rename __ats_tmp___upad40_S38_MPRAGE+tlrc.HEAD → S38_MPRAGE+tlrc.HEAD
++ THD_rename_dataset_files: rename __ats_tmp___upad40_S38_MPRAGE+tlrc.BRIK → S38_MPRAGE+tlrc.BRIK
Cleanup …
auto_tlrc completed

Note that the last line of the results of 3dinfo for a resulting bad mprage file is:
Dataset created via: @auto_tlrc -base TT_N27+tlrc -input S06_MPRAGE+orig -no_ss

and the last 3 lines for a good mprage are:
Dataset created via: @auto_tlrc -base TT_N27+tlrc -input S38_MPRAGE+orig -no_ss
3drefit -view +tlrc __ats_tmp___upad40_S38_MPRAGE+orig.HEAD
3drefit -wset S38_MPRAGE+orig __ats_tmp___upad40_S38_MPRAGE+tlrc

It’s not clear why the __ats_tmp___upad40_S38_MPRAGE+tlrc dataset is created sometimes, but not other times.