Skip to content

AssayTransformScripts.md and related changes - #8122

Merged
labkey-matthewb merged 3 commits into
developfrom
fb_mcp_transform_scripts
Oct 2, 2026
Merged

labkey-matthewb merged 3 commits into
developfrom
fb_mcp_transform_scripts

Conversation

@labkey-matthewb

Copy link
Copy Markdown
Contributor

Rationale

AssayTransformScripts.md resource for writing transform scripts

Related Pull Requests

Changes


A transform script runs **inside** LabKey Server during assay import. The server writes the uploaded data and run metadata to files, runs the script, and reads back the files the script writes. The script can clean or reshape result data, compute new columns, change run/batch properties, and reject or warn about an import. It is a file-exchange contract, not an HTTP API: most scripts never call back into the server.

This guide covers the contract as the server implements it, the traps, and a local development loop. For UI walkthroughs, module-based assays, and worked examples, call `searchDocumentation` (e.g. `searchDocumentation("transform scripts run properties reference")`, `searchDocumentation("transformation script warnings")`), then `retrieveDocument`. Where this guide and the documentation disagree, trust this guide.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The content in this document all looks good to me and this seems like a nice skill / helper to have. Regarding the last sentence here, "where this guide and the documentation disagree, trust this guide", is interesting. It is really too bad that we can't just point this document to the documentation instead of keep having to duplicate things. For example, I just recently added a reRunId property to the runProperties file that the transform script writes and I'm not sure I would have remembered / known to update this location as well as the docs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, I have a list of updates for the docs.

But yes, I agree. I actually discussed this with Claude. The information it found was scattered across a lot of pages (and a lot of words), so it thought it worth making a condensed version. I think we have a task on the backlog to think about the workflow for MCP resources (just a separate set of wiki pages?)

@labkey-matthewb
labkey-matthewb merged commit 48e7ce0 into develop Oct 2, 2026
7 checks passed
@labkey-matthewb
labkey-matthewb deleted the fb_mcp_transform_scripts branch October 2, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants