Scope patch psql scripts to a single organism via :ORG_ABBREV#105
Merged
Scope patch psql scripts to a single organism via :ORG_ABBREV#105
Conversation
- Fix instantiateSql call to pass organismAbbrev in correct positional slot - Rewrite pseudogenicCDS.psql to filter by organism (GeneFeature->NaSequence->Organism join), prefix all created tables with apidb schema, add DROP TABLE cleanup, and update Oracle implicit-schema references - Add organism scoping to uniprotProductNames.psql Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Prevents table name collisions when the script runs concurrently for multiple organisms. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ev instead of o.public_abbrev
sufenhu
approved these changes
Apr 29, 2026
…leting translated aa sequences Co-Authored-By: Claude Sonnet 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
instantiateSqlcall inPatchGenomeAndAnnotation.pm—$organismAbbrevwas landing in the$tableNameslot (position 2); now correctly passed as position 4 withundefplaceholderspseudogenicCDS.psql: organism-scoped viaGeneFeature → NaSequence → Organismjoin using:ORG_ABBREVmacro, all created tables prefixed toapidbschema, DROP TABLE cleanup block added, Oracle implicit-schema references removeduniprotProductNames.psqlusing same join patternTest Plan
apidb.pgp_*andapidb.new_pseudo*tables are created and dropped cleanlyuniprotProductNames.psqlonly nullsproductfor the target organism🤖 Generated with Claude Code