Skip to content

Conversation

@RiesBen
Copy link
Contributor

@RiesBen RiesBen commented Sep 3, 2024

This PR is integrating Konnektor to openFE which will offer in the future a default parallelization for all Network building and more different network tools.
In this PR there is one paradigm change currently present, leading to only being able to pass one Atom mapper to the functions.

Checklist

Developers certificate of origin

@pep8speaks
Copy link

pep8speaks commented Sep 3, 2024

Hello @RiesBen! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-09-18 21:06:49 UTC

@RiesBen RiesBen linked an issue Sep 11, 2024 that may be closed by this pull request
4 tasks
@RiesBen RiesBen added enhancement New feature or request networkplanning labels Sep 18, 2024
@RiesBen
Copy link
Contributor Author

RiesBen commented Oct 22, 2024

This PR should be ready for review to merge after this merge happened:
OpenFreeEnergy/konnektor#84

need to look into further other unit test failures.

@RiesBen RiesBen changed the title [WIP] - Konnektor integration Konnektor integration Oct 22, 2024
@jameseastwood
Copy link
Contributor

Please discuss with @atravitz and @hannahbaumann as part of the Konnektor handover plans.

@jameseastwood
Copy link
Contributor

Needs follow-up discussion in a meeting planned for Oct. 28

Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

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

Mostly blocking on API breaks - I agree that the name change may make sense in some cases, but these are very much user facing methods and we cannot break the API for 1.x, especially without some kind of deprecation cycle.

@RiesBen
Copy link
Contributor Author

RiesBen commented Oct 29, 2024

I went further through the current CI problems and hope I caught all problems for this PR (@atravitz):

  • *unreachable unit tests: there a error messages missing. -> We need to check why this error is not appearing. This should be thrown at the Konnektor level.
  • generate maximal network: the unitest behavior expects each edge direction leading to 56 edges. I assume it is either due to directionality of edges or number of possible mappings? However, Konnektor considers edges as non-directed at the current time point and allows only on possible mapper solution == one edge. Therefore it returns 28 edges. Other approaches might lead to problems with the graph algorithms. -> I would propose to adjust the edge number to 28. After verifying the behavior reason.
  • redundant mst: generates one edge to less then expected? (expected 14 (2*(n-1)), got 13) -> need to look into why this is.
  • explicit networks: The problem here is image you get a list of 8 ligands and 2 defined edges. Currently only the connected part is returned as a ligand network, so two edges with 3 nodes. That clashes with the current unit tests, expecting 3 edges and 8 nodes. This translates to the expectation of getting back a disconnected network as a default. I'm not sure why here it was allowed to generate disconnected networks. -> I would propose to throw an error in these cases in order to avoid user confusion.

@atravitz atravitz force-pushed the KonnektorIntegration branch 3 times, most recently from 1205c63 to 46986af Compare November 6, 2024 20:01
@atravitz atravitz force-pushed the KonnektorIntegration branch from 24a7abd to 6d3e59a Compare November 15, 2024 17:46
Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

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

partial review

@github-actions
Copy link

github-actions bot commented Dec 9, 2024

🚨 API breaking changes detected! 🚨

@atravitz atravitz force-pushed the KonnektorIntegration branch from 96de81b to 39361c5 Compare January 8, 2025 23:01
@atravitz atravitz requested a review from IAlibay June 10, 2025 22:27
@codecov
Copy link

codecov bot commented Jun 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.47%. Comparing base (e369a20) to head (a3a5888).
⚠️ Report is 234 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #927      +/-   ##
==========================================
- Coverage   94.66%   92.47%   -2.20%     
==========================================
  Files         143      143              
  Lines       11012    10962      -50     
==========================================
- Hits        10425    10137     -288     
- Misses        587      825     +238     
Flag Coverage Δ
fast-tests 92.47% <100.00%> (?)
slow-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@atravitz atravitz requested review from atravitz and removed request for atravitz June 11, 2025 16:40
@atravitz atravitz added this to the v1.5.0 milestone Jun 12, 2025
Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

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

Overall lgtm, couple of questions - mostly raise issues on todos if they don't exist

@atravitz
Copy link
Contributor

atravitz commented Jun 17, 2025

package install tests happening here: https://github.com/OpenFreeEnergy/openfe/actions/runs/15714814779/job/44281799333

update: and have passed! 🥳

@@ -0,0 +1,24 @@
**Added:**

* Added optional ``progress`` (whether to show a progress bar) and ``n_processes`` (number of parallel processes to use when generating the network) arguments for network planners.
Copy link
Member

Choose a reason for hiding this comment

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

What's the behaviour when we use the CLI?

Copy link
Contributor

@atravitz atravitz Jun 17, 2025

Choose a reason for hiding this comment

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

CLI uses the default, which hasn't changed at all (n_process=1 and progress=True, except radial network, which didn't have a progress option before.

I updated so hopefully it's clearer now.

@github-actions
Copy link

No API break detected ✅

@atravitz atravitz merged commit a3a7d5f into main Jun 17, 2025
12 checks passed
@atravitz atravitz deleted the KonnektorIntegration branch June 17, 2025 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants