%inherit file="/base.mako"/>
<%namespace file="/message.mako" import="render_msg" />
<% from galaxy.util import nice_size %>
<%def name="inputs_recursive( input_params, param_values, depth=1, upgrade_messages=None )">
<%
if upgrade_messages is None:
upgrade_messages = {}
%>
%for input_index, input in enumerate( input_params.itervalues() ):
%if input.name in param_values:
%if input.type == "repeat":
%for i in range( len(param_values[input.name]) ):
${ inputs_recursive(input.inputs, param_values[input.name][i], depth=depth+1) }
%endfor
%elif input.type == "conditional":
<%
try:
current_case = param_values[input.name]['__current_case__']
is_valid = True
except:
current_case = None
is_valid = False
%>
%if is_valid:
${ inputs_recursive_indent( text=input.test_param.label, depth=depth )}
##
${input.cases[current_case].value | h} |
|
${ inputs_recursive( input.cases[current_case].inputs, param_values[input.name], depth=depth+1, upgrade_messages=upgrade_messages.get( input.name ) ) }
%else:
${ inputs_recursive_indent( text=input.name, depth=depth )}
The previously used value is no longer valid |
|
%endif
%elif input.type == "upload_dataset":
${inputs_recursive_indent( text=input.group_title( param_values ), depth=depth )}
${ len( param_values[input.name] ) } uploaded datasets |
|
%elif input.visible:
<%
if hasattr( input, "label" ) and input.label:
label = input.label
else:
#value for label not required, fallback to input name (same as tool panel)
label = input.name
%>
${inputs_recursive_indent( text=label, depth=depth )}
${input.value_to_display_text( param_values[input.name], trans.app ) | h} |
${ upgrade_messages.get( input.name, '' ) | h } |
%endif
%else:
## Parameter does not have a stored value.
<%
# Get parameter label.
if input.type == "conditional":
label = input.test_param.label
elif input.type == "repeat":
label = input.label()
else:
label = input.label or input.name
%>
${inputs_recursive_indent( text=label, depth=depth )}
not used (parameter was added after this job was run) |
|
%endif
%endfor
%def>
## function to add a indentation depending on the depth in a
<%def name="inputs_recursive_indent( text, depth )">
${text | h}
|
%def>
% if tool:
Tool: ${tool.name | h}
% else:
Unknown Tool
% endif
|
<%
encoded_hda_id = trans.security.encode_id( hda.id )
encoded_history_id = trans.security.encode_id( hda.history_id )
%>
Name: | ${hda.name | h} |
Created: | ${hda.create_time.strftime(trans.app.config.pretty_datetime_format)} |
## Copied from another history? | ${hda.source_library_dataset} |
Filesize: | ${nice_size(hda.dataset.file_size)} |
Dbkey: | ${hda.dbkey | h} |
Format: | ${hda.ext | h} |
%if job:
Galaxy Tool ID: | ${ job.tool_id | h } |
Galaxy Tool Version: | ${ job.tool_version | h } |
%endif
Tool Version: | ${hda.tool_version | h} |
Tool Standard Output: | stdout |
Tool Standard Error: | stderr |
%if job:
Tool Exit Code: | ${ job.exit_code | h } |
%endif
API ID: | ${encoded_hda_id} |
History ID: | ${encoded_history_id} |
%if hda.dataset.uuid:
UUID: | ${hda.dataset.uuid} |
%endif
%if trans.user_is_admin() or trans.app.config.expose_dataset_path:
Full Path: | ${hda.file_name | h} |
%endif
%if job and job.command_line and trans.user_is_admin():
Job Command-Line: | ${ job.command_line | h } |
%endif
%if job and trans.user_is_admin():
<% job_metrics = trans.app.job_metrics %>
%for metric in job.metrics:
<% metric_title, metric_value = job_metrics.format( metric.plugin, metric.metric_name, metric.metric_value ) %>
${ metric_title | h } | ${ metric_value | h } |
%endfor
%endif
Input Parameter |
Value |
Note for rerun |
% if params_objects and tool:
${ inputs_recursive( tool.inputs, params_objects, depth=1, upgrade_messages=upgrade_messages ) }
%elif params_objects is None:
Unable to load parameters. |
% else:
No parameters. |
% endif
%if has_parameter_errors:
${ render_msg( 'One or more of your original parameters may no longer be valid or displayed properly.', status='warning' ) }
%endif
Inheritance Chain
${hda.name | h}
% for dep in inherit_chain:
↑
'${dep[0].name | h}' in ${dep[1]}
% endfor