Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christoph Arthofer
ms_templates
Commits
c5559e31
Commit
c5559e31
authored
Sep 23, 2021
by
Christoph Arthofer
Browse files
new weighted mask
parent
dc2884c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
run_template_construction.py
View file @
c5559e31
...
...
@@ -1186,7 +1186,7 @@ if __name__ == "__main__":
print
(
'submitted: '
+
task_name
)
task_name
=
'{:03d}_affT_create_weighted_brain_mask'
.
format
(
task_count
)
jobcmd
=
'fslmaths '
+
aff_template_path
+
' -bin -mul 7 -add 1 -inm 1 '
+
tree
.
get
(
'T1_brain_mask_weighted_affine_template'
)
jobcmd
=
'fslmaths '
+
aff_template_path
+
'
-thr 0.1
-bin -mul 7 -add 1 -inm 1 '
+
tree
.
get
(
'T1_brain_mask_weighted_affine_template'
)
job_ids
[
23
]
=
submitJob
(
tag
+
'_'
+
task_name
,
log_dir
,
command
=
jobcmd
,
queue
=
cpuq
,
wait_for
=
[
job_ids
[
22
]])
# job_ids[23] = submitJob(jobcmd, tag + '_' + task_name, log_dir, queue=cpuq, wait_for=[job_ids[22]], array_task=False)
print
(
'submitted: '
+
task_name
)
...
...
@@ -1735,7 +1735,7 @@ if __name__ == "__main__":
task_count
+=
1
task_name
=
'{:03d}_nlnT_average_T1_brain_mask_weighted'
.
format
(
task_count
)
jobcmd
=
'fslmaths '
+
nln_template_path
+
' -bin -mul 7 -add 1 -inm 1 '
+
tree
.
get
(
jobcmd
=
'fslmaths '
+
nln_template_path
+
'
-thr 0.1
-bin -mul 7 -add 1 -inm 1 '
+
tree
.
get
(
'T1_brain_mask_weighted_nln_template'
)
job_ids
[
50
]
=
submitJob
(
tag
+
'_'
+
task_name
,
log_dir
,
command
=
jobcmd
,
queue
=
cpuq
,
wait_for
=
[
job_ids
[
49
]])
# job_ids[50] = submitJob(jobcmd, tag + '_' + task_name, log_dir, queue=cpuq, wait_for=[job_ids[49]], array_task=False)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment