{% from "components/ui.html" import reference %} {% macro plate_map(plate) -%} {% set resource = plate.resource %}

{{ reference(resource.reference) }}

{{ resource.geometry }}
{% for column in plate.columns %}{{ column }}{% endfor %} {% for row in plate.rows %}{{ row }}{% endfor %} {% for well in plate.wells %} {% if well.reference %} {{ well.reference.label }} · {{ well.initial.volume|number }} µL initially {% else %} {{ resource.reference.label }}:{{ well.coordinate }} · unused {% endif %} {% endfor %}
{% if resource.loaded_wells %}
Reagent inputs {{ resource.loaded_wells|length }}
Initial materialWell volume
{% else %}

Initially empty · {{ resource.wells|length }} wells used in this protocol

{% endif %}
{%- endmacro %}