-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathd6.removeCharacters.sh
More file actions
43 lines (37 loc) · 1.46 KB
/
d6.removeCharacters.sh
File metadata and controls
43 lines (37 loc) · 1.46 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
#! /bin/bash/
arr[0]=StudCor
arr[1]=StudIncor
arr[2]=Stud_nottested
arr[3]=delayCor
arr[4]=delayIncor
arr[5]=faceCor
arr[6]=faceIncor
arr[7]=prevCor
arr[8]=prevIncor
array[0]=l_AT
array[1]=l_MD
array[2]=l_hipp
array[3]=r_MD
array[4]=r_AT
for i in {1001..1006} {1008..1011} {1013..1015} {1017..1017} {1019..1026} {1028..1028}
do
for cond in "${arr[@]}"
do
for ROI in "${array[@]}"
do
cd ${i}/GLM_BASIC/glm_basic/
#/home/bradley/bin/qexec2.R -q bigmem_16.q --mem=16G /home/bradley/bin/extractBuckets.R -i ${i}_bc_stats4FC+orig.BRIK -g "${cond}"
#ls *${cond}*Coef* > Coef_subBuck_${i}_${cond}.txt
#/home/bradley/bin/qexec2.R -q bigmem_16.q --mem=16G /home/bradley/bin/apply_warp.R Coef_subBuck_${i}_${cond}.txt
#3dTcat -prefix chumBucket_${i}_${cond} nw_${cond}*Coef.nii
#rm ideal_${i}_${cond}_fc.1D
#3dmaskave -mask ../../../StimTimeFiles/OldDeconvolveOutput/Downs_mni_${ROI}3mm+tlrc. chumBucket_${i}_${cond}+orig.BRIK >> ideal_${i}_${cond}_${ROI}_fc.1D
find ideal_${i}_${cond}_${ROI}_fc.1D -type f -exec sed -i -r 's/.{12}$//' {} \;
#3drefit -TR_time 1.77s chumBucket_${i}_${cond}+orig.
#3drefit -view tlrc -space MNI chumBucket_${i}_${cond}+orig.
#/home/bradley/bin/qexec2.R -q bigmem_16.q --mem=16G 3dfim+ -input chumBucket_${i}_${cond}+tlrc. -polort 1 -ideal_file ideal_${i}_${cond}_${ROI}_fc.1D -out Correlation -bucket fc_${ROI}_${i}_${cond}
#3dcalc -a fc_L_AT_${i}_${cond}+tlrc -expr 'log((1+a)/(1-a))/2' -prefix z_fc_${ROI}_${i}_${cond}+tlrc
cd ../../..
done
done
done