{% extends "base.html" %} {% import "bootstrap/form.html" as wtf %} {% import "bootstrap/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 %} {% set remaining_rows = controller.count_predictions(query=query, source_query=source_query, target_query=target_query, prefix=prefix, same_text=same_text) %} {% block content %}
{{ util.render_messages(dismissible=True, container=False) }}
Biomappings Curation Interface
{% if controller.total_curated %} {% endif %} {% if query %} Query: {{ query }} ({{ "{:,d}".format(remaining_rows) }} Results) {% else %}
{% if prefix %} {% endif %}
{% endif %}
{% if show_lines %} {% endif %} {% if show_relations %} {% endif %} {% for line, p in controller.predictions(query=query, source_query=source_query, target_query=target_query, offset=offset, limit=limit, prefix=prefix, same_text=same_text) %} {% if show_lines %} {% endif %} {% if show_relations %} {% endif %} {% endfor %}
LineSource Source NameRelationTarget Target Name Confidence
{{ 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 }}%
{{ 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 %}