-
Notifications
You must be signed in to change notification settings - Fork 42
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
Remove restraints CLIs #959
Comments
I am not sure of that one.
What do you think about this solution ? |
Sounds a reasonable solution to me, but will it make things simpler?
The only real things that need to change are our tutorials.
|
"keeping the CLI" means keeping the API - the way people interact with the code, meaning there will need to be an adapter between the two applications. A lot of extra work for little benefit I think
Not sure if that's what you mean, but it would be possible to expose the
yes, remove and/or move the relevant ones (that are refered in other parts of the code) to some lib
haddock is quickly becoming a software suite rather than a simple collection of scripts, changes like these are bound to happen at some point. It's best if we tackle these "big changes" soon rather than later. haddock3 is still beta/experimental and not released, so this is the best time to make changes 🤓 this here is the same case as the haddock-runner - #960
Not realy, simply make it clear in the tutorials that users need to have the |
The idea was that the |
The haddock3-webapp uses haddock.clis.restraints.webservice module as a webservice to perform restraints calculations and preprocess pdb files using If the |
Good point @sverhoeven - my plan is to use Then we can also remove
alias haddock3-restraints="haddock-restraints" ? |
I only mean here changing the tutorials to use haddock-restraints instead of the CLI :-)
… On 10 Sep 2024, at 12:17, Rodrigo Vargas Honorato ***@***.***> wrote:
The only real things that need to change are our tutorials.
Not realy, simply make it clear in the tutorials that users need to have the beta5 version of haddock3 to run it, and add instruction on how to get this version. I don't see a reson to make it backwards compatible.
|
WebAssembly instead of webservice would also work. Would need a nice js wrapper for the WebAssembly though. |
I will focus future developments in haddock-restraints instead of here. However I won't tackle this removal since it would also require a big shift in the development process which is not possible currently. |
Desired feature/enhancement
Remove all the restraints-related CLIs from the codebase
Motivation
The current implementations of restraint generation routines are a port of an old and limited routines extracted from the web interface ->
web/app/haddock24/PDBHandler
.Whilist functional, they contribute to the dependencies (freesasa and biopython) and have a limited set of features and are of course subject to code smell and python deprecation.
All functionalities included here and more, have been implemented elsewehere -> https://github.com/haddocking/haddock-restraints. This other implementation can be served as a binary, to multiple architechtures, not requiring any setup. It also has a user-friendly documentation https://bonvinlab.org/haddock-restraints.
Description
Remove all restraint-related CLI interfaces in haddock3 to remove code duplication and mulitple endpoints for the same functionality. For convenience the binary could be shipped here in
src/bin/restraints
Additional context
Despite being a beta version, there are already several tutorials for haddock3 that use this command line, they need to also be updated:
This will also impact
src/haddock/clis/restraints/webservice.py
The text was updated successfully, but these errors were encountered: