{# Set the width based on the plot #} {%- if fig_name in ['plot_1a', 'plot_1b', 'plot_1c', 'plot_1d', 'plot_3a', 'plot_4a', 'plot_4b', 'plot_4c', 'plot_4e', 'plot_4f', 'plot_5a', 'plot_7', 'plot_8', 'plot_8a', 'plot_11c'] -%} {% set width = '40%' %} {%- elif fig_name in ['plot_10b', 'plot_10c'] -%} {% set width = '35%' %} {%- elif fig_name in ['plot_10a'] -%} {% set width = '70%' %} {%- else -%} {% set width = '100%' %} {%- endif -%} {%- if amplicon_name is defined -%} {%- if 'htmls' in report_data['figures'] and fig_name in report_data['figures']['htmls'][amplicon_name] -%} {{report_data['figures']['htmls'][amplicon_name][fig_name]|safe}} {%- elif fig_name in report_data['figures']['locs'][amplicon_name] -%} {% endif -%} {%- for (data_label,data_path) in report_data['figures']['datas'][amplicon_name][fig_name] %}

Data: {{data_label}}

{%- endfor -%} {%- else %} {%- if 'htmls' in report_data['figures'] and fig_name in report_data['figures']['htmls'] -%} {{report_data['figures']['htmls'][fig_name]|safe}} {%- elif fig_name in report_data['figures']['locs'] -%} {% endif -%} {% if fig_name in report_data['figures']['captions'] and fig_name in report_data['figures']['datas'] %} {%- for (data_label,data_path) in report_data['figures']['datas'][fig_name] %}

Data: {{data_label}}

{%- endfor -%} {%- endif %} {%- endif %}