{% import "bootstrap/wtf.html" as wtf %} {% from "utils.html" import comments_table %} {% from "cases/utils.html" import pretty_link_variant %} {% from "variants/indicators.html" import pin_indicator, causative_badge, clinical_assessments_badge, comments_badge, dismissals_badge, evaluations_badge, group_assessments_badge, matching_manual_rank, research_assessments_badge %} {% macro rank_score_cell(variant, other_score_as_tooltip=False) %} {# Since norm_rank_score is populated with 0 if missing we can't test for missing, hence color for 0 will be same as undefined. #} {% if variant.norm_rank_score %}
| Variant | Combined score {% if not is_popover %} ? | {% endif %}Rank score | Gene annotation | Func. annotation |
|---|---|---|---|---|
| {% if compound.not_loaded %} {{ compound.display_name|truncate(20, True) }} (not loaded) {% elif is_popover %} {{ compound.display_name|truncate(20, True) }} {% else %} {{ compound.display_name|truncate(20, True) }} {% if 'suspects' in case and compound.variant in case.suspects %} {% endif %} {% endif %} | {{ compound.combined_score }} | {{ compound.rank_score }} |
{% for annotation in compound.region_annotations %}
{{ annotation }} {% endfor %} |
{% for annotation in compound.functional_annotations %}
{{ annotation }} {% endfor %} |
| Pos | Type | Length | Rank score |
|---|---|---|---|
| {{ pretty_link_variant(variant, case) }} | {{ variant.sub_category }} | {{ variant.length if variant.length and variant.length < 100000000000 else '-' }} | {{ variant.rank_score }} |