Review ask

As a clinical trial statistician or programmer, answer three short questions in Your review: the task, the inputs and outputs, and the AI-assisted review. Agreeing with all three approves this benchmark; disagreeing with any needs a comment. Propose a fix with the Edit button on any source file, or add it to your comments.

We suggest spending no more than 5 minutes on a review. The other tabs beside Your review are background for assessment, not under review.

Summary

Lifecycle: draftEditUnder review
What this benchmark means
README.md

Public entries: Python and R. Passing coverage requires an installed inventory.

Goal: carry each quantified neutralizing antibody titer into AVAL on the base-10 logarithmic scale, the scale titers are analyzed on, with one record for each subject, parameter and visit.

Input: immunogenicity results with one neutralizing antibody titer per subject and visit, alongside the assay's lower limit of quantitation.

Variables:

  • PARAMCD: NABLOG10, the base-10 logarithm of the neutralizing antibody titer.
  • AVAL: the base-10 logarithm of the titer, at full precision, and blank when the titer is blank.

Note: a titer below the assay's lower limit of quantitation, a titer of zero among them, has no record: zero has no logarithm, and a titer under the limit is not a measured value to transform.

Inputs

Under review
1 source file

input/is.csv

Edit
8 rows
input/is.csv
STUDYIDUSUBJIDISTESTCDISTESTVISITNUMVISITISSTRESNISLLOQ
YAMAA-01NABTITERNeutralizing Antibody Titer1DAY 11010
YAMAA-01NABTITERNeutralizing Antibody Titer2DAY 2964010
YAMAA-01NABTITERNeutralizing Antibody Titer1DAY 1010
YAMAA-01NABTITERNeutralizing Antibody Titer2DAY 298010
YAMAA-01NABTITERNeutralizing Antibody Titer1DAY 12010
YAMAA-01NABTITERNeutralizing Antibody Titer2DAY 29—10
YAMAA-01NABTITERNeutralizing Antibody Titer1DAY 1510
YAMAA-01NABTITERNeutralizing Antibody Titer2DAY 29128010

Expected output

Under review
6 expected rows

expected/adis.csv

Edit
6 rows
expected/adis.csv
STUDYIDUSUBJIDPARAMCDAVISITAVAL
YAMAA-01NABLOG10DAY 11
YAMAA-01NABLOG10DAY 292.806179973983887
YAMAA-01NABLOG10DAY 291.9030899869919435
YAMAA-01NABLOG10DAY 11.3010299956639813
YAMAA-01NABLOG10DAY 29—
YAMAA-01NABLOG10DAY 293.1072099696478683
Shaded columns are derived— = missing value

Human review and assessment

Your review

3 questions and your comments · View benchmark discussions

Mapping spec

Generated from the benchmark YAML; do not edit by hand

Dataset NameVariable NameVariable LabelTypeCodelist/Controlled TermsCoreComputational MethodOrigin
ADISSTUDYIDStudy IdentifiercharacterCopy value from IS.STUDYID.Predecessor
ADISUSUBJIDUnique Subject IdentifiercharacterCopy value from IS.USUBJID.Predecessor
ADISPARAMCDParameter CodecharacterSet constant value "NABLOG10".Assigned
ADISAVISITAnalysis VisitcharacterCopy value from IS.VISIT.Predecessor
ADISAVALAnalysis ValuenumericCompute LOG10(TITER).Derived
VersionDateAuthorDescriptionReviewerSign-off
1.72026-10-20yamaa docs buildRead a specification in the 1.0 surface as its 0.5 counterpart; state that missing values stay missing where a mapping declares no missing handler, and leave out a declared missing answer that restates a handler's default
1.62026-10-17yamaa docs buildDescribe collected date parts written as ISO 8601 date text and times of day counted in seconds since midnight
1.52026-10-17yamaa docs buildName collected precision in words instead of letter codes; state imputation fallbacks, minimum source precision, bounds ignored outside the collected period, and invalid text with no handler as an error; describe date and datetime shifts, imputation flag codes, and partial text giving no date part
1.42026-10-15yamaa docs buildState datetime precision codes through the hour and minute, and complete only the time parts a collected datetime lacks
1.32026-09-29yamaa docs buildShow study codelist names, external dictionaries, and ISO 8601 formats in variable rows; list the document's codelist values and metadata
1.22026-09-29yamaa docs buildClassify ADaM copies from a declared input as Predecessor and recodes as Derived, and SDTM recodes of locally derived columns as Derived
1.12026-09-29yamaa docs buildResolve lookups into the donor record they select, and give every derivation shape a plain-language rule instead of its raw YAML
1.0yamaa docs buildInitial generation from spec.yaml

Agent prompt

The request an agent receives with the input files; each tier states no more than the one above

prompts/adam-adis-log-titer/full.md

Edit
19 lines

Following CDISC ADaM standards, use the provided IS dataset to create an ADIS dataset with one record per subject per parameter per visit.

The output dataset should contain the following columns in this order: STUDYID, USUBJID, PARAMCD, AVISIT, AVAL

Every record has PARAMCD "NABLOG10", the base-10 logarithm of the neutralizing antibody titer. The titer is ISSTRESN, and the assay's lower limit of quantitation is ISLLOQ. AVISIT is the visit name exactly as VISIT spells it. AVAL is the base-10 logarithm of the titer at full precision; it is not rounded, and it has no value when the titer has no value.

