-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests and test data for 5ttgen msmt
- Loading branch information
Showing
4 changed files
with
44 additions
and
2 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
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
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 @@ | ||
#!/bin/bash | ||
# Verify "5ttgen msmt" default operation | ||
# Output is compared to a prior output generateed by the command | ||
|
||
# First we need to get some multi-tissue ODFs | ||
dwi2response dhollander BIDS/sub-01/dwi/sub-01_dwi.nii.gz tmp_wm.txt tmp_gm.txt tmp_csf.txt \ | ||
-fslgrad BIDS/sub-01/dwi/sub-01_dwi.bvec BIDS/sub-01/dwi/sub-01_dwi.bval \ | ||
-mask BIDS/sub-01/dwi/sub-01_brainmask.nii.gz \ | ||
-force | ||
dwi2fod msmt_csd BIDS/sub-01/dwi/sub-01_dwi.nii.gz \ | ||
-fslgrad BIDS/sub-01/dwi/sub-01_dwi.bvec BIDS/sub-01/dwi/sub-01_dwi.bval \ | ||
tmp_wm.txt tmp_wm.mif \ | ||
tmp_gm.txt tmp_gm.mif \ | ||
tmp_csf.txt tmp_csf.mif \ | ||
-force | ||
|
||
5ttgen msmt tmp_wm.mif tmp_gm.mif tmp_csf.mif tmp.mif -force | ||
|
||
testing_diff_image tmp.mif 5ttgen/msmt/default.mif.gz -abs 1e-5 |
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,21 @@ | ||
#!/bin/bash | ||
# Verify "5ttgen msmt" operation where a user-specified mask is provided | ||
# Output is compared to a prior output generateed by the command | ||
|
||
# First we need to get some multi-tissue ODFs | ||
dwi2response dhollander BIDS/sub-01/dwi/sub-01_dwi.nii.gz tmp_wm.txt tmp_gm.txt tmp_csf.txt \ | ||
-fslgrad BIDS/sub-01/dwi/sub-01_dwi.bvec BIDS/sub-01/dwi/sub-01_dwi.bval \ | ||
-mask BIDS/sub-01/dwi/sub-01_brainmask.nii.gz \ | ||
-force | ||
dwi2fod msmt_csd BIDS/sub-01/dwi/sub-01_dwi.nii.gz \ | ||
-fslgrad BIDS/sub-01/dwi/sub-01_dwi.bvec BIDS/sub-01/dwi/sub-01_dwi.bval \ | ||
tmp_wm.txt tmp_wm.mif \ | ||
tmp_gm.txt tmp_gm.mif \ | ||
tmp_csf.txt tmp_csf.mif \ | ||
-force | ||
|
||
5ttgen msmt tmp_wm.mif tmp_gm.mif tmp_csf.mif tmp.mif \ | ||
-mask BIDS/sub-01/dwi/sub-01_brainmask.nii.gz \ | ||
-force | ||
|
||
testing_diff_image tmp.mif 5ttgen/msmt/masked.mif.gz -abs 1e-5 |