{% autoescape true %}

Selection rules and score calculations

{% if selection_policy.available %}

Recorded policy: {{ selection_policy.name }}; Vaxrank {{ selection_policy.version }}. These are resolved design settings. Raw invocation defaults in Methods and provenance do not override saved assembly settings.

Effective configuration identity: {{ selection_policy.identity }}

{% for section in selection_policy.sections %}

{{ section.title }}

{% for label, value in section.rows %}{% endfor %}
{{ label }}{{ value }}
{% endfor %} {% else %}

Effective run configuration was not recorded or was not supplied to this report. The calculations below use the actual candidate objects; invocation defaults are not substituted for historical design settings.

{% endif %} {% if score_calculations %}

Candidate score calculations

The expression is taken from each candidate. Its target_epitope_score sums the stored scores of retained target occurrences; with MS scoring, this is the baseline allele sum plus one maximum MS increment per unique peptide sequence in the window (B^(1/G), G = 1 + gain × log2(1 + max(R, P, J)); heuristic ranking scores, not probabilities). Without MS scoring, each occurrence sums its credited allele scores. Presentation, WT comparison, cleavage, RNA support and manufacturability affect this expression only when its recorded terms use them.

{% macro score_calc_table(calcs) %} {% for calculation in calcs %}{% endfor %}
SourcesExpression and inputsResult / target contributions
{% for source in calculation.sources %}{{ source }}{% if not loop.last %}, {% endif %}{% endfor %} {{ calculation.expression }}{% for term in calculation.terms %}
{{ term.name }} = {{ term.display }} ({{ term.unit }}){% if term.evidence %}
{{ term.evidence }}{% endif %}{% endfor %}
Combined score: {{ calculation.result }}
Target-epitope total: {{ calculation.target_score }} {% for target in calculation.targets %}

{{ target.sequence }}, offset {{ target.offset }}: {% for allele, score in target.allele_scores.items() %}{{ allele }}: {{ '%.6g' | format(score) }}{% if not loop.last %}; {% endif %}{% endfor %}{% if target.ms_scoring %}
MS increment (counted once per sequence): {{ "%.6g" | format(target.ms_increment) }}{% for allele, trace in target.ms_scoring.items() %}
{{ allele }}: base {{ trace.base }}, adjusted {{ "%.6g" | format(trace.adjusted) }}; resolved support {{ trace.resolved }}, presence {{ trace.presence }}, reference support {{ trace.reference }}{% endfor %}{% endif %}

{% endfor %}
{% endmacro %} {% if score_calculations | length > 10 %}
Per-candidate score algebra and MS traces ({{ score_calculations | length }} candidate windows) {{ score_calc_table(score_calculations) }}
{% else %} {{ score_calc_table(score_calculations) }} {% endif %}{% endif %} {% include "templates/window_decisions.html" %} {% endautoescape %}