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
fa0425e1
Commit
fa0425e1
authored
17 years ago
by
Matthew Webster
Browse files
Options
Downloads
Patches
Plain Diff
saad fixes
parent
69394ce8
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
fdtx.tcl
+21
-29
21 additions, 29 deletions
fdtx.tcl
with
21 additions
and
29 deletions
fdtx.tcl
+
21
−
29
View file @
fa0425e1
...
...
@@ -650,7 +650,7 @@ proc fdt:apply { w dialog } {
global probtrack
set errorStr
""
if
{
$probtrack
(
bedpost_dir
)
==
""
}
{
set errorStr
"You must specify the bedpost directory!"
}
if
{
$probtrack
(
reference
)
==
""
}
{
set errorStr
"
$error
Str You must specify a reference image"
}
if
{
$probtrack
(
mode
)
!=
"network"
&&
$probtrack
(
reference
)
==
""
}
{
set errorStr
"
$error
Str You must specify a reference image"
}
if
{
$probtrack
(
exclude_yn
)
&& $probtrack
(
exclude
)
==
""
}
{
set errorStr
"
$error
Str You must specify the exclusion mask!"
}
if
{
$probtrack
(
terminate_yn
)
&& $probtrack
(
stop
)
==
""
}
{
set errorStr
"
$error
Str You must specify the termination mask!"
}
if
{
$probtrack
(
output
)
==
""
}
{
set errorStr
"
$error
Str You must specify the output basename!"
}
...
...
@@ -686,6 +686,20 @@ proc fdt:apply { w dialog } {
puts $log
"set probtrack(stop)
$probtrack
(stop)"
}
if
{
$errorStr !=
""
}
{
MxPause $errorStr
return
}
set canwrite 1
if
{
[
file exists $probtrack
(
output
)
]
}
{
set canwrite
[
YesNoWidget
"Overwrite
$probtrack
(output)?"
Yes No
]
}
if
{
$canwrite
}
{
puts
"rm -rf
$probtrack
(output)"
exec rm -rf $probtrack
(
output
)
puts
"mkdir -p
$probtrack
(output)"
exec mkdir -p $probtrack
(
output
)
}
set flags
"
$flags
--forcedir --opd -s
$probtrack
(bedpost_dir)/merged -m
$probtrack
(bedpost_dir)/nodif_brain_mask --dir=
$probtrack
(output)"
foreach entry
{
bedpost_dir xfm mode exclude_yn usereference_yn verbose_yn loopcheck_yn modeuler_yn curvature nsteps steplength nparticles
}
{
...
...
@@ -713,44 +727,22 @@ proc fdt:apply { w dialog } {
puts $log
"set probtrack(y)
$probtrack
(y)"
puts $log
"set probtrack(z)
$probtrack
(z)"
puts $log
"set probtrack(units)
$probtrack
(units)"
set flags
"
$flags
--seedref=
$probtrack
(reference) -o
$probtrack
(output)"
set probtrack
(
reference2
)
$
{
filebase
}
_coordinates.txt
set flags
"--mode=single --seedref=
$probtrack
(reference) -o
$probtrack
(output) -x
${filebase}
_coordinates.txt
$flags
"
}
seedmask
{
if
{
$probtrack
(
bcyn
)
}
{
fdt_monitor_short $w
"
${FSLDIR}
/bin/flirt -in
seed_brain_mask -ref
seed_brain_mask -applyisoxfm 5 -out lowresmask"
fdt_monitor_short $w
"
${FSLDIR}
/bin/avwmaths lowresmask -thr 0.5 -bin lowresmask"
fdt_monitor_short $w
"
${FSLDIR}
/bin/flirt -in
$probtrack
(bedpost_dir)/seed_brain_mask -ref
$probtrack
(bedpost_dir)/
seed_brain_mask -applyisoxfm 5 -out
$probtrack
(bedpost_dir)/
lowresmask"
fdt_monitor_short $w
"
${FSLDIR}
/bin/avwmaths lowresmask -thr 0.5 -bin lowresmask"
set flags
"
$flags
--lrmask=lowresmask --omatrix2"
}
set probtrack
(
reference2
)
$probtrack
(
reference
)
set flags
"--mode=seedmask -x
$probtrack
(reference)
$flags
"
}
network
{
set flags
"
$flags
--network"
set probtrack
(
mode
)
seedmask
fdt_exp w $w.data.seed.targets $probtrack
(
output
)
/masks.txt
set probtrack
(
reference2
)
$probtrack
(
output
)
/masks.txt
set flags
"--network --mode=seedmask -x
$probtrack
(output)/masks.txt
$flags
"
}
}
if
{
$errorStr !=
""
}
{
MxPause $errorStr
return
}
set canwrite 1
if
{
[
file exists $probtrack
(
output
)
]
}
{
set canwrite
[
YesNoWidget
"Overwrite
$probtrack
(output)?"
Yes No
]
}
if
{
$canwrite
}
{
puts
"here"
puts
"rm -rf
$probtrack
(output)"
exec rm -rf $probtrack
(
output
)
puts
"mkdir -p
$probtrack
(output)"
exec mkdir -p $probtrack
(
output
)
}
puts $probtrack
(
output
)
if
{
$canwrite
}
{
set copylog
"fdt.log"
...
...
@@ -763,7 +755,7 @@ proc fdt:apply { w dialog } {
set flags
"
$flags
--targetmasks=
$probtrack
(output)/targets.txt --os2t "
}
fdt_monitor_short $w
"
$
FSLDIR/bin/probtrackx
--mode=
$probtrack
(mode) -x
$probtrack
(reference2)
$flags
"
fdt_monitor_short $w
"
$
FSLDIR/bin/probtrackx
$flags
"
if
{
$probtrack
(
classify_yn
)
== 1
}
{
fdt_monitor_short $w
"
$
FSLDIR/bin/find_the_biggest
${logdir}
/seeds_to_* biggest >>
${logdir}
/fdt_seed_classification.txt"
}
...
...
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