Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
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
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
iPPIDB
ippidb-web
Commits
6d785968
Commit
6d785968
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
galaxy services client, WIP
Former-commit-id: e84369db97e3de18097d56201b39ce2c4ee8ea5e
parent
bbe8021d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/gx.py
+15
-0
15 additions, 0 deletions
ippisite/ippidb/gx.py
with
15 additions
and
0 deletions
ippisite/ippidb/gx.py
0 → 100644
+
15
−
0
View file @
6d785968
from
bioblend.galaxy
import
GalaxyInstance
from
bioblend.galaxy.tools.inputs
import
inputs
workflow_id
=
'
dad6103ff71ca4fe
'
galaxy_url
=
'
https://galaxy-dev.web.pasteur.fr
'
api_key
=
'
21c2ce387688b1a785040762f7c9c331
'
def
run_workflow_and_get_results
(
input_file
):
gi
=
GalaxyInstance
(
galaxy_url
,
key
=
api_key
)
gi
.
verify
=
False
history_id
=
gi
.
histories
.
create_history
(
"
ippidb_history
"
)[
'
id
'
]
dataset_id
=
gi
.
tools
.
upload_file
(
input_file
,
history_id
)[
'
outputs
'
][
0
][
'
id
'
]
inputs
=
{
'
0
'
:{
'
id
'
:
dataset_id
,
'
src
'
:
'
hda
'
}}
workflow_run
=
gi
.
workflows
.
invoke_workflow
(
workflow_id
,
inputs
=
inputs
,
history_id
=
history_id
)
print
(
workflow_run
)
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