Documentation

15.25 JSON, text, HTML, and conditional comparison files

The output bundle provides several representations for different consumers. They overlap but are not interchangeable.

Machine and text representations

nca_summary.json serializes the run, profile results, summaries, comparisons, notes, and settings-relevant structures for machine use. It preserves nulls where CSV uses empty fields. [output] json=false suppresses it.

nca_summary.txt is always written and begins with the command followed by a readable listing. It is suitable for review and archival, not for robust column parsing. CSV remains the stable tabular interchange.

HTML report

report.html combines dataset/run context, tables, notes, and web figures. Tables are collapsible and can be maximized. Expand/collapse-all controls support review; printing reveals all sections. With JavaScript unavailable, tables remain visible. [output] html=false suppresses the report.

The report's figures are generated for web presentation separately from publication files. Thus --no-plots does not imply a figure-free HTML report. Review exact numeric values in CSV/JSON rather than copying rounded display text.

Conditional CSV files

Three tables are written only when they contain rows:

  • nca_dose_proportionality.csv;
  • nca_comparison.csv;
  • nca_bioavailability.csv.

Their absence normally means eligibility conditions were not satisfied. Check number of dose levels, reference-group resolution, positive endpoint availability, subject overlap, route pairing, interval selection, and skips.

[output] profiles_csv and lambda_z_csv can suppress the two audit CSVs, but release analyses should generally keep them. Suppression saves little compared with the diagnostic value lost.

Common mistakes

  • Parsing the text listing as if it were a versioned CSV schema.
  • Treating rounded HTML values as validation references.
  • Calling a missing optional comparison CSV a file-write failure.
  • Turning off audit tables for a release bundle.

Checklist

  • Select representations for machine, audit, and human review.
  • Use CSV/JSON unrounded values for validation.
  • Explain every absent optional table.
  • Test HTML navigation and print behavior.
  • Preserve checksums for the entire bundle.

Further reading

See output directory/provenance, comparison settings, and Chapter 10's output bundle guidance.