Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
platy-browser-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Christian Tischer
platy-browser-data
Commits
38cfadd7
Commit
38cfadd7
authored
5 years ago
by
Constantin Pape
Browse files
Options
Downloads
Patches
Plain Diff
Update registration wrapper
parent
894c5930
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
Add python scripts to run registration on the cluster
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/extension/registration/apply_registration.py
+9
-2
9 additions, 2 deletions
scripts/extension/registration/apply_registration.py
test/registration/check_wrapper.py
+2
-2
2 additions, 2 deletions
test/registration/check_wrapper.py
with
11 additions
and
4 deletions
scripts/extension/registration/apply_registration.py
+
9
−
2
View file @
38cfadd7
...
...
@@ -98,9 +98,16 @@ def apply_for_file(input_path, output_path,
transformation_file
,
fiji_executable
,
elastix_directory
,
tmp_folder
,
n_threads
):
# grrr design anti-pattern
assert
os
.
path
.
exists
(
elastix_directory
)
assert
os
.
path
.
exists
(
tmp_folder
)
assert
os
.
path
.
exists
(
input_path
)
assert
os
.
path
.
exists
(
transformation_file
)
assert
os
.
path
.
exists
(
os
.
path
.
split
(
output_path
)[
0
])
# transformix arguments need to be passed as one string,
# with individual arguments comma separated
# the argument to transformaix needs to be one large comma separated string
transformix_argument
=
[
"
elastix
_d
irectory=
\'
%s
\'
"
%
elastix_directory
,
transformix_argument
=
[
"
elastix
D
irectory=
\'
%s
\'
"
%
elastix_directory
,
"
workingDirectory=
\'
%s
\'
"
%
tmp_folder
,
"
inputImageFile=
\'
%s
\'
"
%
input_path
,
"
transformationFile=
\'
%s
\'
"
%
transformation_file
,
...
...
This diff is collapsed.
Click to expand it.
test/registration/check_wrapper.py
+
2
−
2
View file @
38cfadd7
...
...
@@ -9,8 +9,8 @@ from scripts.extension.registration import ApplyRegistrationLocal
def
check_wrapper
():
in_path
=
'
/g/kreshuk/pape/Work/my_projects/platy-browser-data/registration/
stomach_target_prospr
.tif
'
out_path
=
'
/g/kreshuk/pape/Work/my_projects/platy
-browser-data
/registration/s
t
omach_
target_
prospr_registered
'
in_path
=
'
/g/kreshuk/pape/Work/my_projects/platy-browser-data/registration/
9.9.9/images/ProSPr/Stomach_forRegistration
.tif
'
out_path
=
'
/g/kreshuk/pape/Work/my_projects/
dev-
platy
/test
/registration/somach_prospr_registered
'
in_list
=
[
in_path
]
out_list
=
[
out_path
]
...
...
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