-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakeSTC.sh
More file actions
executable file
·101 lines (76 loc) · 2.85 KB
/
Copy pathmakeSTC.sh
File metadata and controls
executable file
·101 lines (76 loc) · 2.85 KB
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
#!/bin/csh -f
#usage makeSTC.sh subjID exp logfile
#you need to change the exp variable and condList below to run STCs for your experiment of interest
set exp = $2
echo $exp
if ( $exp == "MaskedMM_All" ) then
set condList = ( 4 2 3 )
echo $condList
endif
if ( $exp == "BaleenLP_All" ) then
set condList = ( 3 5 )
echo $condList
endif
if ( $exp == "BaleenHP_All" ) then
set condList = ( 5 7 9 10)
echo $condList
endif
if ( $exp == "AXCPT_All" ) then
set condList = ( 1 2 3 4 5 6 )
echo $condList
endif
if ( $exp == "AXCPT-equalisedTar_All" ) then
set condList = ( 1 2 3 4 )
echo $condList
endif
if ( $exp == "AXCPT-equalisedPri_All" ) then
set condList = ( 1 2 )
echo $condList
endif
####################################
if ( $#argv == 0 ) then
echo "NO SUBJECT ARGUMENT"
exit 1
endif
if ( $#argv == 1 ) then
set log='./makeSTC.log'
echo "Logging to default log..." >>& $log
endif
if ( $#argv == 2 ) then
set log='./makeSTC.log'
echo "Logging to default log..." >>& $log
endif
if ( $#argv == 3) then
set log=$3
endif
# if log exists, delete
if ( -e $log ) then
rm $log
endif
###################################
setenv SUBJECT $1
cd /cluster/kuperberg/SemPrMM/MEG/data/$1/ave_projon
mkdir stc
mkdir stc/$exp
foreach c ($condList)
# echo Unmorphed mne >>& $log
# mne_make_movie --inv $1_$exp-ave-7-meg-inv.fif --meas $1_{$exp}-ave.fif --set $c --bmin -100 --bmax -.01 --stc stc/$exp/$1_{$exp}_c{$c}-mne.stc --smooth 7 >>& $log
#
# echo Unmorphed spm >>& $log
# mne_make_movie --inv $1_$exp-ave-7-meg-inv.fif --meas $1_{$exp}-ave.fif --set $c --bmin -100 --bmax -.01 --stc stc/$exp/$1_{$exp}_c{$c}-spm.stc --smooth 7 --spm >>& $log
#
# echo Unmorphed sLORETA >>& $log
# mne_make_movie --inv $1_$exp-ave-7-meg-inv.fif --meas $1_{$exp}-ave.fif --set $c --bmin -100 --bmax -.01 --stc stc/$exp/$1_{$exp}_c{$c}-sLORETA.stc --smooth 7 --sLORETA >>& $log
#
echo Morphed mne >>& $log
mne_make_movie --inv $1_$exp-ave-7-meg-inv.fif --meas $1_{$exp}-ave.fif --set $c --bmin -100 --bmax -.01 --stc stc/$exp/$1_{$exp}_c{$c}M-mne.stc --smooth 7 --morph fsaverage >>& $log
echo Morphed spm >>& $log
mne_make_movie --inv $1_$exp-ave-7-meg-inv.fif --meas $1_{$exp}-ave.fif --set $c --bmin -100 --bmax -.01 --stc stc/$exp/$1_{$exp}_c{$c}M-spm.stc --smooth 7 --spm --morph fsaverage >>& $log
echo Morphed sLORETA >>& $log
mne_make_movie --inv $1_$exp-ave-7-meg-inv.fif --meas $1_{$exp}-ave.fif --set $c --bmin -100 --bmax -.01 --stc stc/$exp/$1_{$exp}_c{$c}M-sLORETA.stc --smooth 7 --sLORETA --morph fsaverage >>& $log
# echo Morphed spm >> & $log
# mkdir stc/$exp-megeeg
# mne_make_movie --inv $1_$exp-ave-7-meg-eeg-inv.fif --meas $1_{$exp}-ave.fif --set $c --bmin -100 --bmax -.01 --stc stc/$exp-megeeg/$1_{$exp}-megeeg_c{$c}M-spm.stc --smooth 7 --spm --morph fsaverage >>& $log
end
########FIX GROUP ON ALL FILES########
chgrp -R lingua .