-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added bash script to perform default csd processing
- Loading branch information
Tom Close
committed
Feb 10, 2013
1 parent
8baf050
commit 7b52664
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ ! -d csd ]; then | ||
read -p "No 'csd' folder found in current directory '$PWD', do you wish to create one [y] or exit [n]: " yn | ||
if [ $yn == "yes" ] || [ $yn == "y" ]; then | ||
mkdir csd | ||
else | ||
exit | ||
fi | ||
fi | ||
cd csd | ||
average ../dwi.mif -axis 3 - | threshold - - | median3D - - | median3D - mask.mif | ||
dwi2tensor ../dwi.mif dt.mif | ||
tensor2FA dt.mif - | mrmult - mask.mif fa.mif | ||
erode mask.mif -npass 3 - | mrmult fa.mif - - | threshold - -abs 0.7 sf.mif | ||
estimate_response ../dwi.mif sf.mif response.txt | ||
disp_profile -response response.txt | ||
csdeconv ../dwi.mif response.txt -lmax 8 -mask mask.mif CSD8.mif | ||
mrview ../dwi.mif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/tclose/Data/dMRI/donald/corpus_callosum.mif |