{% if not motifs_by_locus %}
Lassopeptides - No core peptides found.
{% else %}
{% for locus in motifs_by_locus | sort %}
Lassopeptide(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 full core{% else %}Full core{% endif %}:
{{ coloured_ripp_sequence(motifs[0].core) }}
Putative macrolactam:
{{ coloured_ripp_sequence(motifs[0].detailed_information.macrolactam) }}
{% for motif in motifs %}
{% if motif.tail %}
{% set motif_name = motif.get_name().rsplit("_", 1)[0] %}
{{ motif_name }}
Cleaved off residues:
{{ motif.tail }}
{% endif %}
{% endfor %}
{{ comparippson_results.get_html_for_query(motifs[0].get_name().rsplit("_", 1)[0]) }}
{% endfor %}
{% endfor %}
Legend:
Dha: Didehydroalanine
Dhb: Didehydrobutyrine
{% endif %}