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
8ab43262
Commit
8ab43262
authored
17 years ago
by
Saad Jbabdi
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
60432f1b
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
fdt.tcl
+9
-9
9 additions, 9 deletions
fdt.tcl
with
9 additions
and
9 deletions
fdt.tcl
+
9
−
9
View file @
8ab43262
# FSL interface for FDT (BEDPOST and P
robTrack
)
# FSL interface for FDT (BEDPOST
X
and P
ROBTRACKX
)
#
# Timothy Behrens, Heidi Johansen-Berg, Dave Flitney
and
Matthew Webster FMRIB Image Analysis Group
# Timothy Behrens, Heidi Johansen-Berg, Dave Flitney
,
Matthew Webster
and Saad Jbabdi
FMRIB Image Analysis Group
#
# Copyright (C) 200
6
University of Oxford
# Copyright (C) 200
7
University of Oxford
#
# TCLCOPYRIGHT
...
...
@@ -76,7 +76,7 @@ proc fdt:dialog { w tclstartupfile } {
}
}
FileEntry $w.registration.directory -textvariable registration
(
directory
)
-label
"BEDPOST directory:"
-title
"Choose directory"
-filetypes * -command
"registration_set_directory
$w
"
FileEntry $w.registration.directory -textvariable registration
(
directory
)
-label
"BEDPOST
X
directory:"
-title
"Choose directory"
-filetypes * -command
"registration_set_directory
$w
"
frame $w.registration.struct
checkbutton $w.registration.struct.yn -variable registration
(
struct_yn
)
-command
"registration_packframe
$w
"
...
...
@@ -213,7 +213,7 @@ proc fdt:dialog { w tclstartupfile } {
$w.probtrack insert 1 options -text
"Options"
#-------- Mode specific option --------
frame $w.data
FileEntry $w.data.directory -textvariable probtrack
(
bedpost_dir
)
-label
"BEDPOST directory"
-title
"Choose BEDPOST directory"
-filetypes * -command
"probtrack_update_files
$w
"
FileEntry $w.data.directory -textvariable probtrack
(
bedpost_dir
)
-label
"BEDPOST
X
directory"
-title
"Choose BEDPOST
X
directory"
-filetypes * -command
"probtrack_update_files
$w
"
TitleFrame $w.data.seed -text
"Seed Space"
optionMenu2 $w.data.seed.menu probtrack
(
mode
)
-command
"fdt:probtrack_mode
$w
"
simple
"Single voxel"
seedmask
"Single mask"
network
"Multiple masks"
...
...
@@ -637,9 +637,9 @@ proc fdt:apply { w dialog } {
set canwrite 1
if
{
[
file exists $
{
bedpost
(
directory
)}
.bedpost
]
}
{
set canwrite
[
YesNoWidget
"Overwrite
${bedpost(directory)}
.bedpost?"
Yes No
]
set canwrite
[
YesNoWidget
"Overwrite
${bedpost(directory)}
.bedpost
X
?"
Yes No
]
if
{
$canwrite
}
{
puts
"rm -rf
${bedpost(directory)}
.bedpost"
puts
"rm -rf
${bedpost(directory)}
.bedpost
X
"
catch
{
exec rm -rf $
{
bedpost
(
directory
)}
.bedpost
}
errmsg
}
}
...
...
@@ -660,7 +660,7 @@ proc fdt:apply { w dialog } {
set errorStr
""
set FSLPARALLEL 0
if
{
[
info exists env
(
SGE_ROOT
)
]
&& $env
(
SGE_ROOT
)
!=
""
}
{
set FSLPARALLEL 1
}
if
{
$probtrack
(
bedpost_dir
)
==
""
}
{
set errorStr
"You must specify the bedpost directory!"
}
if
{
$probtrack
(
bedpost_dir
)
==
""
}
{
set errorStr
"You must specify the bedpost
X
directory!"
}
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!"
}
...
...
@@ -826,7 +826,7 @@ proc fdt:apply { w dialog } {
global registration
set errorStr
""
if
{
$registration
(
directory
)
==
""
}
{
set errorStr
"You must specify the bedpost directory!"
}
if
{
$registration
(
directory
)
==
""
}
{
set errorStr
"You must specify the bedpost
X
directory!"
}
if
{
$registration
(
struct_yn
)
&& $registration
(
struct_image
)
==
""
}
{
set errorStr
"
$error
Str You must specify the structural image!"
}
if
{
$registration
(
standard_yn
)
&& $registration
(
standard_image
)
==
""
}
{
set errorStr
"
$error
Str You must specify the standard image!"
}
if
{
$errorStr !=
""
}
{
...
...
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