{% extends "layout.html" %} {% block title %} {{ super() }} - {{ institute.display_name }} - {{ case.display_name }} {% endblock %} {% block top_nav %} {{ super() }}
  • Institutes
  • {{ institute.display_name }}
  • {{ case.display_name }}
  • MatchMaker
  • {% endblock %} {% block content_main %}
    {{patient_data()}}
    {{show_matches('external')}}
    {{show_matches('internal')}}
    {% endblock %} {% macro patient_data() %}

    Features (HPO terms): {% for hpo in case.mme_submission.features %} {{hpo.id}} {% endfor %}

    Disorders (OMIM terms): {% for omim in case.mme_submission.disorders %} {{omim.id}} {% endfor %}

    Submitted patients: {% for patient in case.mme_submission.patients %}

    {% endfor %}

    {% endmacro %} {% macro show_matches(type) %}
    {% set matching_patients = [] %} {% for patient, match_objs in matches.items() %}
    {% set p_name = patient.split('.') %}

    Showing {{type}} matches for patient {{ p_name[1] }}:

    {% for match_obj in match_objs %} {% if match_obj.match_type == type %} {% do matching_patients.append(match_obj.patient_id) %}
    {% for match_result in match_obj.patients %}
    Score Patient ID MME node Contact
    {{match_result.score.patient|round(4)}} {{match_result.patient_id}} {{match_result.node.label}} {{match_result.patient.contact.name}} {% if match_result.patient.contact.institution %}
    {{match_result.patient.contact.institution}} {% endif %}
    {{match_result.patient.contact.href}}
    Diagnoses Features Genomic Features
    {% for omim in match_result.patient.disorders %} {{omim.id}} {% endfor %} {% for feature in match_result.patient.features %} {{feature.label}}({{feature.id}}) {% endfor %}
    {% for g_feat in match_result.patient.genomicFeatures %}
    {% for key, value in g_feat.items() %} {% if key == 'gene' %} {{key}}: {{value.id}}
    {% elif key == 'variant' %} {% for ikey, item in value.items() %} {% if not ikey == 'shareVariantLevelData' %} {{ikey}}:{{item}}
    {% endif %} {% endfor %} {% elif key == 'zygosity' %} {{key}}:{{value}} {% if value == 1 %} (heteroz. or hemiz. if on X in males) {% elif value == 2 %} (homozygous) {% endif %} {% else %} {{key}}:{{value.label}}
    {% endif %} {% endfor %}
    {% endfor %}



    {% endfor %}

    {% endif %} {% endfor %} {% if not matching_patients %} No matches available for this patient. {% endif %}
    {% endfor %} {% endmacro %} {% block scripts %} {{ super() }} {% endblock %}