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
ec4a3d74
Commit
ec4a3d74
authored
4 years ago
by
Loraine Guéguen
Browse files
Options
Downloads
Patches
Plain Diff
Always connect to galaxy with localhost as hostname
parent
9aec58bf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Release 1.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_workflow_phaeoexplorer.py
+4
-10
4 additions, 10 deletions
run_workflow_phaeoexplorer.py
with
4 additions
and
10 deletions
run_workflow_phaeoexplorer.py
+
4
−
10
View file @
ec4a3d74
...
...
@@ -235,7 +235,7 @@ class RunWorkflow(speciesData.SpeciesData):
# In case of the Jbrowse workflow, we unfortunately have to manually edit the parameters instead of setting them
# as runtime values, using runtime parameters makes the tool throw an internal critical error ("replace not found" error)
if
workflow_name
==
"
Jbrowse
"
:
workflow_dict
[
"
steps
"
][
"
2
"
][
"
tool_state
"
]
=
workflow_dict
[
"
steps
"
][
"
2
"
][
"
tool_state
"
].
replace
(
"
__MENU_URL__
"
,
"
http://
{hostname}
:{port}/sp/{genus_sp}/feature/{Genus}/{species}/{id}
"
.
format
(
hostname
=
self
.
config
[
"
hostname
"
],
port
=
self
.
config
[
"
http_port
"
],
genus_sp
=
self
.
genus_species
,
Genus
=
self
.
genus_uppercase
,
species
=
self
.
species
,
id
=
"
{id}
"
))
workflow_dict
[
"
steps
"
][
"
2
"
][
"
tool_state
"
]
=
workflow_dict
[
"
steps
"
][
"
2
"
][
"
tool_state
"
].
replace
(
"
__MENU_URL__
"
,
"
http://
localhost
:{port}/sp/{genus_sp}/feature/{Genus}/{species}/{id}
"
.
format
(
port
=
self
.
config
[
"
http_port
"
],
genus_sp
=
self
.
genus_species
,
Genus
=
self
.
genus_uppercase
,
species
=
self
.
species
,
id
=
"
{id}
"
))
workflow_dict
[
"
steps
"
][
"
3
"
][
"
tool_state
"
]
=
workflow_dict
[
"
steps
"
][
"
3
"
][
"
tool_state
"
].
replace
(
"
__FULL_NAME__
"
,
self
.
full_name
).
replace
(
"
__UNIQUE_ID__
"
,
self
.
abbreviation
)
# Import the workflow in galaxy as a dict
...
...
@@ -594,15 +594,9 @@ if __name__ == "__main__":
# Parse the config yaml file
run_workflow_for_current_organism
.
config
=
utilities
.
parse_config
(
args
.
config
)
# Set the instance url attribute
for
env_variable
,
value
in
run_workflow_for_current_organism
.
config
.
items
():
if
env_variable
==
"
hostname
"
:
run_workflow_for_current_organism
.
instance_url
=
"
http://{0}:8888/sp/{1}/galaxy/
"
.
format
(
value
,
run_workflow_for_current_organism
.
genus_species
)
break
else
:
run_workflow_for_current_organism
.
instance_url
=
"
http://localhost:8888/sp/{0}_{1}/galaxy/
"
.
format
(
run_workflow_for_current_organism
.
genus_lowercase
,
run_workflow_for_current_organism
.
species
)
run_workflow_for_current_organism
.
instance_url
=
"
http://localhost:8888/sp/{0}_{1}/galaxy/
"
.
format
(
run_workflow_for_current_organism
.
genus_lowercase
,
run_workflow_for_current_organism
.
species
)
# If input workflow is Chado_load_Tripal_synchronize.ga
if
"
Chado_load_Tripal_synchronize
"
in
str
(
workflow
):
...
...
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