Skip to content

Scope patch psql scripts to a single organism via :ORG_ABBREV#105

Merged
sufenhu merged 10 commits intomasterfrom
worktree-patch_organism_graph
Apr 30, 2026
Merged

Scope patch psql scripts to a single organism via :ORG_ABBREV#105
sufenhu merged 10 commits intomasterfrom
worktree-patch_organism_graph

Conversation

@jbrestel
Copy link
Copy Markdown
Member

Summary

  • Fix instantiateSql call in PatchGenomeAndAnnotation.pm$organismAbbrev was landing in the $tableName slot (position 2); now correctly passed as position 4 with undef placeholders
  • Rewrite pseudogenicCDS.psql: organism-scoped via GeneFeature → NaSequence → Organism join using :ORG_ABBREV macro, all created tables prefixed to apidb schema, DROP TABLE cleanup block added, Oracle implicit-schema references removed
  • Add organism scoping to uniprotProductNames.psql using same join pattern

Test Plan

  • Run plugin against a test organism and verify only that organism's pseudogene records are affected
  • Confirm apidb.pgp_* and apidb.new_pseudo* tables are created and dropped cleanly
  • Verify uniprotProductNames.psql only nulls product for the target organism

🤖 Generated with Claude Code

jbrestel and others added 2 commits April 22, 2026 15:49
- 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>
@jbrestel jbrestel requested review from sufenhu and weili-apidb April 22, 2026 20:06
…leting translated aa sequences

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sufenhu sufenhu merged commit 1cc6454 into master Apr 30, 2026
@sufenhu sufenhu deleted the worktree-patch_organism_graph branch April 30, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants