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
3e6acc8d
Commit
3e6acc8d
authored
15 years ago
by
Saad Jbabdi
Browse files
Options
Downloads
Patches
Plain Diff
path fix
parent
8613b5b5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bedpostx
+5
-2
5 additions, 2 deletions
bedpostx
bedpostx_postproc.sh
+9
-0
9 additions, 0 deletions
bedpostx_postproc.sh
with
14 additions
and
2 deletions
bedpostx
+
5
−
2
View file @
3e6acc8d
...
@@ -24,6 +24,7 @@ Usage() {
...
@@ -24,6 +24,7 @@ Usage() {
echo
"-b (burnin period, default 1000)"
echo
"-b (burnin period, default 1000)"
echo
"-j (number of jumps, default 1250)"
echo
"-j (number of jumps, default 1250)"
echo
"-s (sample every, default 25)"
echo
"-s (sample every, default 25)"
echo
"-model (1:monoexponential [default] - 2:non-monoexponential [to be used in multi-shell acquisitions])"
echo
""
echo
""
exit
1
exit
1
}
}
...
@@ -54,6 +55,7 @@ fudge=1
...
@@ -54,6 +55,7 @@ fudge=1
burnin
=
1000
burnin
=
1000
njumps
=
1250
njumps
=
1250
sampleevery
=
25
sampleevery
=
25
model
=
1
while
[
!
-z
"
$2
"
]
while
[
!
-z
"
$2
"
]
do
do
case
"
$2
"
in
case
"
$2
"
in
...
@@ -62,6 +64,7 @@ do
...
@@ -62,6 +64,7 @@ do
-b
)
burnin
=
$3
;
shift
;;
-b
)
burnin
=
$3
;
shift
;;
-j
)
njumps
=
$3
;
shift
;;
-j
)
njumps
=
$3
;
shift
;;
-s
)
sampleevery
=
$3
;
shift
;;
-s
)
sampleevery
=
$3
;
shift
;;
-model
)
model
=
$3
;
shift
;;
*
)
break
;;
*
)
break
;;
esac
esac
shift
shift
...
@@ -173,12 +176,12 @@ do
...
@@ -173,12 +176,12 @@ do
if
[
`
$FSLDIR
/bin/imtest
${
subjdir
}
.bedpostX/diff_slices/data_slice_
$slicezp
/dyads1
`
-eq
1
]
;
then
if
[
`
$FSLDIR
/bin/imtest
${
subjdir
}
.bedpostX/diff_slices/data_slice_
$slicezp
/dyads1
`
-eq
1
]
;
then
echo
"slice
$slice
has already been processed"
echo
"slice
$slice
has already been processed"
else
else
echo
"
${
FSLDIR
}
/bin/bedpostx_single_slice.sh
$subjdir
$nfibres
$fudge
$burnin
$njumps
$sampleevery
$slice
"
\
echo
"
${
FSLDIR
}
/bin/bedpostx_single_slice.sh
$subjdir
$nfibres
$fudge
$burnin
$njumps
$sampleevery
$model
$slice
"
\
>>
${
subjdir
}
.bedpostX/commands.txt
>>
${
subjdir
}
.bedpostX/commands.txt
fi
fi
slice
=
$((
$slice
+
1
))
slice
=
$((
$slice
+
1
))
done
done
bedpostid
=
`
${
FSLDIR
}
/bin/fsl_sub -j
$preprocid
-l
${
subjdir
}
.bedpostX/logs -M
$mailto
-N bedpostx -t
${
subjdir
}
.bedpostX/commands.txt
`
bedpostid
=
`
${
FSLDIR
}
/bin/fsl_sub -j
$preprocid
-a lx24-amd64
-l
${
subjdir
}
.bedpostX/logs -M
$mailto
-N bedpostx -t
${
subjdir
}
.bedpostX/commands.txt
`
echo
Queuing post processing stage
echo
Queuing post processing stage
mergeid
=
`
${
FSLDIR
}
/bin/fsl_sub -j
$bedpostid
-T 60 -m as -N bpx_postproc -l
${
subjdir
}
.bedpostX/logs
${
FSLDIR
}
/bin/bedpostx_postproc.sh
$subjdir
`
mergeid
=
`
${
FSLDIR
}
/bin/fsl_sub -j
$bedpostid
-T 60 -m as -N bpx_postproc -l
${
subjdir
}
.bedpostX/logs
${
FSLDIR
}
/bin/bedpostx_postproc.sh
$subjdir
`
...
...
This diff is collapsed.
Click to expand it.
bedpostx_postproc.sh
+
9
−
0
View file @
3e6acc8d
...
@@ -16,8 +16,17 @@ do
...
@@ -16,8 +16,17 @@ do
${
FSLDIR
}
/bin/make_dyadic_vectors
${
subjdir
}
.bedpostX/merged_th
${
fib
}
samples
${
subjdir
}
.bedpostX/merged_ph
${
fib
}
samples
${
subjdir
}
.bedpostX/nodif_brain_mask
${
subjdir
}
.bedpostX/dyads
${
fib
}
${
FSLDIR
}
/bin/make_dyadic_vectors
${
subjdir
}
.bedpostX/merged_th
${
fib
}
samples
${
subjdir
}
.bedpostX/merged_ph
${
fib
}
samples
${
subjdir
}
.bedpostX/nodif_brain_mask
${
subjdir
}
.bedpostX/dyads
${
fib
}
fib
=
$((
$fib
+
1
))
fib
=
$((
$fib
+
1
))
done
done
if
[
`
${
FSLDIR
}
/bin/imtest
${
subjdir
}
.bedpostX/diff_slices/data_slice_0000/mean_dsamples
`
]
;
then
${
FSLDIR
}
/bin/fslmerge
-z
${
subjdir
}
.bedpostX/mean_dsamples
`
${
FSLDIR
}
/bin/imglob
${
subjdir
}
.bedpostX/diff_slices/data_slice_
*
/mean_dsamples
*
`
fi
if
[
`
${
FSLDIR
}
/bin/imtest
${
subjdir
}
.bedpostX/diff_slices/data_slice_0000/mean_d_stdsamples
`
]
;
then
${
FSLDIR
}
/bin/fslmerge
-z
${
subjdir
}
.bedpostX/mean_d_stdsamples
`
${
FSLDIR
}
/bin/imglob
${
subjdir
}
.bedpostX/diff_slices/data_slice_
*
/mean_d_stdsamples
*
`
fi
echo
Removing intermediate files
echo
Removing intermediate files
if
[
`
imtest
${
subjdir
}
.bedpostX/merged_th1samples
`
-eq
1
]
;
then
if
[
`
imtest
${
subjdir
}
.bedpostX/merged_th1samples
`
-eq
1
]
;
then
...
...
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