django-to-galaxy 0.6.9.4__tar.gz → 0.6.9.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of django-to-galaxy might be problematic. Click here for more details.
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/PKG-INFO +2 -2
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/workflow.py +10 -0
- django_to_galaxy-0.6.9.6/django_to_galaxy/migrations/0010_workflow__is_meta_workflow__step_jobs_count.py +23 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/history.py +1 -1
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/invocation.py +7 -11
- django_to_galaxy-0.6.9.6/django_to_galaxy/models/workflow.py +104 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/version.py +1 -1
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/pyproject.toml +1 -1
- django_to_galaxy-0.6.9.4/django_to_galaxy/models/workflow.py +0 -58
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/LICENSE +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/__init__.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/__init__.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/galaxy_element.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/galaxy_instance.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/galaxy_output_file.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/galaxy_user.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/history.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/invocation.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/tag.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/__init__.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/asymetricslugrelatedfield.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/galaxy_instance.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/galaxy_output_file.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/galaxy_user.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/history.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/invocation.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/invoke_workflow.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/upload_to_history.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/workflow.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/urls.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/create_history.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/galaxy_instance.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/galaxy_output_file.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/galaxy_user.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/history.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/invocation.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/invoke_workflow.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/upload_to_history.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/workflow.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/apps.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/migrations/0001_new_initial.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/migrations/0002_rename_state_history_galaxy_state_and_more.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/migrations/0003_invocation_create_time.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/migrations/0004_alter_galaxyuser_email_galaxyoutputfile.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/migrations/0005_alter_galaxyoutputfile_invocation_and_more.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/migrations/0006_tag_history_tags_workflow_tags.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/migrations/0007_format_alter_history_tags_alter_workflow_tags_and_more.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/migrations/0008_workflowinput_label.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/migrations/0009_galaxyoutputfile_unique_galaxy_id_per_invocation.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/migrations/__init__.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/__init__.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/accepted_input.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/galaxy_element.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/galaxy_instance.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/galaxy_output_file.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/galaxy_user.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/schemas/__init__.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/schemas/dataset.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/settings.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/templates/admin/import_workflows.html +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/urls.py +0 -0
- {django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: django-to-galaxy
|
|
3
|
-
Version: 0.6.9.
|
|
3
|
+
Version: 0.6.9.6
|
|
4
4
|
Summary: Django extension that eases communication with Galaxy instance to execute workflows.
|
|
5
5
|
Author: Kenzo-Hugo Hillion
|
|
6
6
|
Author-email: hillion.kenzo@posteo.net
|
|
@@ -13,6 +13,8 @@ class WorkflowAdmin(GalaxyElementAdmin):
|
|
|
13
13
|
"name",
|
|
14
14
|
"annotation",
|
|
15
15
|
"galaxy_id",
|
|
16
|
+
"get_is_meta",
|
|
17
|
+
"get_step_jobs_count",
|
|
16
18
|
"published",
|
|
17
19
|
"galaxy_owner",
|
|
18
20
|
"get_tags",
|
|
@@ -22,11 +24,19 @@ class WorkflowAdmin(GalaxyElementAdmin):
|
|
|
22
24
|
"name",
|
|
23
25
|
"annotation",
|
|
24
26
|
"galaxy_id",
|
|
27
|
+
"get_is_meta",
|
|
28
|
+
"get_step_jobs_count",
|
|
25
29
|
"published",
|
|
26
30
|
"galaxy_owner",
|
|
27
31
|
"get_tags",
|
|
28
32
|
)
|
|
29
33
|
|
|
34
|
+
def get_is_meta(self, obj):
|
|
35
|
+
return obj.get_is_meta()
|
|
36
|
+
|
|
37
|
+
def get_step_jobs_count(self, obj):
|
|
38
|
+
return obj.get_step_jobs_count()
|
|
39
|
+
|
|
30
40
|
def get_tags(self, obj):
|
|
31
41
|
return ", ".join([p.label for p in obj.tags.all()])
|
|
32
42
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Generated by Django 4.1 on 2025-02-12 13:28
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
("django_to_galaxy", "0009_galaxyoutputfile_unique_galaxy_id_per_invocation"),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AddField(
|
|
14
|
+
model_name="workflow",
|
|
15
|
+
name="_is_meta",
|
|
16
|
+
field=models.BooleanField(default=None, null=True),
|
|
17
|
+
),
|
|
18
|
+
migrations.AddField(
|
|
19
|
+
model_name="workflow",
|
|
20
|
+
name="_step_jobs_count",
|
|
21
|
+
field=models.PositiveIntegerField(default=0),
|
|
22
|
+
),
|
|
23
|
+
]
|
|
@@ -46,7 +46,7 @@ class History(GalaxyElement):
|
|
|
46
46
|
|
|
47
47
|
def delete(self, **kwargs):
|
|
48
48
|
"""Overloaded method to also delete history on Galaxy side."""
|
|
49
|
-
self.galaxy_owner.obj_gi.histories.delete(id_=self.galaxy_id)
|
|
49
|
+
self.galaxy_owner.obj_gi.histories.delete(id_=self.galaxy_id, purge=True)
|
|
50
50
|
return super().delete(**kwargs)
|
|
51
51
|
|
|
52
52
|
def synchronize(self):
|
|
@@ -12,7 +12,6 @@ from django_to_galaxy.utils import enabled_cache
|
|
|
12
12
|
|
|
13
13
|
from django.core.exceptions import ObjectDoesNotExist
|
|
14
14
|
|
|
15
|
-
READY = "ready"
|
|
16
15
|
RUNNING = "running"
|
|
17
16
|
DONE = "done"
|
|
18
17
|
ERROR = "error"
|
|
@@ -75,19 +74,17 @@ class Invocation(models.Model):
|
|
|
75
74
|
"""Get galaxy object using bioblend."""
|
|
76
75
|
return self.workflow.galaxy_owner.obj_gi.invocations.get(self.galaxy_id)
|
|
77
76
|
|
|
78
|
-
def complet_jobs_summary(self, step
|
|
77
|
+
def complet_jobs_summary(self, step):
|
|
79
78
|
subinv = self.galaxy_invocation.gi.invocations.get(
|
|
80
79
|
step.wrapped["subworkflow_invocation_id"]
|
|
81
80
|
)
|
|
82
|
-
if subinv.state != READY or not subinv.steps:
|
|
83
|
-
subworkflow_invocation_state = subinv.state
|
|
84
81
|
sub_jobs_summary = subinv.step_jobs_summary()
|
|
85
82
|
for job in sub_jobs_summary:
|
|
86
83
|
self.step_jobs_summary.append(job)
|
|
87
84
|
for sub in subinv.steps:
|
|
88
85
|
if "subworkflow_invocation_id" in sub.wrapped:
|
|
89
86
|
if sub.wrapped["subworkflow_invocation_id"]:
|
|
90
|
-
self.complet_jobs_summary(sub
|
|
87
|
+
self.complet_jobs_summary(sub)
|
|
91
88
|
|
|
92
89
|
@property
|
|
93
90
|
def percentage_done(self) -> float:
|
|
@@ -96,23 +93,22 @@ class Invocation(models.Model):
|
|
|
96
93
|
return 100.0
|
|
97
94
|
self.step_jobs_summary = self.step_jobs_summary()
|
|
98
95
|
|
|
99
|
-
subworkflow_invocation_state = None
|
|
100
|
-
if self.galaxy_invocation.state != READY:
|
|
101
|
-
subworkflow_invocation_state = PAUSED
|
|
102
96
|
for step in self.galaxy_invocation.steps:
|
|
103
97
|
if "subworkflow_invocation_id" in step.wrapped:
|
|
104
98
|
if step.wrapped["subworkflow_invocation_id"]:
|
|
105
|
-
self.complet_jobs_summary(step
|
|
99
|
+
self.complet_jobs_summary(step)
|
|
106
100
|
|
|
107
101
|
count_states = defaultdict(int)
|
|
108
102
|
for step in self.step_jobs_summary:
|
|
109
103
|
for key in step["states"].keys():
|
|
110
104
|
count_states[key] += 1
|
|
111
105
|
try:
|
|
112
|
-
percentage_done =
|
|
106
|
+
percentage_done = (
|
|
107
|
+
count_states.get("ok", 0) / self.workflow.get_step_jobs_count()
|
|
108
|
+
)
|
|
113
109
|
except ZeroDivisionError:
|
|
114
110
|
percentage_done = 0
|
|
115
|
-
if percentage_done == 1
|
|
111
|
+
if percentage_done == 1:
|
|
116
112
|
self.status = DONE
|
|
117
113
|
self.save()
|
|
118
114
|
if "error" in count_states.keys():
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
from bioblend.galaxy.objects import wrappers
|
|
2
|
+
from django.db import models
|
|
3
|
+
|
|
4
|
+
from .history import History
|
|
5
|
+
from .invocation import Invocation
|
|
6
|
+
from .galaxy_element import GalaxyElement
|
|
7
|
+
|
|
8
|
+
from django_to_galaxy.utils import load_galaxy_invocation_time_to_datetime
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Workflow(GalaxyElement):
|
|
12
|
+
"""Table for Galaxy workflows."""
|
|
13
|
+
|
|
14
|
+
galaxy_owner = models.ForeignKey(
|
|
15
|
+
"GalaxyUser", null=False, on_delete=models.CASCADE, related_name="workflows"
|
|
16
|
+
)
|
|
17
|
+
"""Galaxy user that owns the workflow."""
|
|
18
|
+
_step_jobs_count = models.PositiveIntegerField(default=0)
|
|
19
|
+
"""Number of step jobs of the workflow."""
|
|
20
|
+
_is_meta = models.BooleanField(null=True, default=None, blank=True)
|
|
21
|
+
"""Indicates whether the workflow is a meta (i.e., has sub-workflows) or not."""
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def galaxy_workflow(self) -> wrappers.Workflow:
|
|
25
|
+
"""Galaxy object using bioblend."""
|
|
26
|
+
if getattr(self, "_galaxy_workflow", None) is None:
|
|
27
|
+
self._galaxy_workflow = self._get_galaxy_workflow()
|
|
28
|
+
return self._galaxy_workflow
|
|
29
|
+
|
|
30
|
+
def _get_galaxy_workflow(self) -> wrappers.Workflow:
|
|
31
|
+
"""Get galaxy object using bioblend."""
|
|
32
|
+
return self.galaxy_owner.obj_gi.workflows.get(self.galaxy_id)
|
|
33
|
+
|
|
34
|
+
def get_is_meta(self):
|
|
35
|
+
"""Sets / returns _is_meta value."""
|
|
36
|
+
if self._is_meta is None:
|
|
37
|
+
self._is_meta = False
|
|
38
|
+
for key, step_dict in self.galaxy_workflow.steps.items():
|
|
39
|
+
w = step_dict.wrapped
|
|
40
|
+
if "workflow_id" in w:
|
|
41
|
+
self._is_meta = True
|
|
42
|
+
break
|
|
43
|
+
self.save(update_fields=["_is_meta"])
|
|
44
|
+
return self._is_meta
|
|
45
|
+
|
|
46
|
+
def get_step_jobs_count(self):
|
|
47
|
+
"""Sets / returns _step_jobs_count value."""
|
|
48
|
+
if self._step_jobs_count == 0:
|
|
49
|
+
galaxy_wf = self.galaxy_workflow
|
|
50
|
+
step_jobs_count = 0
|
|
51
|
+
if self.get_is_meta():
|
|
52
|
+
# Total step jobs count for a meta wf
|
|
53
|
+
galaxy_client = self.galaxy_owner.obj_gi.gi
|
|
54
|
+
for key, step_dict in galaxy_wf.steps.items():
|
|
55
|
+
w = step_dict.wrapped
|
|
56
|
+
if "workflow_id" in w:
|
|
57
|
+
sub_wf = galaxy_client.make_get_request(
|
|
58
|
+
galaxy_client.base_url
|
|
59
|
+
+ f"/api/workflows/{w['workflow_id']}",
|
|
60
|
+
params={"instance": "true"},
|
|
61
|
+
).json()
|
|
62
|
+
for j in range(len(sub_wf["steps"])):
|
|
63
|
+
step = sub_wf["steps"][str(j)]
|
|
64
|
+
if "input" not in step["type"]:
|
|
65
|
+
step_jobs_count += 1
|
|
66
|
+
else:
|
|
67
|
+
# Total step jobs count for a simple wf
|
|
68
|
+
for key, step_dict in galaxy_wf.steps.items():
|
|
69
|
+
w = step_dict.wrapped
|
|
70
|
+
if "input" not in w["type"]:
|
|
71
|
+
step_jobs_count += 1
|
|
72
|
+
self._step_jobs_count = step_jobs_count
|
|
73
|
+
self.save(update_fields=["_step_jobs_count"])
|
|
74
|
+
return self._step_jobs_count
|
|
75
|
+
|
|
76
|
+
def invoke(self, datamap: dict, history: History) -> wrappers.Invocation:
|
|
77
|
+
"""
|
|
78
|
+
Invoke workflow using bioblend.
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
datamap: dictionnary to link dataset to workflow inputs
|
|
82
|
+
history: history obj the dataset(s) come from
|
|
83
|
+
|
|
84
|
+
Returns:
|
|
85
|
+
Invocation object from bioblend
|
|
86
|
+
"""
|
|
87
|
+
galaxy_inv = self.galaxy_workflow.invoke(
|
|
88
|
+
datamap, history=history.galaxy_history
|
|
89
|
+
)
|
|
90
|
+
# Create invocations
|
|
91
|
+
invocation = Invocation(
|
|
92
|
+
galaxy_id=galaxy_inv.id,
|
|
93
|
+
galaxy_state=galaxy_inv.state,
|
|
94
|
+
workflow=self,
|
|
95
|
+
history=history,
|
|
96
|
+
create_time=load_galaxy_invocation_time_to_datetime(galaxy_inv),
|
|
97
|
+
)
|
|
98
|
+
invocation.save()
|
|
99
|
+
# Create output files
|
|
100
|
+
invocation.create_output_files()
|
|
101
|
+
return invocation
|
|
102
|
+
|
|
103
|
+
def __repr__(self):
|
|
104
|
+
return f"Workflow: {super().__str__()}"
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
from bioblend.galaxy.objects import wrappers
|
|
2
|
-
from django.db import models
|
|
3
|
-
|
|
4
|
-
from .history import History
|
|
5
|
-
from .invocation import Invocation
|
|
6
|
-
from .galaxy_element import GalaxyElement
|
|
7
|
-
|
|
8
|
-
from django_to_galaxy.utils import load_galaxy_invocation_time_to_datetime
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class Workflow(GalaxyElement):
|
|
12
|
-
"""Table for Galaxy workflows."""
|
|
13
|
-
|
|
14
|
-
galaxy_owner = models.ForeignKey(
|
|
15
|
-
"GalaxyUser", null=False, on_delete=models.CASCADE, related_name="workflows"
|
|
16
|
-
)
|
|
17
|
-
"""Galaxy user that owns the workflow."""
|
|
18
|
-
|
|
19
|
-
@property
|
|
20
|
-
def galaxy_workflow(self) -> wrappers.Workflow:
|
|
21
|
-
"""Galaxy object using bioblend."""
|
|
22
|
-
if getattr(self, "_galaxy_workflow", None) is None:
|
|
23
|
-
self._galaxy_workflow = self._get_galaxy_workflow()
|
|
24
|
-
return self._galaxy_workflow
|
|
25
|
-
|
|
26
|
-
def _get_galaxy_workflow(self) -> wrappers.Workflow:
|
|
27
|
-
"""Get galaxy object using bioblend."""
|
|
28
|
-
return self.galaxy_owner.obj_gi.workflows.get(self.galaxy_id)
|
|
29
|
-
|
|
30
|
-
def invoke(self, datamap: dict, history: History) -> wrappers.Invocation:
|
|
31
|
-
"""
|
|
32
|
-
Invoke workflow using bioblend.
|
|
33
|
-
|
|
34
|
-
Args:
|
|
35
|
-
datamap: dictionnary to link dataset to workflow inputs
|
|
36
|
-
history: history obj the dataset(s) come from
|
|
37
|
-
|
|
38
|
-
Returns:
|
|
39
|
-
Invocation object from bioblend
|
|
40
|
-
"""
|
|
41
|
-
galaxy_inv = self.galaxy_workflow.invoke(
|
|
42
|
-
datamap, history=history.galaxy_history
|
|
43
|
-
)
|
|
44
|
-
# Create invocations
|
|
45
|
-
invocation = Invocation(
|
|
46
|
-
galaxy_id=galaxy_inv.id,
|
|
47
|
-
galaxy_state=galaxy_inv.state,
|
|
48
|
-
workflow=self,
|
|
49
|
-
history=history,
|
|
50
|
-
create_time=load_galaxy_invocation_time_to_datetime(galaxy_inv),
|
|
51
|
-
)
|
|
52
|
-
invocation.save()
|
|
53
|
-
# Create output files
|
|
54
|
-
invocation.create_output_files()
|
|
55
|
-
return invocation
|
|
56
|
-
|
|
57
|
-
def __repr__(self):
|
|
58
|
-
return f"Workflow: {super().__str__()}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/galaxy_element.py
RENAMED
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/galaxy_instance.py
RENAMED
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/admin/galaxy_output_file.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/history.py
RENAMED
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/invocation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/serializers/workflow.py
RENAMED
|
File without changes
|
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/create_history.py
RENAMED
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/galaxy_instance.py
RENAMED
|
File without changes
|
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/galaxy_user.py
RENAMED
|
File without changes
|
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/invocation.py
RENAMED
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/invoke_workflow.py
RENAMED
|
File without changes
|
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/api/views/workflow.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/migrations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/accepted_input.py
RENAMED
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/galaxy_element.py
RENAMED
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/galaxy_instance.py
RENAMED
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/galaxy_output_file.py
RENAMED
|
File without changes
|
{django_to_galaxy-0.6.9.4 → django_to_galaxy-0.6.9.6}/django_to_galaxy/models/galaxy_user.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|