HBClab / RestingState

Scripts to preprocess resting state data and extract ROI-ROI correlations and voxel-wise ROI seedmaps
4 stars 7 forks source link

Error with regressors (I think) #55

Closed rachclark closed 6 years ago

rachclark commented 6 years ago

Summary

first error is in normed regressors

Actual behavior

Expected behavior

How to replicate the behavior

Script/Workflow details

Please put URL to code or code here (if not too long).

Restoring modules to user's neuro-packages
find: ‘/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/sub-SEH1001/ses-pre/fmap’: No such file or directory
find: ‘/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/sub-SEH1001/ses-pre/fmap’: No such file or directory
find: ‘/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/sub-SEH1001/ses-pre/fmap/mag1/’: No such file or directory
++ 3dvolreg: AFNI version=AFNI_18.0.09 (Jul  7 2015) [64-bit]
++ Authored by: RW Cox
*+ WARNING:   If you are performing spatial transformations on an oblique dset, 
  such as /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/sub-SEH1001_ses-pre_task-rest_bold.nii.gz,
  or viewing/combining it with volumes of differing obliquity,
  you should consider running: 
     3dWarp -deoblique 
  on this and  other oblique datasets in the same session.
 See 3dWarp -help for details.
++ Oblique dataset:/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/sub-SEH1001_ses-pre_task-rest_bold.nii.gz is 12.099993 degrees from plumb.
++ WARNING: -tshift used on a dataset with no time-offsets!
++ Reading input dataset /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/sub-SEH1001_ses-pre_task-rest_bold.nii.gz
++ Edging: x=3 y=3 z=2
++ Creating mask for -maxdisp
 + Automask has 27792 voxels
 + 4472 voxels left in -maxdisp mask after erosion
++ Initializing alignment base
++ Starting final pass on 180 sub-bricks: 0..1..2..3..4..5..6..7..8..9..10..11..12..13..14..15..16..17..18..19..20..21..22..23..24..25..26..27..28..29..30..31..32..33..34..35..36..37..38..39..40..41..42..43..44..45..46..47..48..49..50..51..52..53..54..55..56..57..58..59..60..61..62..63..64..65..66..67..68..69..70..71..72..73..74..75..76..77..78..79..80..81..82..83..84..85..86..87..88..89..90..91..92..93..94..95..96..97..98..99..100..101..102..103..104..105..106..107..108..109..110..111..112..113..114..115..116..117..118..119..120..121..122..123..124..125..126..127..128..129..130..131..132..133..134..135..136..137..138..139..140..141..142..143..144..145..146..147..148..149..150..151..152..153..154..155..156..157..158..159..160..161..162..163..164..165..166..167..168..169..170..171..172..173..174..175..176..177..178..179..
++ CPU time for realignment=0 s  [=0 s/sub-brick]
++ Min : roll=-0.079  pitch=-0.516  yaw=-0.163  dS=-0.470  dL=-0.137  dP=-0.114
++ Mean: roll=+0.015  pitch=+0.043  yaw=+0.040  dS=-0.071  dL=-0.036  dP=+0.108
++ Max : roll=+0.180  pitch=+0.591  yaw=+0.289  dS=+0.228  dL=+0.090  dP=+0.417
++ Max displacements (mm) for each sub-brick:
 0.66(0.00) 0.66(0.14) 0.62(0.24) 0.60(0.16) 0.60(0.04) 0.63(0.16) 0.68(0.40) 0.70(0.34) 0.64(0.23) 0.64(0.14) 0.61(0.08) 0.63(0.12) 0.67(0.24) 0.57(0.16) 0.59(0.08) 0.59(0.09) 0.54(0.19) 0.63(0.20) 0.55(0.10) 0.56(0.03) 0.61(0.15) 0.51(0.13) 0.60(0.14) 0.71(0.21) 0.52(0.25) 0.65(0.16) 0.73(0.16) 0.79(0.28) 0.94(0.17) 0.78(0.18) 1.00(0.25) 1.12(0.15) 0.84(0.29) 1.09(0.25) 0.88(0.23) 1.04(0.19) 0.93(0.13) 0.91(0.02) 1.30(0.41) 0.91(0.41) 1.12(0.23) 1.11(0.14) 1.07(0.06) 1.14(0.10) 0.84(0.30) 1.01(0.19) 1.14(0.18) 1.00(0.16) 1.08(0.10) 0.86(0.22) 1.02(0.20) 0.99(0.08) 0.90(0.09) 1.08(0.18) 0.87(0.22) 1.19(0.33) 0.98(0.25) 1.01(0.07) 1.03(0.11) 0.91(0.12) 0.91(0.10) 0.97(0.10) 0.72(0.26) 0.93(0.28) 0.64(0.30) 0.87(0.23) 0.83(0.04) 0.73(0.11) 0.83(0.12) 0.85(0.10) 0.73(0.13) 0.84(0.11) 0.67(0.19) 0.80(0.16) 0.72(0.14) 0.62(0.13) 0.60(0.11) 0.22(0.46) 0.36(0.21) 0.36(0.28) 0.55(0.24) 0.47(0.10) 0.43(0.07) 0.47(0.09) 0.29(0.18) 0.37(0.31) 0.20(0.49) 0.24(0.13) 0.07(0.20) 0.22(0.24) 0.00(0.22) 0.37(0.37) 0.16(0.27) 0.23(0.33) 0.23(0.39) 0.52(0.31) 0.19(0.39) 0.13(0.21) 0.16(0.09) 0.12(0.14) 0.15(0.10) 0.35(0.35) 0.40(0.13) 0.41(0.09) 0.33(0.14) 0.30(0.18) 0.37(0.22) 0.44(0.21) 0.49(0.26) 0.59(0.18) 0.61(0.29) 0.54(0.13) 0.50(0.05) 0.62(0.16) 0.59(0.17) 0.65(0.17) 0.70(0.36) 0.56(0.30) 0.45(0.18) 0.46(0.03) 0.59(0.14) 0.49(0.17) 0.47(0.08) 0.50(0.09) 0.52(0.06) 0.57(0.08) 0.66(0.31) 0.71(0.12) 0.79(0.14) 0.81(0.19) 0.85(0.08) 0.85(0.34) 0.81(0.16) 0.77(0.15) 0.84(0.13) 0.91(0.10) 0.73(0.27) 0.78(0.21) 0.70(0.18) 0.67(0.10) 0.72(0.12) 0.73(0.11) 0.74(0.11) 0.74(0.08) 0.68(0.09) 0.75(0.14) 0.64(0.13) 0.68(0.23) 0.61(0.24) 0.61(0.11) 0.66(0.30) 0.58(0.32) 0.51(0.17) 0.51(0.09) 0.56(0.16) 0.65(0.58) 0.39(0.44) 0.40(0.22) 0.37(0.15) 0.44(0.11) 0.73(1.07) 0.82(0.45) 0.49(0.37) 0.39(0.24) 0.38(0.05) 0.45(0.22) 0.36(0.29) 0.45(0.26) 0.39(0.21) 0.37(0.07) 0.48(0.28) 0.41(0.24) 0.44(0.19) 0.40(0.17) 0.42(0.02) 0.63(0.35) 0.64(0.15) 0.62(0.07) 0.62(0.06) 0.62(0.10)
