Skip to content

fix: preserve DO_PREPARED stamp on Protein sync and to_pdb - #617

Closed
sg-s wants to merge 1 commit into
mainfrom
fix/preserve-do-prepared-stamp
Closed

fix: preserve DO_PREPARED stamp on Protein sync and to_pdb#617
sg-s wants to merge 1 commit into
mainfrom
fix/preserve-do-prepared-stamp

Conversation

@sg-s

@sg-s sg-s commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Stop Protein.sync / register from re-uploading when remote_path is already set, so Pocket Finder and other tools no longer overwrite stamped Prepared Protein PDBs on UFA.
  • Re-prepend REMARK 99 DO_PREPARED after biotite to_pdb when the source had the stamp.
  • Add a small stamp helper (no toolbox_core dependency), tests, and docs.

Test plan

  • uv run pytest --env local -x tests/test_prepared_protein_stamp.py
  • ProteinPrep → PocketFinder flow: prepared PDB on UFA still starts with REMARK 99 DO_PREPARED after pf.run()
  • prepared.sync() with only remote_path set still links/creates a proteins-table row without rewriting the file

Prepared proteins already on UFA were re-uploaded via biotite on
sync(lazy=True), which dropped REMARK 99 and overwrote the stamped file.
Skip upload when remote_path is set, and re-stamp after PDB rewrites.
@sg-s
sg-s requested a review from a team as a code owner August 28, 2026 18:09
@sg-s
sg-s deployed to staging August 28, 2026 18:09 — with GitHub Actions Active
@sg-s

sg-s commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator Author

Closing — stamp fix belongs on metabolism-async-execution, not a standalone PR from main.

@sg-s sg-s closed this Aug 28, 2026
@sg-s
sg-s deleted the fix/preserve-do-prepared-stamp branch August 28, 2026 18:10
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.

1 participant