{% extends "base.html" %} {% block main %} {# 与 figures.PT_COLORS 保持一致 #} {% set pt_colors = {"P": "#3c5488", "T": "#e64b35", "N": "#8491b4"} %} {% set pt_stats = string_stats | selectattr("name", "equalto", "pistacking_type") | list %} {% set pt_seen = (pt_stats[0].top if pt_stats else []) | map(attribute="value") | list %} {% set legend_types = (["P", "T", "N"] | select("in", pt_seen) | list) or ["P", "T"] %} {% set has_pt = pt_stats | length > 0 %}
{{ n_pairs }} pairs · {{ n_frames }} frames
{{ run_info.command or "—" }}
| {{ col }}{% if base and table.units.get(base) %} ({{ table.units[base] }}){% endif %} | {% endfor %}
|---|
| {% if col == "pair_label" %}{{ row[col] }} {% else %}{{ cells[loop.index0] }}{% endif %} | {% endfor %}
no pairs match the current filter
{% endif %} {% set rows_cfg = {"url": "/api/rows/" ~ (type | urlencode), "type": type, "search": search, "min_occupancy": min_occupancy, "sort_by": sort_by, "sort_dir": sort_dir, "total": table.total, "limit": rows_limit, "offset": rows_offset} %}| residue | occupancy | pairs | partners | avg dist |
|---|---|---|---|---|
| {{ row.label }} | {{ "%.1f" | format(row.occupancy * 100) }}% | {{ row.n_pairs }} | {{ row.n_partners }} | {{ "%.3f" | format(row.avg_distance) if row.avg_distance is not none else "—" }} |
no residues for this type
{% endif %}no frames in this h5
{% endif %}{{ "no pairs in this h5" if not meta.n_pairs else "no frames in this h5" }}
{% endif %}| metric | unit | dtype | count | min | mean | max | std | distribution |
|---|---|---|---|---|---|---|---|---|
| {{ s.name }} | {{ s.unit or "—" }} | {{ s.dtype }} | {{ s.count }} | {{ "%.3f" | format(s.min) if s.min is not none else "—" }} | {{ "%.3f" | format(s.mean) if s.mean is not none else "—" }} | {{ "%.3f" | format(s.max) if s.max is not none else "—" }} | {{ "%.3f" | format(s.std) if s.std is not none else "—" }} | {% if s.count %} {% set top = s.hist | max %} {% if s.edges %}{% endif %} {% else %} no active frames {% endif %} |