Skip to content

Commit

Permalink
add inputs, outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jun 27, 2024
1 parent 0198018 commit 4e7ae1e
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 10 deletions.
47 changes: 38 additions & 9 deletions _layouts/workflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,46 @@ <h1 data-toc-skip>{{ workflow.title }}</h1>
Download
</a>
<pre class="mermaid">{{ workflow.mermaid }}</pre>
<h2>Inputs</h2>
<table class="table table-striped">
<thead>
<tr>
<th>Input</th>
<th>Label</th>
</tr>
</thead>
<tbody>
{% for input in workflow.inputs %}
<tr>
<td>{{ input.name }}</td>
<td>{{ input.label }}</td>
</tr>
{% endfor %}
</tbody>
</table>

<h2>Tools</h2>
<h2>Outputs</h2>
<table class="table table-striped">
<thead>
<tr>
<th>From</th>
<th>Output</th>
<th>Label</th>
</tr>
</thead>
<tbody>
{% for output in workflow.outputs %}
<tr>
<td>{{ output.tool_id }}</td>
<td>{{ output.name }}</td>
<td>{{ output.label }}</td>
</tr>
{% endfor %}
</tbody>
</table>


<h2>Tools</h2>
<table class="table table-striped">
<thead>
<tr>
Expand All @@ -176,14 +213,6 @@ <h2>Tools</h2>
</tbody>
</table>

<!--
<h2>Inputs</h2>
Coming Soon™
<h2>Outputs</h2>
Coming Soon™
-->


<p>To use these workflows in Galaxy you can either click the links to download the workflows, or you can right-click and copy the link to the workflow which can be used in the Galaxy form to import workflows.</p>

Expand Down
4 changes: 3 additions & 1 deletion _plugins/jekyll-topic-filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,9 @@ def self.resolve_material(site, material)
'modified' => File.mtime(wf_path),
'mermaid' => mermaid(wf_json),
'graph_dot' => graph_dot(wf_json),
'workflow_tools' => extract_workflow_tool_list(wf_json).uniq,
'workflow_tools' => extract_workflow_tool_list(wf_json).flatten.uniq.sort,
'inputs' => wf_json['steps'].select { |_k, v| ['data_input', 'data_collection_input', 'parameter_input'].include? v['type'] }.map{|_, v| v},
'outputs' => wf_json['steps'].select { |_k, v| v['workflow_outputs'] && v['workflow_outputs'].length.positive? }.map{|_, v| v},
}
end
end
Expand Down

0 comments on commit 4e7ae1e

Please sign in to comment.