{% extends "base.html" %} {% import "bootstrap4/form.html" as wtf %} {% import "bootstrap4/utils.html" as util %} {% block title %}Biomappings ({{ "{:,d}".format(remaining_rows) }}){% endblock %} {% macro progress_color(confidence) -%} {% if confidence > 85 %} bg-success {% elif confidence > 60 %} bg-warning {% else %} bg-danger {% endif %} {%- endmacro %} {% block content %}
{{ util.render_messages(dismissible=True, container=False) }}
Summarize Biomappings Curation Interface
{% if controller.total_curated %} {% endif %} {% if query %} Query: {{ query }} ({{ "{:,d}".format(remaining_rows) }} Results) {% else %}
{% endif %}
{% if show_lines %} {% endif %} {% if show_relations %} {% endif %} {% for line, p in predictions %} {% if show_lines %} {% endif %} {% if show_relations %} {% endif %} {% endfor %}
LineSource Source NameRelationTarget Target Name Conf.
{{ 1 + line }} {{ controller.get_curie(p['source prefix'], p['source identifier']) }} {{ p['source name'] }}{{ p['relation'] }} {{ controller.get_curie(p['target prefix'], p['target identifier']) }} {{ p['target name'] }}
{% set confidence = ((p['confidence'] | float) * 100) | int %}
{{ confidence }}%
-B- -N-
{{ wtf.render_field(form.source_prefix) }} {{ wtf.render_field(form.source_id) }} {{ wtf.render_field(form.source_name) }} {{ wtf.render_field(form.target_prefix) }} {{ wtf.render_field(form.target_id) }} {{ wtf.render_field(form.target_name) }} {{ wtf.render_field(form.submit, class="btn btn-primary") }}
{% endblock %}