All cases

{kase?.name ?? 'Case'}

{#each kase?.phenotypes ?? [] as term (term.hpo_id)} {term.label} {/each} {#if kase && kase.phenotypes.length === 0} no phenotype recorded — ranking falls back to rarity and consequence {/if}

{kase?.assembly} {#if job?.vep_version}· VEP {job.vep_version}{/if} {#if page?.items[0]?.variant.prediction}· model {page.items[0].variant.prediction.model_version}{/if} {#if job?.finished_at}· analysed {new Date(job.finished_at).toLocaleString('en-GB')}{/if}

{#if error}

{error}

{/if} {#if scoreNote}

{scoreNote}

{/if} {#if evidenceNote}

{evidenceNote}

{/if} {#if running}

Analysing for {formatElapsed(elapsedMs)}{#if step} · {step}{/if}

{:else}

{#if canAnalyse} {#if unscored} {/if} {/if} {#if page && page.funnel.total > 0} Case report → {/if}

{/if} {#if job?.status === 'failed' && job.log}
{job.log}
{/if} {#if page && page.funnel.total > 0}

{plural(page.total, 'candidate')} ranked by phenotype fit, rarity, consequence and model score

{#each page.items as candidate, i (candidate.variant.id)} select(candidate)} /> {:else}
No candidates match these filters.
{/each}
{#if detail && page} (detail = null)} ondecided={decided} /> {/if}
{:else if page && !running}
{#if canAnalyse} No results yet. "Analyse case" runs VEP over the VCF, scores each variant, then ranks what is left against the phenotype. {:else} No results for this case. This deployment shows cases that were analysed beforehand; running the pipeline needs Nextflow and a Docker daemon, which it does not have. {/if}
{/if}