Repository navigation
Custom data: "Analyze" opens an analysis of the patients with a row in an upload - #65
Merged
Merged
Conversation
…n an upload
- A new cohort clause, {"kind":"upload","dataset":"custom:<name>"}: the patients with a value in
any of the upload's columns, patient- or sample-level. It names the upload as its attributes do,
so the document's `uploads` pins it and a request without it is refused by name, like any custom
attribute (CUSTOM_REF_RE matches both forms).
- Each saved dataset in Custom data → Manage gets "Analyze": a new analysis pinned to the latest
version, with that one cohort, across the studies the upload matched.
- The clause's pill reads "custom data · a row in <name>"; documented in the DSL reference.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TyVfAhLnjshk2kWewGnLum
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
New cohort filter: "has a row in this upload"
{"kind":"upload","dataset":"custom:<name>"}.uploadspins it, and a request without the upload is refused by name, like any custom attribute.CUSTOM_REF_REnow matches both forms.docs/dsl.mdis regenerated."Analyze" button in Custom data → Manage
Preview
/lab?tab=analysis&doc=with a cohort{"study":"luad_mskimpact_2021","all":[{"kind":"upload","dataset":"custom:luad-biopsy-site"}]}gives 93 patients.Testing
e2e-saved.cjs): saves the example upload, clicks Analyze, and checks the cohort's patient count equals the upload's rows. The saved-data suite passed locally against a signed-in server (8 rows → 8 patients).🤖 Generated with Claude Code
https://claude.ai/code/session_01TyVfAhLnjshk2kWewGnLum