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
ae87b2c4
Commit
ae87b2c4
authored
20 years ago
by
Mark Jenkinson
Browse files
Options
Downloads
Patches
Plain Diff
Now ignores tabs as well as spaces
parent
978cf3d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bedpost_datacheck
+6
-6
6 additions, 6 deletions
bedpost_datacheck
with
6 additions
and
6 deletions
bedpost_datacheck
+
6
−
6
View file @
ae87b2c4
#!/bin/sh
if
[
"
$1
"
=
""
]
;
then
if
[
$#
-lt
1
]
;
then
echo
"Usage:
$0
data_dir"
exit
;
exit
1
;
fi
DIR
=
$1
;
...
...
@@ -18,7 +18,7 @@ done
for
bv
in
${
DIR
}
/bvals
${
DIR
}
/bvecs
;
do
echo
" num lines in
$bv
"
cat
$bv
|grep
-v
"^
*$"
|wc
-l
cat
$bv
|grep
-v
"^
[ ]
*$"
|wc
-l
echo
" num words in
$bv
"
cat
$bv
|wc
-w
done
...
...
@@ -39,9 +39,9 @@ if [ `${FSLDIR}/bin/imtest ${DIR}/data` -eq 1 -a `${FSLDIR}/bin/imtest ${DIR}/no
echo
"data dimensions do not match mask dimensions"
fi
bvallen
=
`
cat
${
DIR
}
/bvals|grep
-v
"^
*$"
|wc
-w
`
bvallen
=
`
cat
${
DIR
}
/bvals|grep
-v
"^
[ ]
*$"
|wc
-w
`
bveclenw
=
`
cat
${
DIR
}
/bvecs|wc
-w
`
bveclenl
=
`
cat
${
DIR
}
/bvecs|grep
-v
"^
*$"
|wc
-l
`
bveclenl
=
`
cat
${
DIR
}
/bvecs|grep
-v
"^
[ ]
*$"
|wc
-l
`
bveclen
=
`
echo
"
$bveclenw
/
$bveclenl
"
|bc
`
...
...
@@ -55,4 +55,4 @@ if [ `${FSLDIR}/bin/imtest ${DIR}/data` -eq 1 -a `${FSLDIR}/bin/imtest ${DIR}/no
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
fi
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