Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gga_load_data
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Wiki
Code
Merge requests
5
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
abims
e-infra
gga_load_data
Commits
0bc028d5
Commit
0bc028d5
authored
3 years ago
by
Loraine Gueguen
Browse files
Options
Downloads
Patches
Plain Diff
uncomment invoke_wf
parent
30e72a31
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!18
Release v2.1.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_workflow_phaeoexplorer.py
+13
-6
13 additions, 6 deletions
run_workflow_phaeoexplorer.py
with
13 additions
and
6 deletions
run_workflow_phaeoexplorer.py
+
13
−
6
View file @
0bc028d5
...
...
@@ -987,12 +987,13 @@ if __name__ == "__main__":
args
=
parser
.
parse_args
()
bioblend_logger
=
logging
.
getLogger
(
"
bioblend
"
)
if
args
.
verbose
:
logging
.
basicConfig
(
level
=
logging
.
DEBUG
)
bioblend_logger
.
setLevel
(
logging
.
DEBUG
)
else
:
logging
.
basicConfig
(
level
=
logging
.
INFO
)
logging
.
getLogger
(
"
urllib3
"
).
setLevel
(
logging
.
INFO
)
logging
.
getLogger
(
"
bioblend
"
).
setLevel
(
logging
.
INFO
)
bioblend_logger
.
setLevel
(
logging
.
INFO
)
# Parsing the config file if provided, using the default config otherwise
if
not
args
.
config
:
...
...
@@ -1000,6 +1001,12 @@ if __name__ == "__main__":
else
:
args
.
config
=
os
.
path
.
abspath
(
args
.
config
)
if
args
.
config
:
config_file
=
os
.
path
.
abspath
(
args
.
config
)
else
:
config_file
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
sys
.
argv
[
0
])),
constants
.
DEFAULT_CONFIG
)
config
=
utilities
.
parse_config
(
config_file
)
if
not
args
.
main_directory
:
args
.
main_directory
=
os
.
getcwd
()
else
:
...
...
@@ -1190,7 +1197,7 @@ if __name__ == "__main__":
logging
.
warning
(
"
Error finding workflow %s
"
%
workflow_name
)
# Finally, invoke the workflow alogn with its datamap, parameters and the history in which to invoke it
#
instance.workflows.invoke_workflow(workflow_id=workflow_id, history_id=history_id, params=workflow_parameters, inputs=datamap, allow_tool_state_corrections=True)
instance
.
workflows
.
invoke_workflow
(
workflow_id
=
workflow_id
,
history_id
=
history_id
,
params
=
workflow_parameters
,
inputs
=
datamap
,
allow_tool_state_corrections
=
True
)
logging
.
info
(
"
Successfully imported and invoked workflow {0}, check the galaxy instance ({1}) for the jobs state
"
.
format
(
workflow_name
,
instance_url
))
...
...
@@ -1426,7 +1433,7 @@ if __name__ == "__main__":
logging
.
warning
(
"
Error finding workflow %s
"
%
workflow_name
)
# Finally, invoke the workflow alogn with its datamap, parameters and the history in which to invoke it
#
instance.workflows.invoke_workflow(workflow_id=workflow_id, history_id=history_id, params=workflow_parameters, inputs=datamap, allow_tool_state_corrections=True)
instance
.
workflows
.
invoke_workflow
(
workflow_id
=
workflow_id
,
history_id
=
history_id
,
params
=
workflow_parameters
,
inputs
=
datamap
,
allow_tool_state_corrections
=
True
)
logging
.
info
(
"
Successfully imported and invoked workflow {0}, check the galaxy instance ({1}) for the jobs state
"
.
format
(
workflow_name
,
instance_url
))
...
...
@@ -1541,7 +1548,7 @@ if __name__ == "__main__":
logging
.
warning
(
"
Error finding workflow %s
"
%
workflow_name
)
# Finally, invoke the workflow alogn with its datamap, parameters and the history in which to invoke it
#
instance.workflows.invoke_workflow(workflow_id=workflow_id, history_id=history_id, params=workflow_parameters, inputs=datamap, allow_tool_state_corrections=True)
instance
.
workflows
.
invoke_workflow
(
workflow_id
=
workflow_id
,
history_id
=
history_id
,
params
=
workflow_parameters
,
inputs
=
datamap
,
allow_tool_state_corrections
=
True
)
logging
.
info
(
"
Successfully imported and invoked workflow {0}, check the galaxy instance ({1}) for the jobs state
"
.
format
(
workflow_name
,
instance_url
))
...
...
@@ -1695,7 +1702,7 @@ if __name__ == "__main__":
logging
.
warning
(
"
Error finding workflow %s
"
%
workflow_name
)
# Finally, invoke the workflow alogn with its datamap, parameters and the history in which to invoke it
#
instance.workflows.invoke_workflow(workflow_id=workflow_id, history_id=history_id, params=workflow_parameters, inputs=datamap, allow_tool_state_corrections=True)
instance
.
workflows
.
invoke_workflow
(
workflow_id
=
workflow_id
,
history_id
=
history_id
,
params
=
workflow_parameters
,
inputs
=
datamap
,
allow_tool_state_corrections
=
True
)
logging
.
info
(
"
Successfully imported and invoked workflow {0}, check the galaxy instance ({1}) for the jobs state
"
.
format
(
workflow_name
,
instance_url
))
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