Pharmaverse
A clinical trial does not hand you a tidy data frame. It hands you data shaped by two CDISC standards: SDTM, the tabulation model that organises what was collected, and ADaM, the analysis model that organises what gets tested. Both are required for submission to the FDA and to the PMDA in Japan, and both are defined down to the variable names, so a demographics table built in one company reads the same as one built in another.
The pharmaverse is where the R tooling for that pipeline
lives. It is a network of companies and individuals that curates open-source R
packages for clinical reporting, work that used to happen behind each company’s
firewall as closed, duplicated code. A council drawn from Roche, GSK, Sanofi, Novo
Nordisk, Novartis, Atorus, Appsilon and Johnson & Johnson decides what is in the set
and what is recommended. This section works through the pipeline with the packages
that Roche and GSK built or co-built: sdtm.oak and the admiral family for the data
standards, rtables, tern and tfrmt for the reporting end.
Every number and every table on these pages comes from a real run of the code you can read on the page, in one pinned container, on packaged example data.
The path
Section titled “The path”| Page | What it does |
|---|---|
| CDISC and SDTM data | what an SDTM study looks like in R, and how raw data becomes a domain |
| ADaM with admiral | deriving selected ADSL variables and two ADLB parameters from SDTM domains |
| Tables for clinical reports | a demographics table and an adverse event table from ADaM data |
The data
Section titled “The data”Two packages exist only to hold example data, and the whole section computes on them.
pharmaversesdtm carries SDTM domains,
several of them sourced from the CDISC pilot
project, a real study run
through the standards and published for exactly this purpose.
pharmaverseadam carries the ADaM
datasets that the admiral template programs
produce from those domains, regenerated on each admiral release, so the target of a
derivation on the ADaM page can be checked against a reference the admiral team
shipped.
The derivation lesson checks selected ADSL and ADLB results against those references. The table lesson starts from packaged ADSL and ADAE, so it does not consume an ADAE dataset derived by the preceding page. Keep that distinction when adapting the examples to a study. The analysis specification must define the population flags, baseline rules, visit windows and table denominators before the derivation and display programs implement them.
Run an example
Section titled “Run an example”The companion repository is private. Its
Pharmaverse setup instructions
and admiral runner
require repository access. Build the section image, then run
bash guides/pharmaverse/adam-admiral/run.sh from the repository root. It reads the
packaged SDTM domains and writes the derivation checks to
guides/pharmaverse/adam-admiral/outputs/page_output_r.txt. Both data packages have
public documentation and downloads at the links above.
Data source
Section titled “Data source”The CDISC pilot project supplies the original study data named by the packaged references. Its attribution and data-use conditions are separate from the package license.