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
6c86b6f9
Commit
6c86b6f9
authored
3 years ago
by
Loraine Gueguen
Browse files
Options
Downloads
Patches
Plain Diff
Rename methods
parent
6b38826a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!24
Run wf
,
!18
Release v2.1.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gga_run_workflow_phaeo_jbrowse.py
+4
-4
4 additions, 4 deletions
gga_run_workflow_phaeo_jbrowse.py
utilities_bioblend.py
+1
-1
1 addition, 1 deletion
utilities_bioblend.py
with
5 additions
and
5 deletions
gga_run_workflow_phaeo_jbrowse.py
+
4
−
4
View file @
6c86b6f9
...
...
@@ -82,7 +82,7 @@ class RunWorkflowJbrowse(runWorkflowPhaeo.RunWorkflow):
self
.
transcripts_hda_id
=
None
self
.
proteins_hda_id
=
None
def
install_
changesets_revisions_for_
individual_tools
(
self
):
def
install_individual_tools
(
self
):
"""
This function is used to verify that installed tools called outside workflows have the correct versions and changesets
If it finds versions don
'
t match, will install the correct version + changeset in the instance
...
...
@@ -273,7 +273,7 @@ def prepare_history_and_get_wf_param(sp_dict_list, main_dir, config):
run_workflow_for_current_organism
.
set_galaxy_instance
(
config
)
run_workflow_for_current_organism
.
set_history
()
run_workflow_for_current_organism
.
install_
changesets_revisions_for_
individual_tools
()
run_workflow_for_current_organism
.
install_individual_tools
()
run_workflow_for_current_organism
.
import_datasets_into_history
()
analyses_dict_list
=
run_workflow_for_current_organism
.
get_analyses
()
...
...
@@ -391,7 +391,7 @@ if __name__ == "__main__":
workflow_path
=
os
.
path
.
join
(
os
.
path
.
abspath
(
script_dir
),
constants_phaeo
.
WORKFLOWS_PATH
,
constants_phaeo
.
WF_LOAD_GFF_JB_1_ORG_FILE
)
# Check if the versions of tools specified in the workflow are installed in galaxy
utilities_bioblend
.
install_
changesets_revisions_from_
workflow
(
workflow_path
=
workflow_path
,
instance
=
org_wf_param
.
instance
)
utilities_bioblend
.
install_workflow
_tools
(
workflow_path
=
workflow_path
,
instance
=
org_wf_param
.
instance
)
# Set the workflow parameters (individual tools runtime parameters in the workflow)
workflow_parameters
=
{}
...
...
@@ -484,7 +484,7 @@ if __name__ == "__main__":
workflow_path
=
os
.
path
.
join
(
os
.
path
.
abspath
(
script_dir
),
constants_phaeo
.
WORKFLOWS_PATH
,
constants_phaeo
.
WF_LOAD_GFF_JB_2_ORG_FILE
)
# Check if the versions of tools specified in the workflow are installed in galaxy
utilities_bioblend
.
install_
changesets_revisions_from_
workflow
(
workflow_path
=
workflow_path
,
instance
=
sp_wf_param_org1
.
instance
)
utilities_bioblend
.
install_workflow
_tools
(
workflow_path
=
workflow_path
,
instance
=
sp_wf_param_org1
.
instance
)
# Set the workflow parameters (individual tools runtime parameters in the workflow)
workflow_parameters
=
{}
...
...
This diff is collapsed.
Click to expand it.
utilities_bioblend.py
+
1
−
1
View file @
6c86b6f9
...
...
@@ -139,7 +139,7 @@ def install_repository_revision(instance, tool_id, version, changeset_revision):
install_repository_dependencies
=
False
,
install_resolver_dependencies
=
True
)
def
install_
changesets_revisions_from_
workflow
(
instance
,
workflow_path
):
def
install_workflow
_tools
(
instance
,
workflow_path
):
"""
Read a .ga file to extract the information about the different tools called.
Check if every tool is installed via a
"
show_tool
"
.
...
...
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