Pdbe 8507 interface table data only - #53
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new post-processing step to generate an interface_details.json artifact by combining per-interface JSON outputs with monomer/component metadata, aiming to simplify front-end cross-referencing and enable a download feature.
Changes:
- Adds
PostProcessInterfaceDetailsListto compile interface + component data into a singleinterface_details.jsonoutput. - Introduces new Pydantic post-process models (
InterfaceDetails*) and supporting field/label helpers to standardize schema metadata. - Refactors several existing Pydantic model fields to use shared
*Field()helpers for consistent descriptions/examples.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| pisa_utils/run.py | Wires the new post-processor into the service pipeline to emit interface_details.json. |
| pisa_utils/post_process_parsers.py | Implements PostProcessInterfaceDetailsList to merge interface JSONs with monomer/component extended data. |
| pisa_utils/models/post_process_models.py | Adds new Pydantic models for the interface_details.json schema. |
| pisa_utils/models/labels.py | Adds new label text for component-scoped p-value and solvation-energy fields. |
| pisa_utils/models/data_models.py | Refactors multiple model fields to reuse shared *Field() helpers (schema metadata consistency). |
| pisa_utils/models/data_fields.py | Introduces reusable *Field() helper functions for repeated schema fields. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…st missing dir and unrelated files (#54) * Initial plan * Fix os.listdir usage in PostProcessInterfaceDetailsList.parse() - mirror CompileInterfaceSummaryJSON approach Agent-Logs-Url: https://github.com/PDBe-KB/pisa-analysis/sessions/a5c9fa4a-7b33-452b-8efb-694672b776b3 Co-authored-by: Joseph-Ellaway <69363546+Joseph-Ellaway@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Joseph-Ellaway <69363546+Joseph-Ellaway@users.noreply.github.com>
Member
Author
Thanks, @mihaitodor ! I'll resolve the only nit for now (opened an issue to address this) which I'll work on next. I'll finish this PR by adding tests before moving on. |
Member
Author
|
@mihaitodor Tests are now added. Let me know if you want to give them a check |
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.
Adds model and parser to create a new
interface_details.jsonfile. A requirement for front-end download feature and simplifies all the cross-referencing logic in the FE