Draft
zooma: batching, retry logic, and ontology filter support#797
Conversation
Co-authored-by: hechth <12066490+hechth@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add batching approach and retry logic for annotating inputs
zooma: batching, retry logic, and ontology filter support
Aug 26, 2026
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.
The zooma tool was processing one row per API call with no fault tolerance, making it brittle for large inputs. This adds batched processing, retry/skip logic, and ontology scoping controls matching the ZOOMA web GUI.
Changes
zooma.py--batch-size, default 10)--ontology-filter(all|efo_obo|obo|custom) +--ontologiesfor custom comma-separated list; filter is passed as params on annotate requests and asontologiesbody field on map requestsquery_zooma_mapnow accepts a list of values, building the fullpropertiesbatch array in one call; results matched back to query values bypropertyValuefieldzooma.xmlbatch_sizeinteger param (default 10, range 1–100)ontology_filterconditional with 4 options: All, EFO+OBO, OBO only, Custom; Custom exposes a multi-select (dummy for now — ontology list to be driven by data table in a future release)macros.xml