<div class="more-details">
  <div class="heading">
    <span>Core peptide predictions</span>
    {{help_tooltip(tooltip, "lanthi-side")}}
  </div>
{% if results | length != 0 %}
    <dl class ="prediction-text">
    {% for motifs in results.values() %}
    {%- for motif in motifs -%}
      <dt><span class="serif">{{motif.get_name().rsplit("_", 1)[0]}}</span> - {{motif.peptide_subclass}}</dt>
        <dd>Cleavage pHMM score: {{'%0.2f' | format(motif.score)}}</dd>
        <dd>RODEO score: {{motif.detailed_information.rodeo_score}}</dd>
        <dd>Monoisotopic mass: {{'%0.1f' | format(motif.monoisotopic_mass)}} Da</dd>
        <dd>Molecular weight: {{'%0.1f' | format(motif.molecular_weight)}} Da</dd>
        <dd>Number of bridges: {{motif.detailed_information.lan_bridges}}</dd>
        {%- for mod in motif.detailed_information.get_modifications() %}
          <dd>Additional modifications: {{mod}}</dd>
        {% endfor -%}
        {% if motif.alternative_weights %}
          <dd>
            <dl>
              <dt>Alternative weights</dt>
                <dd class="alt-weight-desc">(assuming N unmodified Ser/Thr residues)</dd>
                {% for weight in motif.alternative_weights %}
                  <dd>
                    <span class="alt-weight"> {{ '%0.1f' | format(weight) }} Da</span>
                    <span class="alt-weight-n"> N = {{loop.index}}</span>
                  </dd>
                {% endfor %}
            </dl>
          </dd>
        {% endif %}
    {%- endfor -%}
    {% endfor %}
  </dl>
{% else %}
  <div class="prediction-text">No core peptides found.</div>
{% endif %}
</div>

