Add Ensembl Bacteria tools for bacterial genome queries - #9
Open
citizenlee wants to merge 1 commit into
Open
Conversation
The gget library excludes bacteria from search() and ref(). This adds 3 new bacteria-specific tools that use the Ensembl REST API directly: - gget_bacteria_species: Find bacterial species by name or taxonomy ID - gget_bacteria_search: Search bacterial genes by symbol via xrefs - gget_bacteria_ref: Get FTP URLs for bacterial reference genomes Existing gget_info and gget_seq tools already work with bacterial IDs, so after finding gene IDs with bacteria_search, the full workflow is supported without any changes to those tools. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
gget_bacteria_species,gget_bacteria_search,gget_bacteria_ref) that query the Ensembl REST API directly, since the gget library explicitly excludes bacteria fromsearch()andref()EnsemblBacteriaClientclass inensembl_bacteria.pyhandles species discovery, gene symbol resolution via xrefs, and FTP URL construction for the collection-based bacterial genome layoutgget_infoandgget_seqtools already work with bacterial Ensembl IDs — these new tools provide the missing discovery layerNew Tools
gget_bacteria_speciesGET /info/genomes/taxonomy/{taxon}+ species index fallbackgget_bacteria_searchGET /xrefs/symbol/+POST /lookup/idgget_bacteria_refWorkflow Example
Test plan
🤖 Generated with Claude Code