Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fdt
Commits
413e5a2b
Commit
413e5a2b
authored
20 years ago
by
Tim Behrens
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
91f529ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
bedpost_datacheck
+38
-4
38 additions, 4 deletions
bedpost_datacheck
with
39 additions
and
5 deletions
Makefile
+
1
−
1
View file @
413e5a2b
...
@@ -32,7 +32,7 @@ RVOBJS=replacevols.o
...
@@ -32,7 +32,7 @@ RVOBJS=replacevols.o
MDVOBJS
=
make_dyadic_vectors.o
MDVOBJS
=
make_dyadic_vectors.o
SCRIPTS
=
eddy_correct bedpost bedpost_proc bedpost_cleanup bedpost_kill_all bedpost_kill_pid zeropad
SCRIPTS
=
eddy_correct bedpost bedpost_proc bedpost_cleanup bedpost_kill_all bedpost_kill_pid zeropad
bedpost_datacheck
XFILES
=
dtifit probtrack find_the_biggest medianfilter diff_pvm make_dyadic_vectors proj_thresh
XFILES
=
dtifit probtrack find_the_biggest medianfilter diff_pvm make_dyadic_vectors proj_thresh
...
...
This diff is collapsed.
Click to expand it.
bedpost_datacheck
+
38
−
4
View file @
413e5a2b
#!/bin/sh
#!/bin/sh
if
[
$1
=
""
]
;
then
if
[
"
$1
"
=
""
]
;
then
echo
"Usage:
$0
data
dir
ectory
"
echo
"Usage:
$0
data
_
dir"
exit
;
exit
;
fi
fi
...
@@ -18,7 +18,41 @@ done
...
@@ -18,7 +18,41 @@ done
for
bv
in
${
DIR
}
/bvals
${
DIR
}
/bvecs
;
do
for
bv
in
${
DIR
}
/bvals
${
DIR
}
/bvecs
;
do
echo
" num lines in
$bv
"
echo
" num lines in
$bv
"
cat
$bv
|wc
-l
cat
$bv
|wc
-l
|grep
-v
"^ *$"
echo
" num words in
$bv
"
echo
" num words in
$bv
"
cat
$bv
|wc
-w
cat
$bv
|wc
-w
done
done
\ No newline at end of file
if
[
`
imtest
${
DIR
}
/data
`
-eq
1
-a
`
imtest
${
DIR
}
/nodif_brain_mask
`
-eq
1
]
;
then
dx
=
`
avwval
${
DIR
}
/data dim1
`
dy
=
`
avwval
${
DIR
}
/data dim2
`
dz
=
`
avwval
${
DIR
}
/data dim3
`
dt
=
`
avwval
${
DIR
}
/data dim4
`
nbmx
=
`
avwval
${
DIR
}
/nodif_brain_mask dim1
`
nbmy
=
`
avwval
${
DIR
}
/nodif_brain_mask dim2
`
nbmz
=
`
avwval
${
DIR
}
/nodif_brain_mask dim3
`
if
[
$dx
-ne
$nbmx
-o
$dy
-ne
$nbmy
-o
$dz
-ne
$nbmz
]
;
then
echo
"data dimensions do not match mask dimensions"
fi
bvallen
=
`
cat
${
DIR
}
/bvals|wc
-w
|grep
-v
"^ *$"
`
bveclenw
=
`
cat
${
DIR
}
/bvecs|wc
-w
`
bveclenl
=
`
cat
${
DIR
}
/bvecs|wc
-l
|grep
-v
"^ *$"
`
bveclen
=
`
echo
"
$bveclenw
/
$bveclenl
"
|bc
`
if
[
$bveclen
-ne
$bvallen
]
;
then
echo
"bvecs and bvals are incompatible"
fi
if
[
$bvallen
-ne
$dt
]
;
then
echo
"number of elements in bvals is not equal to number of vols in data"
fi
if
[
$bveclen
-ne
$dt
]
;
then
echo
"number of elements per line in bvecs is not equal to number of vols in data"
fi
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment