Open zackmawaldi opened 3 months ago
I concur. We should always aim to have a dead-simple entry point while supporting options for more complex requirements.
John Irwin UCSF Pharmaceutical Chemistry http://irwinlab.compbio.ucsf.edu
On Wed, Jun 12, 2024 at 6:11 PM zack @.***> wrote:
The goal here is to make dockopt less intimidating to use via a simplified config file option. This came about from a discussion with Brendan Hall during hackathon we had last week.
The main differences form current branch is that: When you run pydock3 dockopt - new, you get a new file: simple_dockopt_config.yaml. This file will be used as an effective default config file. User can ask for --advanced_mode=True in pydock3 dockopt - run, which would run dockopt as it is run currently.
The new simple mode does:
- When dockopt is run in simple mode: pydock3 dockopt - run, dockopt loads both simple and default config files, and replaces any shared values with simple values.
- If pydock3 dockopt - run --advanced_mode=True, then original behavior is maintained (load the original config file)
Some modifications to default dropped config file was made, which made default config be only 1 step. This is because since for 99% of dockopt jobs, there is no need for more than one step to avoid overfitting.
Documentation is written on the new documentation place of read-the-dock-docs https://github.com/bwhall61/read-the-dock-docs made by Brendan. There should be a pull request there soon.
Note on testing: I did some testing and it seems to work as intended. I highly recommend someone else tests my branch to make sure it's working! I have it installed and working on gimel @ ~/zack/pydock_testing/pydock3/
Thanks! Lmk if anyone has any questions.
You can view, comment on, or merge this pull request online at:
https://github.com/docking-org/pydock3/pull/35 Commit Summary
- 7599c17 https://github.com/docking-org/pydock3/pull/35/commits/7599c17f1d61378b6d5910f19662f7fcff82847e Changed default config
- ae74ba2 https://github.com/docking-org/pydock3/pull/35/commits/ae74ba2213f95373d39887c457234c7f7b106fd2 Added a simple config version + made it be written when starting a job folder
- 4d2cf46 https://github.com/docking-org/pydock3/pull/35/commits/4d2cf4622f62305e7dc6e391f62142a6ba078a35 Added simple config schema and modified default configs
- 9cee9ff https://github.com/docking-org/pydock3/pull/35/commits/9cee9ff498d4596233bedcd54a41d8a2e6bb2010 Simple config integration into the code
File Changes
(5 files https://github.com/docking-org/pydock3/pull/35/files)
- M pydock3/dockopt/config.py https://github.com/docking-org/pydock3/pull/35/files#diff-80b7f9b1b3bea43322db11b1d3fdc6003e32edf49d2584fbb5751aecb262487f (44)
- M pydock3/dockopt/default_dockopt_config.yaml https://github.com/docking-org/pydock3/pull/35/files#diff-d92218089f20359c676b11c4c278ec822be7739c31e566968ad17cf13f5bfc86 (4)
- A pydock3/dockopt/default_simple_dockopt_config.yaml https://github.com/docking-org/pydock3/pull/35/files#diff-a4d94dc1a770cc770ce4e59295233f34cdd366ca07edb7600ff8833d4bcd4f0a (23)
- M pydock3/dockopt/dockopt.py https://github.com/docking-org/pydock3/pull/35/files#diff-dd3275558a565d13cd728eed7f86b1279f8cf8049fd386394efab9d2da4318d4 (23)
- A pydock3/dockopt/dockopt_simple_config_schema.yaml https://github.com/docking-org/pydock3/pull/35/files#diff-fdb2d765da7dc9994a82749fecb37964a4792005066eb05417b2f8a47e413bbc (26)
Patch Links:
- https://github.com/docking-org/pydock3/pull/35.patch
- https://github.com/docking-org/pydock3/pull/35.diff
— Reply to this email directly, view it on GitHub https://github.com/docking-org/pydock3/pull/35, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIR2H2P5736FPLQU5U5663ZHDWUDAVCNFSM6AAAAABJHMH7FWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DSOJSHE4TEMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
The goal here is to make dockopt less intimidating to use via a simplified config file option. This came about from a discussion with Brendan Hall during hackathon we had last week.
The main differences form current branch is that: When you run
pydock3 dockopt - new
, you get a new file:simple_dockopt_config.yaml
. This file will be used as an effective default config file. User can ask for--advanced_mode=True
inpydock3 dockopt - run
, which would run dockopt as it is run currently.The new simple mode does:
pydock3 dockopt - run
, dockopt loads both simple and default config files, and replaces any shared values with simple values.pydock3 dockopt - run --advanced_mode=True
, then original behavior is maintained (load the original config file)Some modifications to default dropped config file was made, which made default config be only 1 step. This is because since for 99% of dockopt jobs, there is no need for more than one step to avoid overfitting.
Documentation is written on the new documentation place of read-the-dock-docs made by Brendan. There should be a pull request there soon.
Note on testing: I did some testing and it seems to work as intended. I highly recommend someone else tests my branch to make sure it's working! I have it installed and working on gimel @
~/zack/pydock_testing/pydock3/
Thanks! Lmk if anyone has any questions.