{% macro qc_metrics(samples, metrics) %}
  <table class="table w-auto text-center align-middle" aria-describedby="qc-metrics-table">
    <thead class="table-secondary">
      <tr>
        <th scope="col">Metrik</th>
        {% for sample in samples %}
          <th scope="col">{{ sample.name }} ({{ sample.id }})</th>
        {% endfor %}
        <th scope="col">Förklaringar</th>
      </tr>
    </thead>
    <tbody>
      {% for metric in metrics %}
      <tr>
        <th scope="row">{{ metric.name }}</th>
        {% for sample in samples %}
          <td>{{ sample.metadata[metric.key] }}</td>
        {% endfor %}
        <td class="text-start">{{ metric.description }}</td>
      </tr>
      {% endfor %}
    </tbody>
  </table>
{% endmacro %}
