allen sun
中

TFL generation · R

TFL Codegen

Generate table programs through inspectable steps, with human review at key points.

An Agentic Workflow for generating R table programs from a table template and ADaM metadata. The flow is split into template parsing, variable matching, code generation, and structure checks, with a person reviewing the points that matter.

Input and output

Input
A table template and ADaM metadata.
Output
R table programs for human review and validation.

The workflow

  1. Parse the template and identify the requested content.
  2. Match variables using ADaM metadata.
  3. Generate code, check its structure and review the key decisions.

Before using it

An assisted workflow. Variable choices, statistical methods, data handling and outputs still need review. Generated code is not a validated clinical deliverable.

Project links

Developed by Allen Sun. Follow the project links for current versions, setup instructions and availability.

Feedback or questions →

← All projects