{% extends "base.html" %} {% import "bootstrap/form.html" as wtf %} {% import "bootstrap/utils.html" as util %} {% block title %}Biomappings{% 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, prefix=prefix) %} {% block content %}
{{ query }}
({{ remaining_rows }} Results)
{% else %}
{% endif %}
Line | Source | Source Name | {% if show_relations %}Relation | {% endif %}Target | Target Name | Confidence | |||
---|---|---|---|---|---|---|---|---|---|
{{ 1 + line }} | {{ controller.get_curie(p['source prefix'], p['source identifier']) }} | {{ p['source name'] }} | {% if show_relations %}{{ p['relation'] }} | {% endif %}{{ controller.get_curie(p['target prefix'], p['target identifier']) }} | {{ p['target name'] }} |
{% set confidence = ((p['confidence'] | float) * 100) | int %}
|