Skip to content

Pdbe 8507 interface table data only - #53

Merged
Joseph-Ellaway merged 14 commits into
mainfrom
PDBE-8507-interface-table-data-only
Jun 1, 2026
Merged

Pdbe 8507 interface table data only#53
Joseph-Ellaway merged 14 commits into
mainfrom
PDBE-8507-interface-table-data-only

Conversation

@Joseph-Ellaway

@Joseph-Ellaway Joseph-Ellaway commented May 26, 2026

Copy link
Copy Markdown
Member

Adds model and parser to create a new interface_details.json file. A requirement for front-end download feature and simplifies all the cross-referencing logic in the FE

Copilot AI review requested due to automatic review settings May 26, 2026 12:22
@Joseph-Ellaway Joseph-Ellaway self-assigned this May 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 PostProcessInterfaceDetailsList to compile interface + component data into a single interface_details.json output.
  • 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.

Comment thread pisa_utils/post_process_parsers.py Outdated
Comment thread pisa_utils/post_process_parsers.py
Comment thread pisa_utils/post_process_parsers.py
Comment thread pisa_utils/post_process_parsers.py
Comment thread pisa_utils/post_process_parsers.py
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI and others added 2 commits May 26, 2026 14:16
…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>
@Joseph-Ellaway
Joseph-Ellaway requested a review from mihaitodor May 26, 2026 13:25

@mihaitodor mihaitodor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one small nit

Comment thread pisa_utils/post_process_parsers.py
@Joseph-Ellaway

Copy link
Copy Markdown
Member Author

LGTM, just one small nit

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.

@Joseph-Ellaway

Copy link
Copy Markdown
Member Author

@mihaitodor Tests are now added. Let me know if you want to give them a check

@mihaitodor mihaitodor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@Joseph-Ellaway
Joseph-Ellaway merged commit c2fc18a into main Jun 1, 2026
8 checks passed
@Joseph-Ellaway
Joseph-Ellaway deleted the PDBE-8507-interface-table-data-only branch June 1, 2026 14:52
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.

4 participants