A titer below the lower limit of quantitation, a titer of zero among them, has no record: zero has no logarithm, and a titer under the limit is not a measured value to transform. A titer equal to the limit has a record, and so does a visit with no titer, whose AVAL has no value.

Read the source datasets from /app/input and save the completed dataset as /app/output/adis.csv.

prompts/adam-adis-log-titer/conventions.md

Edit
11 lines

Following CDISC ADaM standards, use the provided IS dataset to create an ADIS dataset with one record per subject per parameter per visit.

The output dataset should contain the following columns in this order: STUDYID, USUBJID, PARAMCD, AVISIT, AVAL

PARAMCD is "NABLOG10" and AVAL is not rounded. A titer below the lower limit of quantitation gives no record.

Read the source datasets from /app/input and save the completed dataset as /app/output/adis.csv.

prompts/adam-adis-log-titer/brief.md

Edit
8 lines

Following CDISC ADaM standards, use the provided IS dataset to create an ADIS dataset with one record per subject per parameter per visit.

The output dataset should contain the following columns in this order: STUDYID, USUBJID, PARAMCD, AVISIT, AVAL

Read the source datasets from /app/input and save the completed dataset as /app/output/adis.csv.

yamaa code

Public calls generated from benchmark.yaml; results must match the expected output

R

Edit
3 lines
library(yamaa)yamaa_spec("spec.yaml")$run()$output

Python

Edit
3 lines
import yamaayamaa.spec("spec.yaml").run().output

Solution without yamaa

Written from the full prompt and the inputs alone; CI checks it reproduces the expected output

solutions/adam-adis-log-titer/result.R

Edit
31 lines
# Reference solution for the yamaa benchmark adam-adis-log-titer (R track).## Written from the benchmark's full prompt and its inputs alone, as an agent# would write it. Harbor's oracle agent runs it to check that the prompt can# be solved and that the grader scores a correct answer 1.library(dplyr, warn.conflicts = FALSE)library(readr)is_in <- read_csv(  "/app/input/is.csv",  col_types = cols(    ISSTRESN = col_double(),    ISLLOQ = col_double(),    .default = col_character()  ))# A titer below the lower limit of quantitation gives no record; a record# whose titer has no value stays.adis <- is_in |>  filter(is.na(ISSTRESN) | ISSTRESN >= ISLLOQ) |>  mutate(    PARAMCD = "NABLOG10",    AVISIT = VISIT,    AVAL = log10(ISSTRESN)  ) |>  select(STUDYID, USUBJID, PARAMCD, AVISIT, AVAL)dir.create("/app/output", showWarnings = FALSE)write_csv(adis, "/app/output/adis.csv", na = "")

solutions/adam-adis-log-titer/result.py

Edit
45 lines
# Reference solution for the yamaa benchmark adam-adis-log-titer (Python track).## Written from the benchmark's full prompt and its inputs alone, as an agent# would write it. Harbor's oracle agent runs it to check that the prompt can# be solved and that the grader scores a correct answer 1.import csvimport mathINPUT_CSV = "/app/input/is.csv"OUTPUT_CSV = "/app/output/adis.csv"def number(text):    text = text.strip()    return float(text) if text else Nonedef main():    with open(INPUT_CSV, newline="") as f:        rows = list(csv.DictReader(f))    fieldnames = ["STUDYID", "USUBJID", "PARAMCD", "AVISIT", "AVAL"]    with open(OUTPUT_CSV, "w", newline="") as f:        writer = csv.DictWriter(f, fieldnames=fieldnames)        writer.writeheader()        for row in rows:            titer = number(row["ISSTRESN"])            # A titer below the lower limit of quantitation gives no record;            # a record whose titer has no value stays.            if titer is not None and titer < number(row["ISLLOQ"]):                continue            writer.writerow(                {                    "STUDYID": row["STUDYID"],                    "USUBJID": row["USUBJID"],                    "PARAMCD": "NABLOG10",                    "AVISIT": row["VISIT"],                    "AVAL": "" if titer is None else repr(math.log10(titer)),                }            )if __name__ == "__main__":    main()

solutions/adam-adis-log-titer/result.sas

Edit
28 lines
/* opensas reference solution for the yamaa benchmark adam-adis-log-titer.   Reads the benchmark inputs and derives the requested output.   Execute with the existing opensas runtime: opensas /app/output/result.sas. */data is;  length STUDYID USUBJID ISTESTCD $40 ISTEST $60 VISIT $40;  infile "/app/input/is.csv" dsd dlm="," firstobs=2 truncover lrecl=32767;  input STUDYID : $char40. USUBJID : $char40. ISTESTCD : $char40.        ISTEST : $char60. VISITNUM VISIT : $char40. ISSTRESN ISLLOQ;run;/* A titer below the lower limit of quantitation gives no record; a record   whose titer has no value stays. */data adis;  set is;  where missing(ISSTRESN) or ISSTRESN >= ISLLOQ;  length PARAMCD $8 AVISIT $40;  PARAMCD = 'NABLOG10';  AVISIT = VISIT;  if not missing(ISSTRESN) then AVAL = log10(ISSTRESN);  keep STUDYID USUBJID PARAMCD AVISIT AVAL;run;proc sql;  create table final as    select STUDYID, USUBJID, PARAMCD, AVISIT, AVAL from adis;quit;proc export data=final outfile="/app/output/adis.csv" dbms=csv replace; run;