{%- macro hit_list(hits) -%}
{% for hit in hits %}
{{ hit.name.replace('_', ' ') }} {{ collapser_start(target=hit.name, level='cds') }} Description: {{ hit.description }}
Species: {{ hit.species }}
Score: {{ "%.2f" % hit.score | float }} out of {{ "%.2f" % hit.max_score }} {{ collapser_end() }}
Confidence: {{ hit.confidence | string }}
{% endfor %}
{%- endmacro -%}
Transcription Factor Binding Sites {{ help_tooltip(tooltip, "tfbs-body") }}
{% if hits %}
Binding sites found:
{{ hit_list(hits) }} {% else %} No hits above weak threshold. {% endif %} {% if weak_hits %}
{{ "Additional w" if hits else "W" }}eak hits ({{ weak_hits | length }}): {{ collapser_start(target='weak', level='cds') }} {{ hit_list(weak_hits) }} {{ collapser_end() }}
{% endif %}