External Email - Use Caution
Greetings,
I am experiencing a similar tkregister2 issue described in this thread when attempting to run reg-feat2anat: MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg68229.html
I am using FSL version 5.0.10 and Freesurfer version 7. I have pasted the --debug output after my signature. I am wondering if there should be a call for tkregister2_cmdl_cmdl (as opposed to tkregister2_cmdl)?
set TKR = tkregister2_cmdlset TKR = tkregister2_cmdlif ( $usedev ) set TKR = $DEV/$TKR/$TKRif ( 0 ) set TKR = /tkregister2_cmdl/tkregister2_cmdlif ( ! $manual ) set TKR = $TKR"_cmdl"if ( ! 0 ) set TKR = tkregister2_cmdl_cmdlset TKR = tkregister2_cmdl_cmdl
Thank you for any help you can provide!Erin--Erin Walsh, Ph.D.Assistant ProfessorUniversity of North Carolina-Chapel HillDepartment of PsychiatryChapel Hill, NC 27599-3367pronouns: she/her
set echo = 1 ;set debug = 1 ;set debug = 1breakswbreaksw
endendwhile ( $#argv != 0 )while ( 4 != 0 )
set flag = $argv[1] ; shift ;set flag = --featshift
switch ( $flag )switch ( --feat )case "--featdir":case --featdir:if ( $#argv == 0 ) goto arg1err ;if ( 3 == 0 ) goto arg1errset FeatDir = $argv[1] ; shift ;set FeatDir = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.featshiftbreakswbreaksw
endendwhile ( $#argv != 0 )while ( 2 != 0 )
set flag = $argv[1] ; shift ;set flag = --subjectshift
switch ( $flag )switch ( --subject )if ( $#argv == 0 ) goto arg1err ;if ( 1 == 0 ) goto arg1errset subject = $argv[1] ; shift ;set subject = BA0023_V1shiftbreakswbreaksw
endendwhile ( $#argv != 0 )while ( 0 != 0 )
goto parse_args_return ;goto parse_args_return
goto check_params ;goto check_params
if ( $DoBBR ) thenif ( 1 ) thenwhich bbregister > /dev/nullwhich bbregisterif ( $status ) thenif ( 0 ) thenendifendif
if ( $#FeatDir == 0 ) thenif ( 1 == 0 ) thenif ( ! -e $FeatDir ) thenif ( ! -e /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat ) thenif ( ! $manual ) thenif ( ! 0 ) thenif ( $#subject == 0 ) thenif ( 1 == 0 ) thenelseelseif ( $?SUBJECTS_DIR == 0 ) thenif ( 1 == 0 ) thenif ( ! -e $SUBJECTS_DIR ) thenif ( ! -e /proj/dichterlab/BATA/Analysis/FreeSurfer_7 ) thenif ( ! -e $SUBJECTS_DIR/$subject ) thenif ( ! -e /proj/dichterlab/BATA/Analysis/FreeSurfer_7/BA0023_V1 ) thenif ( $manxfm != "func2anat" && $manxfm != "std2anat" && $manxfm != "func2std" ) thenif ( func2anat != func2anat && func2anat != std2anat && func2anat != func2std ) then
goto check_params_return ;goto check_params_return
if ( $?DEV == 0 ) set DEV = "" ;if ( 0 == 0 ) set DEV =set DEV =
set TKR = tkregister2_cmdlset TKR = tkregister2_cmdlif ( $usedev ) set TKR = $DEV/$TKR/$TKRif ( 0 ) set TKR = /tkregister2_cmdl/tkregister2_cmdlif ( ! $manual ) set TKR = $TKR"_cmdl"if ( ! 0 ) set TKR = tkregister2_cmdl_cmdlset TKR = tkregister2_cmdl_cmdl
set MM = mri_matrix_multiplyset MM = mri_matrix_multiplyif ( $usedev ) set MM = $DEV/$MM/$MMif ( 0 ) set MM = /mri_matrix_multiply/mri_matrix_multiply
echo FeatDir is $FeatDirecho FeatDir is /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.featFeatDir is /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.featmkdir -p $FeatDir/reg/freesurfer/tmpmkdir -p /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/tmp
set exf2std_fslmat = $FeatDir/reg/example_func2standard.matset exf2std_fslmat = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/example_func2standard.matif ( ! -e $exf2std_fslmat ) thenif ( ! -e /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/example_func2standard.mat ) then
set exfbase = $FeatDir/example_funcset exfbase = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_funcif ( -e $exfbase.nii.gz ) thenif ( -e /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.nii.gz ) thensetenv FSLOUTPUTTYPE NIFTI_GZsetenv FSLOUTPUTTYPE NIFTI_GZset fslext = nii.gz ;set fslext = nii.gzendifendifif ( -e $exfbase.nii ) thenif ( -e /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.nii ) thenif ( -e $exfbase.img ) thenif ( -e /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.img ) thenif ( $#fslext == 0 ) thenif ( 1 == 0 ) thenset tempvol = $FeatDir/example_func.$fslextset tempvol = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.nii.gzecho "template volume is $tempvol"echo template volume is /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.nii.gztemplate volume is /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.nii.gz
set anat2exf_regdat = $FeatDir/reg/freesurfer/anat2exf.register.datset anat2exf_regdat = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/anat2exf.register.datset anat2std_regdat = $FeatDir/reg/freesurfer/anat2std.register.datset anat2std_regdat = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/anat2std.register.datset std2anat_fslmat = $FeatDir/reg/freesurfer/std2anat.fsl.matset std2anat_fslmat = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/std2anat.fsl.matset exf2anat_init_fslmat = $FeatDir/reg/freesurfer/exf2anat.init.fsl.matset exf2anat_init_fslmat = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/exf2anat.init.fsl.matset exf2anat_fslmat = $FeatDir/reg/freesurfer/exf2anat.fsl.matset exf2anat_fslmat = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/exf2anat.fsl.matset std2exf_regdat = $FeatDir/reg/freesurfer/std2exf.register.datset std2exf_regdat = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/std2exf.register.datset exf2std_regdat = $FeatDir/reg/freesurfer/exf2std.register.datset exf2std_regdat = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/exf2std.register.datset segregdat = $FeatDir/reg/freesurfer/reg.bbr.datset segregdat = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg.bbr.datset stdbrain = $FeatDir/reg/standard.$fslextset stdbrain = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/standard.nii.gz
set refvolcor = $SUBJECTS_DIR/$subject/mri/$anatvol.mgzset refvolcor = /proj/dichterlab/BATA/Analysis/FreeSurfer_7/BA0023_V1/mri/brainmask.mgzif ( ! -e $refvolcor ) thenif ( ! -e /proj/dichterlab/BATA/Analysis/FreeSurfer_7/BA0023_V1/mri/brainmask.mgz ) then
if ( $manual && $manxfm == func2anat ) thenif ( 0 && func2anat == func2anat ) then
if ( $manual && $manxfm == std2anat ) thenif ( 0 && func2anat == std2anat ) then
if ( $manual && $manxfm == func2std ) thenif ( 0 && func2anat == func2std ) then
set LF = $FeatDir/reg/freesurfer/reg-feat2anat.logset LF = /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.logif ( -e $LF ) mv $LF $LF.bakif ( -e /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.log ) mv /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.log /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.log.bakecho log file is $LFecho log file is /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.loglog file is /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.logdate | tee -a $LFtee -a /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.logdateWed Nov 11 18:22:53 EST 2020pwd | tee -a $LFtee -a /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.logpwd/proj/dichterlab/BATA/Scripts/Hammer/Hammer_Activation/Censoring_Pipeline/Freesurferecho $0 | tee -a $LFtee -a /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.logecho /nas/longleaf/apps/freesurfer/7.1.0/freesurfer/bin/reg-feat2anat/nas/longleaf/apps/freesurfer/7.1.0/freesurfer/bin/reg-feat2anatecho $cmdargs | tee -a $LFtee -a /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.logecho --debug --feat /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat --subject BA0023_V1--debug --feat /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat --subject BA0023_V1uname -a | tee -a $LFtee -a /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.loguname -aLinux c1125.ll.unc.edu 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 11 19:12:04 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux
set refvolcor = $SUBJECTS_DIR/$subject/mri/$anatvol.mgzset refvolcor = /proj/dichterlab/BATA/Analysis/FreeSurfer_7/BA0023_V1/mri/brainmask.mgzif ( ! -e $refvolcor ) thenif ( ! -e /proj/dichterlab/BATA/Analysis/FreeSurfer_7/BA0023_V1/mri/brainmask.mgz ) then
if ( $fslext == img ) thenif ( nii.gz == img ) then
mri_info --o /tmp/reg-feat2anat.rasgood.$$ --ras_good $FeatDir/example_func.$fslext > & /dev/nullmri_info --o /tmp/reg-feat2anat.rasgood.36869 --ras_good /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.nii.gzset exf_ras_good = `cat /tmp/reg-feat2anat.rasgood.$$` ;set exf_ras_good = `cat /tmp/reg-feat2anat.rasgood.$$`cat /tmp/reg-feat2anat.rasgood.36869endifendifecho "example_func ras_good_flag $exf_ras_good" | tee -a $LFtee -a /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.logecho example_func ras_good_flag 1example_func ras_good_flag 1if ( $exf_ras_good ) thenif ( 1 ) thenecho "-------------------------------------------------------" | tee -a $LFtee -a /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.logecho --------------------------------------------------------------------------------------------------------------echo "Initializing exf2anat with header" | tee -a $LFtee -a /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.logecho Initializing exf2anat with headerInitializing exf2anat with headerset cmd = ( $TKR --targ $refvolcor --mov $FeatDir/example_func.$fslext --reg $anat2exf_regdat.init --fslregout $exf2anat_init_fslmat --regheader )set cmd = ( tkregister2_cmdl_cmdl --targ /proj/dichterlab/BATA/Analysis/FreeSurfer_7/BA0023_V1/mri/brainmask.mgz --mov /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.nii.gz --reg /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/anat2exf.register.dat.init --fslregout /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/exf2anat.init.fsl.mat --regheader )if ( ! $debug ) set cmd = ( $cmd --noedit )if ( ! 1 ) set cmd = ( tkregister2_cmdl_cmdl --targ /proj/dichterlab/BATA/Analysis/FreeSurfer_7/BA0023_V1/mri/brainmask.mgz --mov /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.nii.gz --reg /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/anat2exf.register.dat.init --fslregout /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/exf2anat.init.fsl.mat --regheader --noedit )echo $cmd | tee -a $LFtee -a /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.logecho tkregister2_cmdl_cmdl --targ /proj/dichterlab/BATA/Analysis/FreeSurfer_7/BA0023_V1/mri/brainmask.mgz --mov /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.nii.gz --reg /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/anat2exf.register.dat.init --fslregout /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/exf2anat.init.fsl.mat --regheadertkregister2_cmdl_cmdl --targ /proj/dichterlab/BATA/Analysis/FreeSurfer_7/BA0023_V1/mri/brainmask.mgz --mov /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.nii.gz --reg /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/anat2exf.register.dat.init --fslregout /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/exf2anat.init.fsl.mat --regheader$cmd | tee -a $LFtee -a /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/reg-feat2anat.logtkregister2_cmdl_cmdl --targ /proj/dichterlab/BATA/Analysis/FreeSurfer_7/BA0023_V1/mri/brainmask.mgz --mov /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/example_func.nii.gz --reg /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/anat2exf.register.dat.init --fslregout /proj/dichterlab/BATA/Analysis/Hammer/1st_Level_censoring/BA0023/BA0023_V1/run1.feat/reg/freesurfer/exf2anat.init.fsl.mat --regheadertkregister2_cmdl_cmdl: Command not found.if ( $status ) exit 1 ;if ( 1 ) exit 1exit 1
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer