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
978cf3d1
Commit
978cf3d1
authored
20 years ago
by
Tim Behrens
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
413e5a2b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bedpost_datacheck
+13
-13
13 additions, 13 deletions
bedpost_datacheck
with
13 additions
and
13 deletions
bedpost_datacheck
+
13
−
13
View file @
978cf3d1
...
...
@@ -7,9 +7,9 @@ fi
DIR
=
$1
;
for
img
in
${
DIR
}
/data
${
DIR
}
/nodif
${
DIR
}
/nodif_brain_mask
;
do
if
[
`
imtest
$img
`
-eq
1
]
;
then
if
[
`
${
FSLDIR
}
/bin/
imtest
$img
`
-eq
1
]
;
then
echo
$img
avwinfo
$img
;
${
FSLDIR
}
/bin/
avwinfo
$img
;
echo
""
else
echo
$img
does not exist
;
...
...
@@ -18,30 +18,30 @@ done
for
bv
in
${
DIR
}
/bvals
${
DIR
}
/bvecs
;
do
echo
" num lines in
$bv
"
cat
$bv
|wc
-l
|grep
-v
"^ *$"
cat
$bv
|grep
-v
"^ *$"
|wc
-l
echo
" num words in
$bv
"
cat
$bv
|wc
-w
done
if
[
`
imtest
${
DIR
}
/data
`
-eq
1
-a
`
imtest
${
DIR
}
/nodif_brain_mask
`
-eq
1
]
;
then
if
[
`
${
FSLDIR
}
/bin/
imtest
${
DIR
}
/data
`
-eq
1
-a
`
${
FSLDIR
}
/bin/
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
`
dx
=
`
${
FSLDIR
}
/bin/
avwval
${
DIR
}
/data dim1
`
dy
=
`
${
FSLDIR
}
/bin/
avwval
${
DIR
}
/data dim2
`
dz
=
`
${
FSLDIR
}
/bin/
avwval
${
DIR
}
/data dim3
`
dt
=
`
${
FSLDIR
}
/bin/
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
`
nbmx
=
`
${
FSLDIR
}
/bin/
avwval
${
DIR
}
/nodif_brain_mask dim1
`
nbmy
=
`
${
FSLDIR
}
/bin/
avwval
${
DIR
}
/nodif_brain_mask dim2
`
nbmz
=
`
${
FSLDIR
}
/bin/
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
"^ *$"
`
bvallen
=
`
cat
${
DIR
}
/bvals|grep
-v
"^ *$"
|wc
-w
`
bveclenw
=
`
cat
${
DIR
}
/bvecs|wc
-w
`
bveclenl
=
`
cat
${
DIR
}
/bvecs|
wc
-l
|
grep
-v
"^ *$"
`
bveclenl
=
`
cat
${
DIR
}
/bvecs|grep
-v
"^ *$"
|wc
-l
`
bveclen
=
`
echo
"
$bveclenw
/
$bveclenl
"
|bc
`
...
...
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