Skip to content

Commit

Permalink
new stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
layerfMRI committed Apr 7, 2018
1 parent cfef4bb commit 6f1e61f
Show file tree
Hide file tree
Showing 23 changed files with 4,274 additions and 1,008 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified DLPFC_Emily/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Up_sample_3d.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo "$sdelta_x"
echo "$sdelta_y"
echo "$sdelta_z"

3dresample -dxyz $sdelta_x $sdelta_y $sdelta_z -rmode Li -overwrite -prefix scaled_$1 -input $1
3dresample -dxyz $sdelta_x $sdelta_y $sdelta_z -rmode Cu -overwrite -prefix scaled_$1 -input $1

echo "und tschuess"

Expand Down
2 changes: 1 addition & 1 deletion anatomical_master_felix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ antsRegistration \
--dimensionality 3 \
--float 1 \
--output [registered_,registered_Warped.nii.gz,registered_InverseWarped.nii.gz] \
--interpolation Linear \
--interpolation BSpline[5] \
--use-histogram-matching 0 \
--winsorize-image-intensities [0.005,0.995] \
--initial-moving-transform initial_matrix.txt \
Expand Down
2 changes: 1 addition & 1 deletion anatomical_master_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ antsRegistration \
--float 0 \
--collapse-output-transforms 1 \
--output [registered_,registered_Warped.nii.gz,registered_InverseWarped.nii.gz] \
--interpolation Linear \
--interpolation BSpline[5] \
--use-histogram-matching 0 \
--winsorize-image-intensities [0.005,0.995] \
--initial-moving-transform initial_matrix.txt \
Expand Down
3 changes: 3 additions & 0 deletions bias_field_corr/start_bias_field.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ cp /Users/huberl/NeuroDebian/repository/bias_field_corr/Bias_field_script_job.m

3dcalc -a muncorr.nii -prefix muncorr.nii -overwrite -expr 'a' -datum short

mv muncorr.nii bico_$1

rm mucorr.nii
rm uncorr.nii

echo "und tschuess"
Binary file modified motion/.DS_Store
Binary file not shown.
20 changes: 0 additions & 20 deletions motion/cross_da_moco/fix_start.sh

This file was deleted.

Binary file removed motion/cross_da_moco/moma.nii
Binary file not shown.
953 changes: 0 additions & 953 deletions motion/cross_da_moco/ninothree_mocobatch2run.m

This file was deleted.

Binary file removed motion/cross_da_moco/ref_notnulled_AND.nii
Binary file not shown.
Binary file removed motion/cross_da_moco/ref_notnulled_LEE.nii
Binary file not shown.
Binary file removed motion/cross_da_moco/ref_nulled_AND.nii
Binary file not shown.
Binary file removed motion/cross_da_moco/ref_nulled_LEE.nii
Binary file not shown.
31 changes: 0 additions & 31 deletions motion/cross_da_moco/start_MOCO_prep.sh

This file was deleted.

1,372 changes: 1,372 additions & 0 deletions motion/four_emily_mocobatch2run.m

Large diffs are not rendered by default.

852 changes: 852 additions & 0 deletions motion/four_tot_mocobatch2run.m

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions motion/gnuplot_moco_multi.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#aufrufen mit load "./gnuplot.txt"


#set terminal x11 enhanced 40
set terminal postscript enhanced color solid "Helvetica" 10

set out "motion.ps"

set key left bottom # f�r Position of Legend


set title "Motion across timesteps" font "Helvetica,10"
set ylabel "displacement in mm" font "Helvetica,10"
set xlabel "|time in TR" font "Helvetica,10"
#set xrange [-2:2]
#set yrange [-1:1]
set size ratio 0.6
#set grid
#set ytics ("0" 0 , "1" 1, "-1" -1)
#set xtics ( "{/Symbol D} T" -85.37 , "-60.98" -60.98, "-36.59" -36.59, "-12.2" -12.2, "0" 0, "12.2" 12.2, "36.59" 36.59, "60.98" 60.98, "85.37" 85.37 )


plot "rp_Basis_0a.txt" u 0:1 with lines title "Not_nulled x" linecolor rgb "green" ,\
"rp_Basis_0a.txt" u 0:2 with lines title "Not_nulled y" linecolor rgb "red" ,\
"rp_Basis_0a.txt" u 0:3 with lines title "Not_nulled z" linecolor rgb "brown" ,\
"rp_Basis_0b.txt" u 0:1 with lines title "nulled x" linecolor rgb "turquoise" ,\
"rp_Basis_0b.txt" u 0:2 with lines title "nulled y" linecolor rgb "pink" ,\
"rp_Basis_0b.txt" u 0:3 with lines title "nulled z" linecolor rgb "black"

#replot "plochsim_5_ohne.csv" using 1 with lines title "with eddy currents and {/Symbol t} = 0.2 ms" linecolor rgb "blue"

set term x11
exit



1,552 changes: 1,552 additions & 0 deletions motion/seven_eli_mocobatch2run.m

Large diffs are not rendered by default.

129 changes: 129 additions & 0 deletions motion/start_moco_four_203.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
#!/bin/bash

echo "fange an mit Bas"
#!/bin/bash



cp ./AMPL0.nii ./Basis_0a.nii
cp ./AMPL0.nii ./Basis_0b.nii

cp ./AMPL1.nii ./Basis_1a.nii
cp ./AMPL1.nii ./Basis_1b.nii

cp ./AMPL2.nii ./Basis_2a.nii
cp ./AMPL2.nii ./Basis_2b.nii

cp ./AMPL3.nii ./Basis_3a.nii
cp ./AMPL3.nii ./Basis_3b.nii



fslsplit ./Basis_0a.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_0a.nii splited*

rm splited*

fslsplit ./Basis_0b.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_0b.nii splited*

rm splited*


fslsplit ./Basis_1a.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_1a.nii splited*

rm splited*

fslsplit ./Basis_1b.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_1b.nii splited*

rm splited*


fslsplit ./Basis_2a.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_2a.nii splited*

rm splited*

fslsplit ./Basis_2b.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_2b.nii splited*

rm splited*



fslsplit ./Basis_3a.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_3a.nii splited*

rm splited*

fslsplit ./Basis_3b.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_3b.nii splited*

rm splited*




echo "hole SPM motion batch"
cp /Users/huberl/NeuroDebian/repository/motion/four_tot_mocobatch2run.m ./four_tot_mocobatch2run.m
/Applications/MATLAB_R2016a.app/bin/matlab -nodesktop -nosplash -r "four_tot_mocobatch2run"

gnuplot "/Users/huberl/NeuroDebian/repository/motion/gnuplot_moco_multi.txt"

#3dMean -prefix Not_Nulled_Basis_a.nii Not_Nulled_Basis_0a.nii Not_Nulled_Basis_1a.nii Not_Nulled_Basis_2a.nii Not_Nulled_Basis_3a.nii
#3dMean -prefix Nulled_Basis_b.nii Nulled_Basis_0b.nii Nulled_Basis_1b.nii Nulled_Basis_2b.nii Nulled_Basis_3b.nii


#afni_VASO_eval_SPM.sh

echo "und tschuess"
129 changes: 129 additions & 0 deletions motion/start_moco_four_331.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
#!/bin/bash

echo "fange an mit Bas"
#!/bin/bash



cp ./AMPL0.nii ./Basis_0a.nii
cp ./AMPL0.nii ./Basis_0b.nii

cp ./AMPL1.nii ./Basis_1a.nii
cp ./AMPL1.nii ./Basis_1b.nii

cp ./AMPL2.nii ./Basis_2a.nii
cp ./AMPL2.nii ./Basis_2b.nii

cp ./AMPL3.nii ./Basis_3a.nii
cp ./AMPL3.nii ./Basis_3b.nii



fslsplit ./Basis_0a.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_0a.nii splited*

rm splited*

fslsplit ./Basis_0b.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_0b.nii splited*

rm splited*


fslsplit ./Basis_1a.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_1a.nii splited*

rm splited*

fslsplit ./Basis_1b.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_1b.nii splited*

rm splited*


fslsplit ./Basis_2a.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_2a.nii splited*

rm splited*

fslsplit ./Basis_2b.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_2b.nii splited*

rm splited*



fslsplit ./Basis_3a.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_3a.nii splited*

rm splited*

fslsplit ./Basis_3b.nii splited

cp splited0004.nii splited0000.nii
cp splited0005.nii splited0001.nii
cp splited0006.nii splited0002.nii
cp splited0007.nii splited0003.nii

fslmerge -t Basis_3b.nii splited*

rm splited*




echo "hole SPM motion batch"
cp /Users/huberl/NeuroDebian/repository/motion/four_emily_mocobatch2run.m ./four_emily_mocobatch2run.m
/Applications/MATLAB_R2016a.app/bin/matlab -nodesktop -nosplash -r "four_emily_mocobatch2run"

gnuplot "/Users/huberl/NeuroDebian/repository/motion/gnuplot_moco_multi.txt"

3dMean -prefix Not_Nulled_Basis_a.nii Not_Nulled_Basis_0a.nii Not_Nulled_Basis_1a.nii Not_Nulled_Basis_2a.nii Not_Nulled_Basis_3a.nii
3dMean -prefix Nulled_Basis_b.nii Nulled_Basis_0b.nii Nulled_Basis_1b.nii Nulled_Basis_2b.nii Nulled_Basis_3b.nii


afni_VASO_eval_SPM.sh

echo "und tschuess"
Loading

0 comments on commit 6f1e61f

Please sign in to comment.