{% if results %} {% if -1 not in proto_results %} {% for proto in region.get_unique_protoclusters() %} {% endfor %} {% else %} {% endif %} {% if results[0][0].description %} {% endif %} {% if results[0][0].organism %} {% endif %} {% for ref, total in results %} {% for proto in region.get_unique_protoclusters() %} {% if proto_results.get(proto.get_protocluster_number(), {}).get(ref) %} {% set score = proto_results[proto.get_protocluster_number()][ref] %} {% set perc = "{:.0f}".format(score.final_score*100) %} {% set colour = "rgb(0, 0, 0, {:.2f})".format(score.final_score) %} {% else %} {% endif %} {% endfor %} {% if ref.description %} {% endif %} {% if ref.organism %} {% endif %} {% endfor %}
Reference{{proto.product}}AllSimilarity score TypeCompound(s)Organism
{% if url %}{{ref.accession if class_name == "MIBiG" else ref.get_identifier()}}{% else %} {{ref.get_identifier()}} {% endif %}{{"{:.2f}".format(total)}} {{ref.get_product_string()}}{{ref.description}}{{ref.organism}}
{% else %}

No matches found.

{% endif %}