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).
67 lines
1.8 KiB
ReStructuredText
67 lines
1.8 KiB
ReStructuredText
========
|
|
pytrials
|
|
========
|
|
|
|
|
|
.. image:: https://img.shields.io/pypi/v/pytrials.svg
|
|
:target: https://pypi.python.org/pypi/pytrials
|
|
|
|
.. image:: https://github.com/jvfe/pytrials/workflows/pytest/badge.svg
|
|
:target: https://github.com/jvfe/pytrials/actions
|
|
|
|
.. image:: https://img.shields.io/pypi/l/pytrials
|
|
:target: https://github.com/jvfe/pytrials/blob/master/LICENSE
|
|
|
|
.. image:: https://readthedocs.org/projects/pytrials/badge/?version=latest
|
|
:target: https://pytrials.readthedocs.io/en/latest/?badge=latest
|
|
:alt: Documentation Status
|
|
|
|
|
|
|
|
|
|
Python wrapper around the clinicaltrials.gov API.
|
|
Documentation for the API can be found here: https://clinicaltrials.gov/data-api/about-api
|
|
|
|
|
|
* Free software: BSD license
|
|
* Documentation: https://pytrials.readthedocs.io.
|
|
|
|
|
|
Tutorial
|
|
--------
|
|
To install::
|
|
|
|
$ pip install pytrials
|
|
|
|
Basic Usage
|
|
^^^^^^^^^^^
|
|
::
|
|
|
|
from pytrials.client import ClinicalTrials
|
|
|
|
ct = ClinicalTrials()
|
|
|
|
# Get 50 full studies related to Coronavirus and COVID in csv format.
|
|
ct.get_full_studies(search_expr="Coronavirus+COVID", max_studies=50)
|
|
|
|
# Get the NCTId, Condition and Brief title fields from 1000 studies related to Coronavirus and Covid, in csv format.
|
|
corona_fields = ct.get_study_fields(
|
|
search_expr="Coronavirus+COVID",
|
|
fields=["NCT Number", "Conditions", "Study Title"],
|
|
max_studies=1000,
|
|
fmt="csv",
|
|
)
|
|
|
|
# Read the csv data in Pandas
|
|
import pandas as pd
|
|
|
|
pd.DataFrame.from_records(corona_fields[1:], columns=corona_fields[0])
|
|
|
|
Credits
|
|
-------
|
|
|
|
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
|
|
|
|
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
|
|
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
|