Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExplicitNetworkGenerator missing unconnected nodes #92

Open
atravitz opened this issue Nov 6, 2024 · 2 comments
Open

ExplicitNetworkGenerator missing unconnected nodes #92

atravitz opened this issue Nov 6, 2024 · 2 comments

Comments

@atravitz
Copy link
Contributor

atravitz commented Nov 6, 2024

Describe the bug

The method ExplicitNetworkGenerator.generate_network_from_names(components, names) only includes nodes (components) that are connected by edges. i.e., no unconnected/floating nodes are included. This is in contrast to the current openfe network generating behavior.

I noticed this when unit tests for this openfe PR failed, because ligand_network_planning.generate_network_from_names() is being switched to use konnektor's ExplicitNetworkGenerator implementation.

To Reproduce

This Konnektor unit test demonstrates this.

Expected behavior

@IAlibay I believe we should change the Konnektor implementation to match the current openfe behavior. However, I'd like to know if this was intentionally done by @RiesBen as part of Konnektor's design.

@RiesBen
Copy link
Contributor

RiesBen commented Nov 7, 2024

@atravitz
hi, jap I wanted that behavior, as I wanted konnektor to not return disconnected networks by default. But maybe simply throwing an error would have been wiser?

@IAlibay
Copy link
Member

IAlibay commented Nov 7, 2024

I think this needs discussion, but disconnected networks is something we will likely want under certain circumstances. I remember the original behaviour was somewhat of an intentional design decision (although I had asked that it threw at least an error to let folks know the network was disconnected).

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

No branches or pull requests

3 participants