++ Max displacement in automask = 1.30 (mm) at sub-brick 38
++ Max delta displ  in automask = 1.07 (mm) at sub-brick 160
++ Wrote dataset to disk in ./mcImg.nii.gz
++ 3dmerge: AFNI version=AFNI_18.0.09 (Jul  7 2015) [64-bit]
*+ WARNING:   If you are performing spatial transformations on an oblique dset, 
  such as /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/SNR/RestingState_GM.nii.gz,
  or viewing/combining it with volumes of differing obliquity,
  you should consider running: 
     3dWarp -deoblique 
  on this and  other oblique datasets in the same session.
 See 3dWarp -help for details.
++ Oblique dataset:/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/SNR/RestingState_GM.nii.gz is 12.099993 degrees from plumb.
++ default -1dindex = 0
++ default -1tindex = 1
++ Oblique dataset:/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/SNR/RestingState_GM.nii.gz is 12.099993 degrees from plumb.
-- Wrote edited dataset: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/SNR/RestingState_GMsmooth.nii.gz
++ 3dTqual: AFNI version=AFNI_18.0.09 (Jul  7 2015) [64-bit]
*+ WARNING:   If you are performing spatial transformations on an oblique dset, 
  such as nonfilteredImg.nii.gz,
  or viewing/combining it with volumes of differing obliquity,
  you should consider running: 
     3dWarp -deoblique 
  on this and  other oblique datasets in the same session.
 See 3dWarp -help for details.
++ Oblique dataset:nonfilteredImg.nii.gz is 12.099993 degrees from plumb.
++ Autoclip value = 419.849
++ 26628 out of 126976 voxels survive the clip
++ Median=0.00842059  Median-3.5*MAD=0.00276114  Median+3.5*MAD=0.01408
++ 3dBandpass: AFNI version=AFNI_18.0.09 (Jul  7 2015) [64-bit]
++ Authored by: RW Cox
*+ WARNING: (-: For most purposes, 3dTproject is superior to 3dBandpass :-)
*+ WARNING: (-: Even better is to use afni_proc.py for pre-processing!! :-)
*+ WARNING:   If you are performing spatial transformations on an oblique dset, 
  such as /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/preproc.feat/nonfiltered_smooth_data.nii.gz,
  or viewing/combining it with volumes of differing obliquity,
  you should consider running: 
     3dWarp -deoblique 
  on this and  other oblique datasets in the same session.
 See 3dWarp -help for details.
++ Oblique dataset:/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/preproc.feat/nonfiltered_smooth_data.nii.gz is 12.099993 degrees from plumb.
++ Data length = 180  FFT length = 180
 + bandpass: ntime=180 nFFT=180 dt=2 dFreq=0.00277778 Nyquist=0.25 passband indexes=3..29
