| """Gemeo β SOTA digital twin module for My Scientist (case-driven). |
| |
| A doctor inputs a case β Gemeo builds a complete digital twin β |
| predicts treatments, conflicts, trajectory, family risk, and |
| simulates interventions. Independent of any patient registry. |
| |
| Public API: |
| |
| from gemeo import build_gemeo, evolve_gemeo, what_if, simulate, consult |
| |
| twin = await build_gemeo(case_text="...", patient_info={...}) |
| twin.diagnoses # ranked differential |
| twin.cohort # patients-like-mine (registry + literature) |
| twin.subgraph # reasoning subgraph |
| twin.trajectory # 6/12/24m predictions |
| twin.risk # severity + survival curve |
| twin.drugs # SUS-aware drug repurposing |
| twin.ddi # drug-drug interactions |
| twin.pharmacogen # gene Γ drug response |
| twin.family # pedigree + recurrence risk |
| twin.reverse_pheno # what to look for given dx |
| twin.protocol_compliance # PCDT gap analysis |
| twin.next_questions # info-gain HPO suggestions |
| twin.consult # multi-specialist opinion |
| twin.sus_check # SUS grounding |
| twin.viz_data # force-graph payload |
| """ |
| from .types import ( |
| GemeoTwin, Cohort, CohortMember, Subgraph, SubgraphNode, SubgraphEdge, |
| TrajectorySpec, TrajectoryHorizon, RiskSpec, |
| DrugSpec, TrialSpec, NextQuestion, SusCheck, VizData, WhatIfResult, |
| DdiSpec, DdiPair, ConsultSpec, SpecialistOpinion, |
| PharmacogenSpec, PharmacogenAssessment, |
| FamilySpec, RelativeRisk, |
| ReversePhenoSpec, ReversePhenoItem, |
| ProtocolComplianceSpec, ComplianceGap, |
| SimulationSpec, SimulationOutcome, |
| ) |
| from .core import ( |
| build_gemeo, evolve_gemeo, query_gemeo, what_if, get_gemeo, |
| consult, simulate, |
| ) |
|
|
| __all__ = [ |
| "build_gemeo", "evolve_gemeo", "query_gemeo", "what_if", "get_gemeo", |
| "consult", "simulate", |
| "GemeoTwin", "Cohort", "CohortMember", "Subgraph", "SubgraphNode", "SubgraphEdge", |
| "TrajectorySpec", "TrajectoryHorizon", "RiskSpec", |
| "DrugSpec", "TrialSpec", "NextQuestion", "SusCheck", "VizData", "WhatIfResult", |
| "DdiSpec", "DdiPair", "ConsultSpec", "SpecialistOpinion", |
| "PharmacogenSpec", "PharmacogenAssessment", |
| "FamilySpec", "RelativeRisk", |
| "ReversePhenoSpec", "ReversePhenoItem", |
| "ProtocolComplianceSpec", "ComplianceGap", |
| "SimulationSpec", "SimulationOutcome", |
| ] |
|
|
| __version__ = "0.2.0" |
|
|