Builds PaperTrail from the base skeleton into a full evidence-verification platform for the "Built with Claude: Life Sciences" hackathon (Builder Track). New named-user features (Build Beyond the Bench): - Lab Notebook Companion — rough bench notes -> structured, searchable, grounded experiment records (lib/labNotebook, /console/lab-notebook, migration 0059) - Clinical Trial Matcher — de-identified patient notes -> ranked eligible ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning (lib/trialMatcher, /console/trial-matcher, migrations 0060) Platform: - Deterministic verification moat (biostats recompute, exact-span grounding) - 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar, PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier) - Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise governance (RBAC, /api/v1 gateway, metering, audit chain, retention) - 17 OSS projects assimilated into native TypeScript on our stack (backend/engines retained + credited in NOTICE) - Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site - Next.js 16 upgrade, benchmark harness (honest smoke-test caveat) Licensing: Apache-2.0 (LICENSE + NOTICE).
28 lines
745 B
Python
28 lines
745 B
Python
"""Tests for pymare.stats."""
|
|
|
|
from pymare import stats
|
|
|
|
|
|
def test_q_gen(vars_with_intercept):
|
|
"""Test pymare.stats.q_gen."""
|
|
result = stats.q_gen(*vars_with_intercept, 8)
|
|
assert round(result[0], 4) == 8.0161
|
|
|
|
|
|
def test_q_profile(vars_with_intercept):
|
|
"""Test pymare.stats.q_profile."""
|
|
bounds = stats.q_profile(*vars_with_intercept, 0.05)
|
|
assert set(bounds.keys()) == {"ci_l", "ci_u"}
|
|
assert round(bounds["ci_l"], 4) == 3.8076
|
|
assert round(bounds["ci_u"], 2) == 59.61
|
|
|
|
|
|
def test_var_to_ci():
|
|
"""Test pymare.stats.var_to_ci.
|
|
|
|
This is basically a smoke test. We should improve it.
|
|
"""
|
|
ci = stats.var_to_ci(0.05, 0.5, n=20)
|
|
assert round(ci[0], 4) == -0.2599
|
|
assert round(ci[1], 4) == 0.3599
|