{% import "bootstrap/wtf.html" as wtf %} {% extends "layout.html" %} {% from "overview/institute_sidebar.html" import institute_actionbar %} {% from "overview/utils.html" import analysis_type %} {% block title %} {{ super() }} - {{ institute.display_name }} - Cases {% endblock %} {% block top_nav %} {{ super() }} {% endblock %} {% macro search_form() %} {% set search = {} %} {% for field in form._fields %} {% if field not in ["search", "csrf_token", "advanced_search"] and form._fields[field].data %} {% do search.update({field: form._fields[field].data}) %} {% endif %} {% endfor %}
{{ form.hidden_tag() }}
{{ form.case.label(class="form-label") }} {{ form.case(class="form-control", placeholder="example:18201", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.search_limit.label(class="form-label") }} {{ form.search_limit(class="form-control") }}
{{ form.search(class="btn btn-lg btn-primary mt-4") }}
{{ form.advanced_search(class="form-check-input") }} {{ form.advanced_search.label(class="form-check-label") }}
{{ form.skip_assigned(class="form-check-input") }} {{ form.skip_assigned.label(class="form-check-label") }}
{{ form.is_research(class="form-check-input") }} {{ form.is_research.label(class="form-check-label") }}
{{ form.clinvar_submitted(class="form-check-input") }} {{ form.clinvar_submitted.label(class="form-check-label") }}
{{ form.has_rna(class="form-check-input") }} {{ form.has_rna.label(class="form-check-label") }}
{{ form.validation_ordered(class="form-check-input") }} {{ form.validation_ordered.label(class="form-check-label") }}
{{ form.exact_pheno.label(class="form-label") }} {{ form.exact_pheno(class="form-control", placeholder="example:HP:0001298, HP:0001250,..", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.exact_dia.label(class="form-label") }} {{ form.exact_dia(class="form-control", placeholder="example:OMIM:125310, ORPHA:585,..", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.synopsis.label(class="form-label") }} {{ form.synopsis(class="form-control", placeholder="example:epilepsy", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.panel.label(class="form-label") }} {{ form.panel(class="form-control", placeholder="example:NMD", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.status.label(class="form-label") }} {{ form.status(class="form-control", placeholder="example:active", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.tags.label(class="form-label") }} {{ form.tags(class="form-control", placeholder="example:medical", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.track.label(class="form-label") }} {{ form.track(class="form-control", placeholder="rare or cancer", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.pheno_group.label(class="form-label") }} {{ form.pheno_group(class="form-control", placeholder="example:HP:0001166", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.cohort.label(class="form-label") }} {{ form.cohort(class="form-control", placeholder="example:pedhep", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.similar_case.label(class="form-label") }} {{ form.similar_case(class="form-control", placeholder="example:18201", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.similar_pheno.label(class="form-label") }} {{ form.similar_pheno(class="form-control", placeholder="example:HP:0001298, HP:0001250,..", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.pinned.label(class="form-label") }} {{ form.pinned(class="form-control", placeholder="example:POT1", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.causative.label(class="form-label") }} {{ form.causative(class="form-control", placeholder="example:POT1", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
{{ form.user.label(class="form-label") }} {{ form.user(class="form-control", placeholder="John Doe", pattern="[^\\\<\>\?\!\=\/]*", title="Characters \<>?!=/ are not allowed") }}
The following search criteria were used: {{search}}
{% endmacro %} {% macro cases_table(group_name, cases) %} {% if sort_order == 'asc' %} {% set sort_option = 'desc'%} {% else %} {% set sort_option = 'asc'%} {% endif %}
{% for case in cases %} {{ case_row(case) }} {% else %} {% endfor %}
{{ group_name|capitalize }} cases ({{cases|length}}/{{status_ncases[group_name] or 0}}) Status Analysis date Link Default panel Seq Track Share
No cases found with this query.
{% endmacro %} {% macro case_row(case) %} {{ case.display_name }} {% if case.individuals|length > 1 %} {% for sample in case.individuals %} {% if case.track == "cancer" %} {% else %} {% endif %} {% endfor %} {% endif %} {% for user in case.assignees %} {{ user.name }} {% endfor %} {% if case.needs_check %} decipher {% endif %} {{ case.status }} {% if case.is_migrated %} migrated {% endif %} {{ case.analysis_date.date() }} {% if case.rerun_requested %} rerun pending {% elif case.is_rerun %} rerun {% endif %} {% if case.is_research %} {% if case.vcf_files.vcf_snv %} Research SNV and INDELs {% elif case.vcf_files.vcf_cancer %} Research Somatic Variants {% endif %} {% else %} {% if case.vcf_files.vcf_snv %} Clinical SNV and INDELs {% elif case.vcf_files.vcf_cancer %} Clinical Somatic Variants {% elif case.vcf_files.vcf_cancer_sv %} Clinical Somatic Structural Variants {% elif case.vcf_files.vcf_fusion %} Clinical Fusion Variants {% elif case.individuals|rejectattr('bionano_access', 'undefined')|rejectattr('bionano_access', 'none')|list|length > 0 %} Optical Genome Mapping BioNano FSHD {% endif %} {% endif %} {{ default_gene_panel(institute, case) }} {{ analysis_type(case.analysis_types) }} {{ case.display_track }} {% if case.clinvar_variants %} {% endif %} {% if case.mme_submission %} {% endif %} {% if case.beacon %} {% endif %} {% endmacro %} {% macro sanger_to_be_validated(unevaluated, validated_by_others) %} {% endmacro %} {% block content_main %}
{{ institute_actionbar(institute) }}
{{ search_form() }}
{% if sanger_unevaluated %} {{ sanger_to_be_validated(sanger_unevaluated, false) }} {% endif %} {% if sanger_validated_by_others %} {{ sanger_to_be_validated(sanger_validated_by_others, true) }} {% endif %}
{% set ordered_statuses = ['prioritized', 'inactive', 'active', 'archived', 'solved', 'ignored'] -%} {% for status in ordered_statuses %} {% for group_name, case_group in cases %} {% if status == group_name %}
{{ cases_table(group_name, case_group) }}
{% endif %} {% endfor %} {% endfor %}
{% endblock %} {% block scripts %} {{ super() }} {% endblock %} {% macro default_gene_panel(institute, case) %} {% set count = namespace(count=0, displayed=0) %} {% for panel in case.panels if panel.is_default %} {% set count.count = count.count + 1 %} {% if count.count < 3 %} {{ panel.panel_name }} {% set count.displayed = count.displayed + 1 %} {% else %} ... {% endif %} {% endfor %} {% if case.panels|length > count.displayed %} + {{ case.panels|length - count.displayed }} {% endif %} {% endmacro %}