{% if not motifs_by_locus %}
Sactipeptides - No core peptides found.
{% else %}
{% for locus in motifs_by_locus | sort %}
Sactipeptide(s) for {{ locus }}
{% for core, motifs in motifs_by_locus[locus].items() %}
{% for motif in motifs %}
{% set motif_name = motif.get_name().rsplit("_", 1)[0] %}
{{ motif_name }}
Leader:
{{ motif.leader }}
{% endfor %}
{% if motifs | length > 1%}Shared core{% else %}Core{% endif %}:
{{ core }}
{{ comparippson_results.get_html_for_query(motifs[0].get_name().rsplit("_", 1)[0], colour_subset="C") }}
{% endfor %}
{% endfor %}
{% endif %}