improve build annotation by read --ddg_dir in place instead of copying it#95
Merged
Conversation
…ad ddG input directly
There was a problem hiding this comment.
Pull request overview
This PR refactors the stability-change (ΔΔG) annotation pipeline to avoid copying user-provided RaSP prediction directories, and simplifies shared globals by removing an unused directory-copy helper.
Changes:
- Stop deleting the ΔΔG input directory inside
parse_ddg_rasp(leaving cleanup to the caller). - Update
build_annotations.get_annotations()to parse ΔΔG directly from a user-supplied directory, and only clean up when the ΔΔG data was downloaded by the tool. - Remove the
copy_dirhelper fromscripts/globals.pyand update imports accordingly.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
scripts/plotting/stability_change.py |
Removes internal cleanup of the input directory after parsing ΔΔG. |
scripts/plotting/build_annotations.py |
Switches from copying ΔΔG inputs to reading in-place; adds conditional cleanup for downloaded inputs. |
scripts/globals.py |
Removes the now-unused copy_dir helper function. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
St3451
added a commit
that referenced
this pull request
May 26, 2026
fix: clearer logs in build-annotations ΔΔG step (follow-up to #95)
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
build-annotations --ddg_dir <path>used to copy the entire ΔΔG bundle into a temp directory, parse it, then delete the copy. For multi-GB bundles on networked storage this added ~10 minutes (silently, the copy progress log was DEBUG-only). The copy was pure overhead — nothing in the workflow modifies the input directory.Changes
build_annotations.py:--ddg_diris read in place. Caller now controls cleanup via acleanup_inputflag —Trueonly for the download path.stability_change.py:rm_dir(input_path)lifted out ofparse_ddg_rasp(lifecycle is the caller's concern). Unusedrm_dirimport removed.globals.py:copy_dirdeleted (now dead code)."Completed!"after input-prep replaced with branch-specific messages; duplicate"Parsing completed!"line dropped; trailing newline added tostability_change.py.