Longitudinal and library support

Design scope: {{ longitudinal_support.design_scope_label | e }}.

Each column represents one sequencing library (sample_id / library_id); repeated pipelines on the same library remain grouped in one column and are never summed. Below-threshold CTA measurements distinguish missing values from measured zeros, and mutation rows distinguish exact-window RNA support from alternative windows and unmeasured libraries.

{% macro longitudinal_table(rows) %} {% for lib in longitudinal_support.libraries %} {% endfor %} {% for row in rows %} {% for cell in row.cells %} {% endfor %} {% endfor %}
Target / candidate window{{ lib.sample_id | e }}{% if lib.timepoint and lib.timepoint != lib.sample_id %} ({{ lib.timepoint | e }}){% endif %}{% if lib.library_id and lib.library_id != lib.sample_id %}
lib {{ lib.library_id | e }}{% endif %}{% if lib.pipelines %}
{{ lib.pipelines | join(', ') | e }}{% endif %}
Qualifying samples & longitudinal status
{{ row.gene | e }} ({{ row.kind | e }}){% if row.transcript_ids %}
{{ row.transcript_ids | join(', ') | e }}{% endif %}{% if row.window %}
{{ row.window | e }}{% endif %}
{% if row.selected %}Selected: {{ row.selected_products | join(', ') | e }}{% else %}Not emitted in products{% endif %}
{{ cell.summary | e }}{% if row.qualifying_timepoints %}Qualifying timepoints: {{ row.qualifying_timepoints | join(', ') | e }} ({{ row.qualifying_samples | join(', ') | e }}){% elif row.qualifying_samples %}Qualifying samples: {{ row.qualifying_samples | join(', ') | e }}{% else %}No qualifying sample{% endif %}{% if row.qualified_only_earlier %}
Qualified only through earlier timepoints (not qualified at {{ longitudinal_support.latest_timepoint | e }}{% if row.below_threshold_at_latest %}; below threshold at {{ longitudinal_support.latest_timepoint | e }}{% endif %}).{% endif %}
{% endmacro %} {% set selected_long = longitudinal_support.rows | selectattr('selected') | list %} {% set other_long = longitudinal_support.rows | rejectattr('selected') | list %} {% if selected_long and other_long %}

Selected targets ({{ selected_long | length }})

{{ longitudinal_table(selected_long) }}
Additional candidates not emitted in products ({{ other_long | length }}) {{ longitudinal_table(other_long) }}
{% else %} {{ longitudinal_table(longitudinal_support.rows) }} {% endif %}