From e29cf1b7ee669d602995afed43122c288aef785f Mon Sep 17 00:00:00 2001 From: guerler Date: Thu, 4 Aug 2016 15:45:06 -0400 Subject: [PATCH] Add implicit conversions target extension to hda name when listed as selection option --- lib/galaxy/tools/parameters/basic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/tools/parameters/basic.py b/lib/galaxy/tools/parameters/basic.py index ef88eceee8f8..40de9999dab0 100644 --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -2042,7 +2042,8 @@ def append( list, id, hid, name, src, keep=False ): if match: m = match.hda has_matched = has_matched or visible_hda == m or visible_hda == hda - append( d[ 'options' ][ 'hda' ], m.id, m.hid, m.name if m.visible else '(hidden) %s' % m.name, 'hda' ) + m_name = '%s (as %s)' % ( match.original_hda.name, match.target_ext ) if match.implicit_conversion else m.name + append( d[ 'options' ][ 'hda' ], m.id, m.hid, m_name if m.visible else '(hidden) %s' % m_name, 'hda' ) if not has_matched and isinstance( visible_hda, trans.app.model.HistoryDatasetAssociation ): append( d[ 'options' ][ 'hda' ], visible_hda.id, visible_hda.hid, '(unavailable) %s' % visible_hda.name, 'hda', True )