django-to-galaxy 0.6.9__py3-none-any.whl → 0.6.9.2__py3-none-any.whl

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.

@@ -70,11 +70,23 @@ class GetWorkflowDatamapTemplateView(RetrieveAPIView):
70
70
  def get(self, request, *args, **kwargs):
71
71
  instance = self.get_object()
72
72
  inputs = instance.galaxy_workflow.inputs
73
+ steps = instance.galaxy_workflow.steps
73
74
  input_mapping = {}
74
75
  datamap_template = {}
75
76
  for input_id, input_dict in inputs.items():
76
- input_mapping[input_id] = input_dict["label"]
77
- datamap_template[input_id] = {"id": "", "src": "hda"}
77
+ input_mapping[input_id] = {}
78
+ input_mapping[input_id]["label"] = input_dict["label"]
79
+ input_mapping[input_id]["type"] = steps[input_id].type
80
+ input_mapping[input_id]["tool_inputs"] = steps[input_id].tool_inputs
81
+
82
+ if steps[input_id].type == "parameter_input":
83
+ datamap_template[input_id] = input_mapping[input_id]["tool_inputs"][
84
+ "parameter_type"
85
+ ]
86
+ else:
87
+ datamap_template[input_id] = {"id": "", "src": "hda"}
88
+ # TODO: Add template for a collection input
89
+
78
90
  return Response(
79
91
  data={"input_mapping": input_mapping, "datamap_template": datamap_template}
80
92
  )
@@ -1,3 +1,3 @@
1
1
  """Handle library versioning."""
2
- version_info = (0, 6, 5)
2
+ version_info = (0, 6, 9, 2)
3
3
  __version__ = ".".join(str(c) for c in version_info)
@@ -1,16 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-to-galaxy
3
- Version: 0.6.9
3
+ Version: 0.6.9.2
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
7
- Requires-Python: >=3.9,<4.0
7
+ Requires-Python: >=3.11,<4.0
8
8
  Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.9
10
- Classifier: Programming Language :: Python :: 3.10
11
9
  Classifier: Programming Language :: Python :: 3.11
12
10
  Classifier: Programming Language :: Python :: 3.12
13
- Requires-Dist: Django (>=4.0.3,<5.0.0)
11
+ Requires-Dist: Django (>=5.1.1,<6.0.0)
14
12
  Requires-Dist: Markdown (>=3.3.6,<4.0.0)
15
13
  Requires-Dist: bioblend (>=0.16.0,<0.17.0)
16
14
  Requires-Dist: djangorestframework (>=3.13.1,<4.0.0)
@@ -25,7 +25,7 @@ django_to_galaxy/api/views/galaxy_output_file.py,sha256=wW5H3aJTbtBKVDMU9Cdxz7P5
25
25
  django_to_galaxy/api/views/galaxy_user.py,sha256=IftbePXtjxZUWpJc6oq5rvdmHyyUjeztX_eDobnXg2w,420
26
26
  django_to_galaxy/api/views/history.py,sha256=4uxxNyX3ib4XW56N0FjYbjK-Sd4wbTN_H3mgWjB3i_Q,394
27
27
  django_to_galaxy/api/views/invocation.py,sha256=BksVpBDhgB0I8riu7PAHfQuMRS_IJWIKGKSg1cSDaR8,1318
28
- django_to_galaxy/api/views/invoke_workflow.py,sha256=b1bVLQwgFT_DHsdu1L94HG0qwZeNiqmVbwlX0Q2ZceE,6530
28
+ django_to_galaxy/api/views/invoke_workflow.py,sha256=x3YWu1zIuT0Wp6O4cNfCDFj4RouI7O18KU9s7580vN4,7053
29
29
  django_to_galaxy/api/views/upload_to_history.py,sha256=fojku4GXVGLgTJazmLKRAZ080k9WyYreALYxyZL39as,2972
30
30
  django_to_galaxy/api/views/workflow.py,sha256=WVFsz1twA5k7poSf63p8BiXSY3cMGVq4lgvhq5m8YbE,401
31
31
  django_to_galaxy/apps.py,sha256=GuXJ0ZJqGYUBUQ1BlC2clknp_QToXdPtFwiN6SaGfaI,143
@@ -54,8 +54,8 @@ django_to_galaxy/settings.py,sha256=Jn1gznlxhlu57D_cdbAhBQTTN9jq4GIb31czhQQUtJo,
54
54
  django_to_galaxy/templates/admin/import_workflows.html,sha256=YB101H99EOR8td_DzfNshhJYpXpGD9aJNh8t4mKPgEQ,2389
55
55
  django_to_galaxy/urls.py,sha256=ydMl_0qSyz8GSGkWpiSzU3khqj9mPyZacx532JybLHk,106
56
56
  django_to_galaxy/utils.py,sha256=gjUzzqfpili66CY7vFyseqHOD9vqWg_2tzWAiTe3pNE,1625
57
- django_to_galaxy/version.py,sha256=O9WfyDkb-iJLGWlnKx2K7kFtcDgFCboBiFm553-3Sjk,111
58
- django_to_galaxy-0.6.9.dist-info/LICENSE,sha256=Er3Bp2y6Wf31e0s1-Tdu_d6Gd89FtTizmGUJzGQkWvo,34498
59
- django_to_galaxy-0.6.9.dist-info/METADATA,sha256=egbQux6CxINf3spU2jrz2LzRslamR4T6JtvoLnzPm3U,764
60
- django_to_galaxy-0.6.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
61
- django_to_galaxy-0.6.9.dist-info/RECORD,,
57
+ django_to_galaxy/version.py,sha256=c3GZNTMbCLb8qcwF5reirJxv-D1dxURerlTOLfi7ZX0,114
58
+ django_to_galaxy-0.6.9.2.dist-info/LICENSE,sha256=Er3Bp2y6Wf31e0s1-Tdu_d6Gd89FtTizmGUJzGQkWvo,34498
59
+ django_to_galaxy-0.6.9.2.dist-info/METADATA,sha256=ScZMOCgijB3dvmkuqvUL5e9HR4hrlfuISm8owjUdEsk,666
60
+ django_to_galaxy-0.6.9.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
61
+ django_to_galaxy-0.6.9.2.dist-info/RECORD,,