- 0062_bio-ontology.sql: ontology_terms/synonyms/xrefs/edges + cell_marker_panels + gene_signatures
(public reference data; seeded via scripts/ingest-ontology.ts — 34 terms, 143 synonyms, 29 marker panels)
- lib/entities/canonicalize.ts + lib/bio/ontology.ts: DB-backed deterministic entity resolution (no LLM)
- lib/bio/verifyBioinformaticsFinding.ts + lib/bio/rules/*: verify a Claude-Science-style finding
("AUC 0.86 responder signature") — grounds every number to a verbatim source span, deterministic verdict
- app/api/bio/{verify-finding,marker-check,variant-outcome} + app/api/entities/canonicalize (public, rate-limited)
- backend/engines/scispacy/papertrail_linker.py: PaperTrail-native multi-ontology linker (in-place engine specialization)
- 3 Claude Science skills + 4 MCP tools (local + hosted catalog) + /console/bio/finding + /console/ontology pages
tsc + mcp build + app build all green. Migration + seed applied to Neon.
25 lines
972 B
TypeScript
25 lines
972 B
TypeScript
// Per-check verdict card for the bioinformatics-finding console. Presentational
|
|
// only — renders one deterministic check's kind, verdict badge, summary, and the
|
|
// named source it came from. House tokens only.
|
|
|
|
import { type FindingCheck, checkVerdictClass, humanize } from "./types";
|
|
|
|
export function VerdictCard({ check }: { check: FindingCheck }) {
|
|
return (
|
|
<div className="rounded-lg border border-ink/15 bg-white p-4">
|
|
<div className="flex flex-wrap items-start justify-between gap-2">
|
|
<p className="text-sm font-semibold text-ink">{humanize(check.kind)}</p>
|
|
<span
|
|
className={`rounded-full border px-2.5 py-0.5 text-xs font-medium ${checkVerdictClass(
|
|
check.verdict
|
|
)}`}
|
|
>
|
|
{humanize(check.verdict)}
|
|
</span>
|
|
</div>
|
|
<p className="mt-2 text-sm text-ink/70">{check.summary}</p>
|
|
<p className="mt-2 text-xs text-ink/40">Source: {check.source}</p>
|
|
</div>
|
|
);
|
|
}
|