MHC Allele Status & Expression

Cross-species MHC allele competence and expression evidence (normalized via mhcgnomes). Weight mode: {{ mhc_allele_status.policy.expression_weight_mode | e }} · Mask lost: {{ 'yes' if mhc_allele_status.policy.mask_lost_alleles else 'no' }} · Mask silenced: {{ 'yes' if mhc_allele_status.policy.mask_silenced_alleles else 'no' }} · Mask unresolvable: {{ 'yes' if mhc_allele_status.policy.mask_unresolvable_alleles else 'no' }} {% if mhc_allele_status.affected_epitope_count %} · Epitopes adjusted: {{ mhc_allele_status.affected_epitope_count }} (total credit removed: {{ '%.3f' % mhc_allele_status.total_credit_removed }}) {% endif %}

{% if mhc_allele_status.alleles %} {% for row in mhc_allele_status.alleles %} {% endfor %}
MHC Allele Effective Status DNA Status RNA Status Weight DNA LOH / CN / Variants Bulk RNA ASE (Purity) scRNA Tumor / Immune nTPM (UMIs) Caveats & Source
{{ row.allele | e }} {{ row.badge | e }} {% if row.loss_mechanism and row.loss_mechanism not in ('none', 'unknown') %}
{{ row.loss_mechanism | e }}{% endif %}
{{ (row.dna_status or 'unknown') | e }} {{ (row.rna_status or 'unknown') | e }} {{ '%.2f' % row.ranking_weight }}{% if row.masked %} (masked){% endif %} {% if row.dna_loh is not none %}{{ 'LOH' if row.dna_loh else 'No LOH' }}{% endif %}{% if row.dna_copy_number is not none %} (CN={{ '%.2f' % row.dna_copy_number }}){% endif %}{% if row.dna_somatic_variants %} [{{ row.dna_somatic_variants | length }} somatic var]{% endif %}{% if row.dna_loh is none and row.dna_copy_number is none and not row.dna_somatic_variants %}—{% endif %} {% if row.bulk_rna_allele_ratio is not none or row.bulk_rna_tpm is not none %} {% if row.bulk_rna_allele_ratio is not none %}ratio={{ '%.2f' % row.bulk_rna_allele_ratio }}{% endif %} {% if row.bulk_rna_tpm is not none %}{% if row.bulk_rna_allele_ratio is not none %}, {% endif %}TPM={{ '%.1f' % row.bulk_rna_tpm }}{% endif %} {% if row.tumor_purity is not none %} (purity={{ '%.0f%%' % (row.tumor_purity * 100) }}){% endif %} {% else %}—{% endif %} {% if row.scrna_tumor_cluster_ntpm is not none or row.scrna_resolvable_umis is not none %} {% if row.scrna_tumor_cluster_ntpm is not none %}{{ '%.1f' % row.scrna_tumor_cluster_ntpm }}{% else %}—{% endif %} / {% if row.scrna_immune_control_ntpm is not none %}{{ '%.1f' % row.scrna_immune_control_ntpm }}{% else %}—{% endif %} {% if row.scrna_resolvable_umis is not none %} ({{ row.scrna_resolvable_umis }} UMIs{% if row.scrna_chemistry %}, {{ row.scrna_chemistry | e }}{% endif %}){% endif %} {% else %}—{% endif %} {% if row.caveats %}{{ row.caveats | join('; ') | e }}{% endif %} {% if row.assay_source %}{% if row.caveats %}
{% endif %}{{ row.assay_source | e }}{% endif %} {% if row.notes %}
{{ row.notes | e }}{% endif %} {% if not row.caveats and not row.assay_source and not row.notes %}—{% endif %}
{% endif %} {% if mhc_allele_status.apm %} {% set apm = mhc_allele_status.apm %}

Antigen presentation machinery (APM): {% for label, val in [('B2M', apm.b2m_status), ('TAP1', apm.tap1_status), ('TAP2', apm.tap2_status), ('NLRC5', apm.nlrc5_status), ('JAK1', apm.jak1_status), ('JAK2', apm.jak2_status)] if val %} {{ label }}: {{ val | e }}{% if not loop.last %}; {% endif %} {% endfor %} {% if apm.genes %} {% for g in apm.genes %} {% if not loop.first %}; {% endif %}{{ g.gene | e }} (DNA: {{ g.dna_status | e }}, RNA: {{ g.rna_status | e }}{% if g.rna_ntpm is not none %}, nTPM={{ '%.1f' % g.rna_ntpm }}{% endif %}) {% endfor %} {% endif %} {% if apm.disrupted_genes %} · Loss of APM: {{ apm.disrupted_genes | join(', ') | e }}{% endif %} {% if apm.notes %} · {{ apm.notes | e }}{% endif %}

{% endif %}