{##} {##} {{ title }} {% set utils = imp0rt('mrQA.utils') %}

Summary of non-compliance:

List of non-compliant modalities - {{ dataset.non_compliant_modality_names|length }}

{# #} {# #} {% for modality in dataset.modalities|sort %} {% if not modality.compliant %} {% if modality.subjects|length > 2 %} {% set percent_non_compliant = 100 * modality.non_compliant_subject_names|length|float / modality.subjects|length|float %} {% set percent_compliant = 100 * modality.compliant_subject_names|length|float / modality.subjects|length|float %} {# #} {# #} {% endif %} {% endif %} {% endfor %}
Modality # non-compliant (%) Non-compliant subjects Parameters # compliant (%) # subjects# Echo-Timeserrors
{{ modality.name }} {{ modality.non_compliant_subject_names|length }} ({{ percent_non_compliant|round(2, 'floor') }} %) {% if modality.non_compliant_subject_names|length < 50 %} {% for name in modality.non_compliant_subject_names|sort %} {{ name }}, {% endfor %} {% else %} Too many to fit here. Click here for full list. {% endif %} {% for parameter in modality.non_compliant_params()|sort %} {{ parameter }}, {% endfor %} {{ modality.compliant_subject_names|length }} ( {{ percent_compliant|round(2, 'floor') }} %) {{ modality.subjects|length }} #} {# {{ modality.get_echo_times() | length }}#} {# #} {# {{ mode.error_children|length }}#} {#

List of fully compliant modalities : {{ dataset.compliant_modality_names | length }}

{% set cols = 4 %} {% set rows = (dataset.compliant_modality_names|length // cols) + 1 %} {% for i in range(rows) %} {% for j in range(cols) %} {% set index = i * cols + j %} {% if index < dataset.compliant_modality_names|length %} {% endif %} {% endfor %} {% endfor %}
{{ dataset.compliant_modality_names[index] }}
{% for modality in dataset.modalities|sort %} {% if not modality.compliant %} {% if modality.get_echo_times() %}

Modality : {{ modality.name }}

{% endif %} {% for echo_time in modality.get_echo_times()|sort %} {% set te = echo_time %} {% set reference = modality.get_reference(echo_time) %} {% set runs_by_echo = utils._get_runs_by_echo(modality, 3) %}

Reference {{ loop.index }} | Number of Runs : {{ runs_by_echo[te]|length }}

{% for key in reference.keys()|sort %} {% endfor %} {% for key in reference.keys()|sort %} {% endfor %}
{{ key }}
{{ reference[key] }}
{% if modality.non_compliant_params(te).any() %} {% endif %} {% for parameter in modality.non_compliant_params(te)|sort %} {# {% set reasons = modality.query_by_param(parameter, te) %}#} {% endfor %}
Parameter Ref. Value Found Subject_Session
{{ parameter }} {% for value in modality.query_by_param(parameter, te, 'ref_value') %} {{ value }}, {% endfor %} {% for value in modality.query_by_param(parameter, te, 'new_value') %} {{ value }}, {% endfor %} {% for subject in modality.query_by_param(parameter, te, 'subjects') %} {{ subject }}, {% endfor %}
{% endfor %} {% if modality.error_subject_names() %}
Error Subject_Session
Could not compute non-compliance {% for entry in modality.error_subject_names() %} {{ entry }}, {% endfor %}
{% endif %} {% endif %} {% endfor %} {% for modality in dataset.modalities|sort %} {% if modality.compliant %}

Modality : {{ modality.name }}

{% if not modality.get_echo_times() %}
Warning : Could not compute reference
{% endif %} {% for echo_time in modality.get_echo_times()|sort %} {% set te = echo_time %} {% set reference = modality.get_reference(echo_time) %} {% set runs_by_echo = utils._get_runs_by_echo(modality, 3) %} {# {% if modality.is_multi_echo() %}#}

Reference {{ loop.index }} | Number of Runs : {{ runs_by_echo[te]|length }}

{# {% else %}#} {#

Reference

#} {# {% endif %}#} {% for key in reference.keys()|sort %} {% endfor %} {% for key in reference.keys()|sort %} {% endfor %}
{{ key }}
{{ reference[key] }}
{% endfor %} {% if modality.error_subject_names() %}
Error Subject_Session
Could not compute non-compliance {% for entry in modality.error_subject_names() %} {{ entry }}, {% endfor %}
{% endif %} {% endif %} {% endfor %}