feat(tools): describe_var_column + var_columns in dataset schema#161
Merged
Conversation
Adds symmetric var-side metadata access for the chat agent. - ZarrAccess gets var_column(name) parallel to obs_column(name), wired through AnnDataStore, the api zarr_adapter, and the test fake - describe_var_column tool mirrors describe_obs_column: categorical -> top 50 values + counts; numeric -> min/max/mean/median/quartiles - get_dataset_schema payload includes var_columns so the agent can discover gene-metadata columns (gene_symbol, feature_id, etc.) up front instead of guessing Fixes the gene-symbol blind spot: previously the agent could see obs columns but had no way to learn which var column holds gene symbols.
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.
Summary
Adds symmetric var-side metadata access for the chat agent. Fixes the gene-symbol blind spot — previously the agent saw obs columns but had no way to discover which var column holds gene symbols.
A future cleanup is to combine `describe_obs_column` + `describe_var_column` into one `describe_column(axis, name)` tool; left as follow-up.
Test plan