analysis_types = [] %}

  <!-- set sample dictionaries -->

  {% for ind in case_obj.individuals %}
    {% if ind.d4_file %}
      {% set sample = {
        "name" : ind.display_name,
        "coverage_file_path" : ind.d4_file,
        "case_name" : case_obj.display_name,
        "analysis_date" : case_obj.analysis_date.strftime("%FT%T.%f")[:-3] ~ "Z" }
      %}
      {% do samples.append( sample ) %}
      {% do analysis_types.append( ind.analysis_type ) %}
    {% endif %}
  {% endfor %}

  {% if "wes" in 