++ Loading input dataset time series
++ No mask ==> processing all 126976 voxels
++ Checking dataset for initial transients [use '-notrans' to skip this test]
 + No widespread initial positive transient detected :-)
++ 180 dimensional data reduced to 51 by:
    126 (bandpass), 0 (-ort), 0 (-dsort), 3 (detrend)
++ Bandpassing data time series
++ Creating output dataset in memory, then writing it
++ Output dataset ./bandpass.nii.gz
{Not enough input arguments.

Error in normseedregressors (line 79)
  if meanFlag == 1

Error in run_normseedregressors (line 21)
normseedregressors('/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre',roiList,featdir,includemotion)

Error in run (line 96)
evalin('caller', [script ';']);
} 
 + bandpass: ntime=180 nFFT=180 dt=1 dFreq=0.00555556 Nyquist=0.5 passband indexes=1..14
 + bandpass: ntime=180 nFFT=180 dt=1 dFreq=0.00555556 Nyquist=0.5 passband indexes=1..14
 + bandpass: ntime=180 nFFT=180 dt=1 dFreq=0.00555556 Nyquist=0.5 passband indexes=1..14
 + bandpass: ntime=180 nFFT=180 dt=1 dFreq=0.00555556 Nyquist=0.5 passband indexes=1..14
 + bandpass: ntime=180 nFFT=180 dt=1 dFreq=0.00555556 Nyquist=0.5 passband indexes=1..14
 + bandpass: ntime=180 nFFT=180 dt=1 dFreq=0.00555556 Nyquist=0.5 passband indexes=1..14
Could not open matrix file /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/tsregressorslp/wmroi_normalized_ts.txt
terminate called after throwing an instance of 'NEWMAT::ProgramException'
/Users/rachclark/git_clones/RestingState/removeNuisanceRegressor.sh: line 872: 44905 Aborted                 fsl_tsplot -i $indir/tsregressorslp/${roi}_normalized_ts.txt -t "${roi} Time Series" -u 1 --start=1 -x 'Time Points (TR)' -w 800 -h 300 -o $indir/${roi}_norm.png
Could not open matrix file /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/tsregressorslp/latvent_normalized_ts.txt
terminate called after throwing an instance of 'NEWMAT::ProgramException'
/Users/rachclark/git_clones/RestingState/removeNuisanceRegressor.sh: line 872: 44906 Aborted                 fsl_tsplot -i $indir/tsregressorslp/${roi}_normalized_ts.txt -t "${roi} Time Series" -u 1 --start=1 -x 'Time Points (TR)' -w 800 -h 300 -o $indir/${roi}_norm.png
Could not open matrix file /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/tsregressorslp/global_normalized_ts.txt
terminate called after throwing an instance of 'NEWMAT::ProgramException'
/Users/rachclark/git_clones/RestingState/removeNuisanceRegressor.sh: line 872: 44907 Aborted                 fsl_tsplot -i $indir/tsregressorslp/${roi}_normalized_ts.txt -t "${roi} Time Series" -u 1 --start=1 -x 'Time Points (TR)' -w 800 -h 300 -o $indir/${roi}_norm.png
child process exited abnormally
    while executing
"fsl:exec "${FSLDIR}/bin/feat_model design" $fmri(featModelOpts) -N feat0_model -l logs "
    (procedure "firstLevelMaster" line 43)
    invoked from within
"firstLevelMaster $session"
    invoked from within
