Esempio n. 1
0
def resolved_markdown(workflow_markdown):
    # Convert workflow markdown to internal Galaxy markdown with object id references
    # and with sections expanded.
    trans = MockTrans()
    validate_galaxy_markdown(workflow_markdown)
    galaxy_markdown = resolve_invocation_markdown(trans, example_invocation(trans), workflow_markdown)
    return galaxy_markdown
Esempio n. 2
0
 def _generate_internal_markdown(self,
                                 trans,
                                 invocation,
                                 runtime_report_config_json=None):
     workflow_markdown = self._generate_report_markdown(
         trans,
         invocation,
         runtime_report_config_json=runtime_report_config_json)
     internal_markdown = resolve_invocation_markdown(
         trans, invocation, workflow_markdown)
     return internal_markdown
Esempio n. 3
0
 def generate_report_json(self,
                          trans,
                          invocation,
                          runtime_report_config_json=None):
     """
     """
     workflow_markdown = self._generate_report_markdown(
         trans,
         invocation,
         runtime_report_config_json=runtime_report_config_json)
     internal_markdown = resolve_invocation_markdown(
         trans, invocation, workflow_markdown)
     export_markdown, extra_rendering_data = ready_galaxy_markdown_for_export(
         trans, internal_markdown)
     rval = {
         "render_format":
         "markdown",  # Presumably the frontend could render things other ways.
         "markdown": export_markdown,
     }
     rval.update(extra_rendering_data)
     return rval