"if { $done_something == 0 } {

    if { ! $fmri(inmelodic) } {
       if { $fmri(level) == 1 } {
          for { set session 1 } { $session <= $fmri(mult..."
    (file "/Users/rachclark/packages/FSL/5.0.10/bin/feat" line 390)
cp: cannot stat ‘/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/reg’: No such file or directory
child process exited abnormally
    while executing
"fsl:exec "${FSLDIR}/bin/feat_model design" $fmri(featModelOpts) -N feat0_model -l logs "
    (procedure "firstLevelMaster" line 43)
    invoked from within
"firstLevelMaster $session"
    invoked from within
"if { $done_something == 0 } {

    if { ! $fmri(inmelodic) } {
       if { $fmri(level) == 1 } {
          for { set session 1 } { $session <= $fmri(mult..."
    (file "/Users/rachclark/packages/FSL/5.0.10/bin/feat" line 390)
/Users/rachclark/git_clones/RestingState/removeNuisanceRegressor.sh: line 953: cd: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats: No such file or directory
cp: cannot stat ‘res4d.nii.gz’: No such file or directory
Cannot open volume res4d for reading!
Cannot open volume res4d for reading!
Cannot open volume res4d for reading!
Cannot open volume res4d_dmean for reading!
Cannot open volume res4d_normed for reading!
{Error using cd
Cannot CD to
/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats
(Name is nonexistent or not a directory).

Error in motionscrub (line 22)
cd(mypath);

Error in run_motionscrub (line 6)
motionscrub('/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre','nuisancereg.feat',funcvoldim)

Error in run (line 96)
evalin('caller', [script ';']);
} 
ERROR: Could not open file
cat: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/deleted_vols.txt: No such file or directory
awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted
cat: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/deleted_vols.txt: No such file or directory
cp: cannot stat ‘/Volumes/vosslabhpc/UniversalSoftware/RestingState2014a/ROIs/BamHippo_Blessing_14mm.nii.gz’: No such file or directory
Image Exception : #22 :: ERROR: Could not open image /Volumes/vosslabhpc/UniversalSoftware/RestingState2014a/ROIs/BamHippo_Blessing_14mm
terminate called after throwing an instance of 'RBD_COMMON::BaseException'
/Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh: line 221: 45277 Aborted                 applywarp --ref=${epiData} --in=${roi} --out=${nuisancefeat}/stats/${roiName}_mask.nii.gz --warp=${MNItoEPIWarp} --mask=${nuisancefeat}/stats/mask.nii.gz --datatype=float
Cannot open volume nuisancereg.feat/stats/BamHippo_Blessing_14mm_mask for reading!
Cannot open volume nuisancereg.feat/stats/BamHippo_Blessing_14mm_mask for reading!
Image Exception : #22 :: ERROR: Could not open image nuisancereg.feat/stats/BamHippo_Blessing_14mm_mask
Image Exception : #22 :: ERROR: Could not open image nuisancereg.feat/stats/res4d_normandscaled
terminate called after throwing an instance of 'RBD_COMMON::BaseException'
/Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh: line 221: 45283 Aborted                 fslmeants -i ${nuisancefeat}/stats/res4d_normandscaled -o ${nuisancefeat}/stats/${roiName}_residvol_ts.txt -m ${roiMask}
Image Exception : #22 :: ERROR: Could not open image nuisancereg.feat/stats/res4d_normandscaled_motionscrubbed
terminate called after throwing an instance of 'RBD_COMMON::BaseException'
/Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh: line 221: 45284 Aborted                 fslmeants -i ${nuisancefeat}/stats/res4d_normandscaled_motionscrubbed -o ${nuisancefeat}/stats/${roiName}_residvol_ms_ts.txt -m ${roiMask}
/Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh: line 279: nuisancereg.feat/stats/temp_BamHippo_Blessing_14mm_residvol_ts.txt: No such file or directory
cat: nuisancereg.feat/stats/BamHippo_Blessing_14mm_residvol_ts.txt: No such file or directory
/Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh: line 280: nuisancereg.feat/stats/temp_BamHippo_Blessing_14mm_residvol_ms_ts.txt: No such file or directory
cat: nuisancereg.feat/stats/BamHippo_Blessing_14mm_residvol_ms_ts.txt: No such file or directory
mv: cannot stat ‘nuisancereg.feat/stats/temp_BamHippo_Blessing_14mm_residvol_ts.txt’: No such file or directory
mv: cannot stat ‘nuisancereg.feat/stats/temp_BamHippo_Blessing_14mm_residvol_ms_ts.txt’: No such file or directory
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/temp/overlay_split_sagittal for reading!
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
cp: omitting directory ‘/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/temp/’
cp: omitting directory ‘/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/temp/’
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 107: [: =: unary operator expected
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 115: [: -gt: unary operator expected
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 117: [: -gt: unary operator expected
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_underlay_sagittal for reading!
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 107: [: =: unary operator expected
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 115: [: -gt: unary operator expected
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 117: [: -gt: unary operator expected
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_overlay_sagittal for reading!
gzip: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_underlay_sagittal.nii.gz: No such file or directory
gzip: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_overlay_sagittal.nii.gz: No such file or directory
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/temp/overlay_split_coronal for reading!
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
cp: omitting directory ‘/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/temp/’
cp: omitting directory ‘/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/temp/’
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 107: [: =: unary operator expected
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 115: [: -gt: unary operator expected
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 117: [: -gt: unary operator expected
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_underlay_coronal for reading!
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_underlay_coronal for reading!
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 107: [: =: unary operator expected
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 115: [: -gt: unary operator expected
ERROR: Could not open file
/Users/rachclark/packages/FSL/5.0.10/bin/fslswapdim: line 117: [: -gt: unary operator expected
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_overlay_coronal for reading!
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_overlay_coronal for reading!
gzip: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_underlay_coronal.nii.gz: No such file or directory
gzip: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_overlay_coronal.nii.gz: No such file or directory
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/temp/overlay_split_axial for reading!
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
grep: 0: No such file or directory
cp: omitting directory ‘/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/temp/’
cp: omitting directory ‘/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/temp/’
gzip: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_underlay_axial.nii.gz: No such file or directory
gzip: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/seedQC/BamHippo_Blessing_14mm_overlay_axial.nii.gz: No such file or directory
{Undefined function or variable 'load_untouch_nii'.

Error in seedregistrationcheck (line 69)
    useedhdr=load_untouch_nii(uinput);

Error in run_seedregistrationcheck (line 15)
seedregistrationcheck(seedDir,roiList,imageDir)

Error in run (line 96)
evalin('caller', [script ';']);
} 
{Undefined function or variable 'load_untouch_nii'.

Error in firstlevelseeding_parallel (line 82)
funcon=load_untouch_nii(input);

Error in run_firstlevelseeding_parallel (line 14)
firstlevelseeding_parallel('/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre',roiList,'nuisancereg.feat',funcvoldim,input,motion_scrub,doFisherZ)

Error in run (line 96)
evalin('caller', [script ';']);
} 
{Undefined function or variable 'load_untouch_nii'.

Error in firstlevelseeding_parallel (line 82)
funcon=load_untouch_nii(input);

Error in run_firstlevelseeding_parallel_ms (line 14)
firstlevelseeding_parallel('/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre',roiList,'nuisancereg.feat',funcvoldim,input,motion_scrub,doFisherZ)

Error in run (line 96)
evalin('caller', [script ';']);
} 
Image Exception : #22 :: ERROR: Could not open image /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/BamHippo_Blessing_14mm/cope1
terminate called after throwing an instance of 'RBD_COMMON::BaseException'
/Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh: line 667: 45976 Aborted                 flirt -in $indir/${nuisancefeat}/stats/${roi}/cope1.nii -ref $indir/${nuisancefeat}/reg/highres.nii.gz -out ${seedcorrDir}/${roi}_highres_zmap.nii.gz -applyxfm -init $indir/${nuisancefeat}/reg/example_func2highres.mat -datatype float
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/seedCorrelation/BamHippo_Blessing_14mm_highres_zmap for reading!
Image Exception : #22 :: ERROR: Could not open image /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/BamHippo_Blessing_14mm/cope1
terminate called after throwing an instance of 'RBD_COMMON::BaseException'
/Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh: line 667: 45979 Aborted                 applywarp --in=$indir/${nuisancefeat}/stats/${roi}/cope1.nii --ref=$indir/${nuisancefeat}/reg/standard.nii.gz --out=${seedcorrDir}/${roi}_standard_zmap.nii.gz --warp=$indir/${nuisancefeat}/reg/example_func2standard_warp.nii.gz --datatype=float
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/seedCorrelation/BamHippo_Blessing_14mm_standard_zmap for reading!
Image Exception : #22 :: ERROR: Could not open image /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/seedCorrelation/BamHippo_Blessing_14mm_standard
terminate called after throwing an instance of 'RBD_COMMON::BaseException'
/Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh: line 667: 45981 Aborted                 applywarp --in=${seedcorrDir}/${roi}_standard.nii.gz --ref=$indir/${nuisancefeat}/reg/highres.nii.gz --out=${seedcorrDir}/${roi}_highres.nii.gz --warp=$indir/${nuisancefeat}/reg/standard2highres_warp.nii.gz --interp=nn
Image Exception : #22 :: ERROR: Could not open image /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/BamHippo_Blessing_14mm_ms/cope1
terminate called after throwing an instance of 'RBD_COMMON::BaseException'
/Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh: line 667: 45982 Aborted                 flirt -in $indir/${nuisancefeat}/stats/${roi}_ms/cope1.nii -ref $indir/${nuisancefeat}/reg/highres.nii.gz -out ${seedcorrDir}/${roi}_ms_highres_zmap.nii.gz -applyxfm -init $indir/${nuisancefeat}/reg/example_func2highres.mat -datatype float
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/seedCorrelation/BamHippo_Blessing_14mm_ms_highres_zmap for reading!
Image Exception : #22 :: ERROR: Could not open image /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/BamHippo_Blessing_14mm_ms/cope1
terminate called after throwing an instance of 'RBD_COMMON::BaseException'
/Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh: line 667: 46098 Aborted                 applywarp --in=$indir/${nuisancefeat}/stats/${roi}_ms/cope1.nii --ref=$indir/${nuisancefeat}/reg/standard.nii.gz --out=${seedcorrDir}/${roi}_ms_standard_zmap.nii.gz --warp=$indir/${nuisancefeat}/reg/example_func2standard_warp.nii.gz --datatype=float
Cannot open volume /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/seedCorrelation/BamHippo_Blessing_14mm_ms_standard_zmap for reading!
cat: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/deleted_vols.txt: No such file or directory
cat: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/BamHippo_Blessing_14mm_residvol_ts.txt: No such file or directory
cat: /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisancereg.feat/stats/BamHippo_Blessing_14mm_residvol_ts.txt: No such file or directory

Part of FSL (ID: 5.0.10)
fsl_tsplot 
Copyright(c) 2007, University of Oxford (Christian F. Beckmann)

Usage: 
fsl_tsplot [options] 

Compulsory arguments (You MUST set one or more of):
    -i,--in         comma-separated list of input file names (ASCII text matrix, one column per timecourse)
    -o,--out    output filename for the PNG file

Optional arguments (You may optionally specify one or more of):
    -t,--title  plot title
    -l,--legend file name of ASCII text file, one row per legend entry
    -a,--labels comma-separated list of labels
    --ymin          minimum y-value
    --ymax          maximum y-value
    -x,--xlabel X-axis label
    -y,--ylabel Y-axis label
    -h,--height plot height in pixels (default 150)
    -w,--width  plot width in pixels (default 600)
    -u,--unit   scaling units for x-axis (default 1...length of infile
    --precision precision of x-axis labels
    --sci           switch on sientific notation
    --start         Position of first column to plot
    --finish    Position of final column to plot

--ymin: Missing non-optional argument!
which: no ICA_AROMA.py in (/Users/rachclark/.linuxbrew/bin:/Users/rachclark/.linuxbrew/sbin:/Users/rachclark/.linuxbrew/bin:/opt/apps/matlab/R2016b/bin:/opt/apps/python/2.7.13/bin:/opt/apps/tiff/4.0.7/bin:/opt/apps/sqlite/3.16.2/bin:/opt/apps/readline/7.0/bin:/opt/apps/ncurses/6.0/bin:/opt/apps/proj/4.9.3/bin:/opt/apps/pcre/8.40/bin:/opt/apps/openjpeg/2.1.2/bin:/opt/apps/libpng/1.6.28/bin:/opt/apps/jpeg/9b/bin:/opt/apps/freetype/2.7.1/bin:/opt/apps/fontconfig/2.12.1/bin:/opt/apps/libxml2/2.9.4/bin:/opt/apps/xz/5.2.3/bin:/opt/apps/expat/2.2.0/bin:/opt/apps/c-blosc/1.11.2/bin:/opt/apps/pkg-config/0.29.1/bin:/opt/apps/glib/2.51.1/bin:/opt/apps/bzip2/1.0.6/bin:/opt/apps/netcdf/4.4.1.1/bin:/opt/apps/hdf5/1.8.18/bin:/opt/apps/grib_api/1.19.0/bin:/opt/apps/hdf/4.2.12/bin:/opt/apps/curl/7.52.1/bin:/opt/apps/jasper/1.900.1/bin:/Users/rachclark/packages/FSL/5.0.10/bin:/Users/rachclark/packages/AFNI/abin:/Users/rachclark/packages/FreeSurfer/6.0.0/bin:/Users/rachclark/packages/FreeSurfer/6.0.0/fsfast/bin:/Users/rachclark/packages/FreeSurfer/6.0.0/tktools:/Users/rachclark/packages/FreeSurfer/6.0.0/mni/bin:/opt/sge/bin:/opt/sge/bin/lx-amd64:/localscratch/7685605.1.UI:/Users/rachclark/.linuxbrew/bin:/Users/rachclark/.linuxbrew/sbin:/Users/rachclark/.linuxbrew/bin:/opt/sge/bin:/opt/sge/bin/lx-amd64:/opt/sge/bin:/opt/sge/bin/lx-amd64:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/Users/rachclark/.local/bin:/Users/rachclark/bin:/Users/rachclark/.local/bin:/Users/rachclark/bin:/Users/rachclark/.local/bin:/Users/rachclark/bin:/Users/rachclark/.local/bin:/Users/rachclark/bin:/Users/rachclark/packages/AFNI/abin)
which: no ICA_AROMA.py in (/Users/rachclark/.linuxbrew/bin:/Users/rachclark/.linuxbrew/sbin:/Users/rachclark/.linuxbrew/bin:/opt/apps/matlab/R2016b/bin:/opt/apps/python/2.7.13/bin:/opt/apps/tiff/4.0.7/bin:/opt/apps/sqlite/3.16.2/bin:/opt/apps/readline/7.0/bin:/opt/apps/ncurses/6.0/bin:/opt/apps/proj/4.9.3/bin:/opt/apps/pcre/8.40/bin:/opt/apps/openjpeg/2.1.2/bin:/opt/apps/libpng/1.6.28/bin:/opt/apps/jpeg/9b/bin:/opt/apps/freetype/2.7.1/bin:/opt/apps/fontconfig/2.12.1/bin:/opt/apps/libxml2/2.9.4/bin:/opt/apps/xz/5.2.3/bin:/opt/apps/expat/2.2.0/bin:/opt/apps/c-blosc/1.11.2/bin:/opt/apps/pkg-config/0.29.1/bin:/opt/apps/glib/2.51.1/bin:/opt/apps/bzip2/1.0.6/bin:/opt/apps/netcdf/4.4.1.1/bin:/opt/apps/hdf5/1.8.18/bin:/opt/apps/grib_api/1.19.0/bin:/opt/apps/hdf/4.2.12/bin:/opt/apps/curl/7.52.1/bin:/opt/apps/jasper/1.900.1/bin:/Users/rachclark/packages/FSL/5.0.10/bin:/Users/rachclark/packages/AFNI/abin:/Users/rachclark/packages/FreeSurfer/6.0.0/bin:/Users/rachclark/packages/FreeSurfer/6.0.0/fsfast/bin:/Users/rachclark/packages/FreeSurfer/6.0.0/tktools:/Users/rachclark/packages/FreeSurfer/6.0.0/mni/bin:/opt/sge/bin:/opt/sge/bin/lx-amd64:/localscratch/7685605.1.UI:/Users/rachclark/.linuxbrew/bin:/Users/rachclark/.linuxbrew/sbin:/Users/rachclark/.linuxbrew/bin:/opt/sge/bin:/opt/sge/bin/lx-amd64:/opt/sge/bin:/opt/sge/bin/lx-amd64:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/Users/rachclark/.local/bin:/Users/rachclark/bin:/Users/rachclark/.local/bin:/Users/rachclark/bin:/Users/rachclark/.local/bin:/Users/rachclark/bin:/Users/rachclark/.local/bin:/Users/rachclark/bin:/Users/rachclark/packages/AFNI/abin)

OUTPUT FILE

subDir is /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/sub-SEH1001.
MBA_dir is /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/MBA/sub-SEH1001.

Sat Feb 17 12:28:15 CST 2018
Beginning preprocesssing (classic mode)...
no fieldmap found.Running /Users/rachclark/git_clones/RestingState/qualityCheck.sh ...
...Applying motion correction.
...SNR mask creation.
...Creating Tissue class segmentations.
...Optimizing EPI (func) to T1 (highres) registration.
......Registration Without FieldMap Correction.
FLIRT pre-alignment
Running BBR
0.562679 0.999988 0.002053 -0.004372 0.000000 -0.001965 0.999796 0.020087 0.000000 0.004412 -0.020078 0.999789 0.000000 -0.581984 3.548500 2.613562 1.000000 
...Estimating SNR.
...Warping GM/WM/CSF mask to EPI space
Program 3dmerge 
3dmerge: edit and combine 3D datasets, by RW Cox
++ editing input dataset in memory (0.1 MB)
.
...Calculating SNR measurements per TR.
...Calculating signal to noise measurements
...Detecting time series spikes
Image mean is 211.891344 
Image standard deviation is 1.027400423
/Users/rachclark/git_clones/RestingState/qualityCheck.sh Complete

Running /Users/rachclark/git_clones/RestingState/restingStatePreprocess.sh ...
...Running FEAT (preproc)
To view the FEAT progress and final report, point your web browser at /Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/preproc.feat/report_log.html
...Guassian Smoothing
...Fixing FEAT registration QC images.
......func2highres
......highres2standard
......func2standard
/Users/rachclark/git_clones/RestingState/restingStatePreprocess.sh Complete

Running /Users/rachclark/git_clones/RestingState/removeNuisanceRegressor.sh ...
...Bandpass Filtering EPI data
...Warping Nuisance ROIs to EPI space
......Mapping nuisance regressor wmroi
......Mapping nuisance regressor latvent
......Mapping nuisance regressor global
... FEAT setup
...Creating Regressors

                            < M A T L A B (R) >
                  Copyright 1984-2016 The MathWorks, Inc.
                   R2016b (9.1.0.441655) 64-bit (glnxa64)
                             September 7, 2016

To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.

[Warning: Name is nonexistent or not a directory:
/Users/rachclark/git_clones/RestingState/Octave/statistics] 
[> In path (line 109)
  In addpath (line 88)
  In run_normseedregressors (line 7)
  In run (line 96)] 
>> ...Bandpass filtering Motion Regressors
...Plotting Regressor time series
...Running FEAT (nuisancereg)
here
...Fixing FEAT registration QC images.
...Rerunning FEAT (nuisancereg (post-stats only))
...Scaling data by 1000
...Copy Brain mask
...Normalize Data
/Users/rachclark/git_clones/RestingState/removeNuisanceRegressor.sh Complete

Running /Users/rachclark/git_clones/RestingState/motionScrub.sh ...
...Scrubbing data

                            < M A T L A B (R) >
                  Copyright 1984-2016 The MathWorks, Inc.
                   R2016b (9.1.0.441655) 64-bit (glnxa64)
                             September 7, 2016

To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.

[Warning: Name is nonexistent or not a directory:
/Users/rachclark/git_clones/RestingState/Octave/nifti] 
[> In path (line 109)
  In addpath (line 88)
  In run_motionscrub (line 4)
  In run (line 96)] 
>> ...Summarizing Results
/Users/rachclark/git_clones/RestingState/motionScrub.sh Complete

Running /Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh ...
...Transforming ROIs to EPI space
......Mapping BamHippo_Blessing_14mm from MNI (standard) to subject EPI (func) space
...QC Image Setup
BamHippo_Blessing_14mm
......Preparing BamHippo_Blessing_14mm (x)
......Preparing BamHippo_Blessing_14mm (y)
......Preparing BamHippo_Blessing_14mm (z)
...Creating QC Images of ROI/Seed Registration To Functional Space

                            < M A T L A B (R) >
                  Copyright 1984-2016 The MathWorks, Inc.
                   R2016b (9.1.0.441655) 64-bit (glnxa64)
                             September 7, 2016

To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.

[Warning: Name is nonexistent or not a directory:
/Users/rachclark/git_clones/RestingState/Octave/nifti] 
[> In path (line 109)
  In addpath (line 88)
  In run_seedregistrationcheck (line 7)
  In run (line 96)] 
[Warning: Name is nonexistent or not a directory:
/Users/rachclark/git_clones/RestingState/Octave/statistics] 
[> In path (line 109)
  In addpath (line 88)
  In run_seedregistrationcheck (line 9)
  In run (line 96)] 
>> ...Seed Voxel Correlation Setup
...Creating Octave script
...Creating Octave script (motionscrubbed data)
...Correlating Seeds With Time Series Data

                            < M A T L A B (R) >
                  Copyright 1984-2016 The MathWorks, Inc.
                   R2016b (9.1.0.441655) 64-bit (glnxa64)
                             September 7, 2016

To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.

[Warning: Name is nonexistent or not a directory:
/Users/rachclark/git_clones/RestingState/Octave/nifti] 
[> In path (line 109)
  In addpath (line 88)
  In run_firstlevelseeding_parallel (line 4)
  In run (line 96)] 
[Warning: Undefined function 'matlabpool' for input arguments of type 'char'.] 
[> In firstlevelseeding_parallel (line 71)
  In run_firstlevelseeding_parallel (line 14)
  In run (line 96)] 
>> 
                            < M A T L A B (R) >
                  Copyright 1984-2016 The MathWorks, Inc.
                   R2016b (9.1.0.441655) 64-bit (glnxa64)
                             September 7, 2016

To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.

[Warning: Name is nonexistent or not a directory:
/Users/rachclark/git_clones/RestingState/Octave/nifti] 
[> In path (line 109)
  In addpath (line 88)
  In run_firstlevelseeding_parallel_ms (line 4)
  In run (line 96)] 
[Warning: Undefined function 'matlabpool' for input arguments of type 'char'.] 
[> In firstlevelseeding_parallel (line 71)
  In run_firstlevelseeding_parallel_ms (line 14)
  In run (line 96)] 
>> ...Creating zstat Results Directory
...Mapping Correlation For BamHippo_Blessing_14mm To Subject T1, MNI
/Users/rachclark/git_clones/RestingState/seedVoxelCorrelation.sh Complete
Please make sure that the ROI folders were created in the nuisancereg.feat/stats/ folder.
If resultant warped seeds (to MNI) were too small, they were NOT processed.  Check nuisancereg.feat/stats/seedsTooSmall for exclusions.
If motionscrubbing was set to 1 or 2, make sure that motionscrubbed data was created.
OCTAVE/Matlab wouldn't give an error even if this step was not successfully done.

Sat Feb 17 12:35:55 CST 2018
Beginning reproc nuisance regression (ica_aroma + compcor)...
ICA_AROMA is either not downloaded or not defined in your path, exiting script
jdkent commented 6 years ago

My first guess is to check the run_normseedregressors.m file that was generated by the RestingState scripts. and see if the call to normseedregressors.m has all the necessary arguments passed into it. Could you paste the contents of run_normseedregressors.m here? The direct error your seeing is from matlab, but let's see if we can follow the error back.

jdkent commented 6 years ago

@tbweng @mwvoss when/where should meanFlag be set in normseedregressors.m?

This is rachel's generated script run_normseedregressors.m and it's missing meanFlag:

% It is matlab script
close all;
clear all;
addpath('/Users/rachclark/git_clones/RestingState');
statsScripts=['/Users/rachclark/git_clones/RestingState','/Octave/statistics'];
addpath(statsScripts);
nuisanceRoiFile=['/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre/nuisance_rois.txt'];
fid=fopen(nuisanceRoiFile);
roiList_tmp=textscan(fid,'%s');
fclose(fid);
roiList=cell(3,1);

for i=1:3
  roiList{i,1}=(roiList_tmp{1,1}(i));
end

featdir='preproc.feat';
includemotion=1;
normseedregressors('/Shared/vosslabhpc/Projects/Bike_ATrain/Imaging/BIDS/derivatives/rsOut_legacy/sub-SEH1001/ses-pre',roiList,featdir,includemotion)
quit;
rachclark commented 6 years ago

Sorry! Was running through task switching task to see if errors so didn't see this until now.

tbweng commented 6 years ago

Based on the removeNuisanceRegressor.sh script, meanFlag is never set. I see two versions of normseedregressors.m: /vosslabhpc/UniversalSoftware/RestingState2014a/normseedregressors.m /vosslabhpc/UniversalSoftware/RestingState2017a/reproc_2016/normseedregressors.m

The current version in the RestingState repo is from RestingState2017a/reproc_2016. I'm wondering if meanFlag was something added by Matt Sutterer.

Suggest to copy the normseedregressors.m from RestingState2014a into the RestingState repo.

jdkent commented 6 years ago

Issue probably fixed with this commit