Commit Graph

34 Commits

Author SHA1 Message Date
Richard Gowers
1dd5d7eab6 update LomapAtomMapper default settings to established best practices (#730)
* update LomapAtomMapper default settings to established best practices

* fixup tests for relative_alchemical_network_planner following lomap default change

make these tests use the legacy default settings for Lomap, they're just smoke testing and the actual mappings don't matter

* fixup regression tests for command line plan-rbfe

these are different now that the lomap defaults have been changed for 1.0

---------

Co-authored-by: Mike Henry <11765982+mikemhenry@users.noreply.github.com>
2024-03-26 19:49:35 -07:00
richard gowers
939f1abc93 docs: fix indentation on example yaml section 2024-02-22 13:43:05 +00:00
Richard Gowers
65ad6eaee5 docs: start better documenting CLI yaml possibilities 2024-02-22 13:05:57 +00:00
Benjamin Ries
7d40a633e4 Kartograf integration (#249)
* preparing openFE for wally integration

* name n refactor

* improving import managment.

* fixing network changes..

* reverting network extraction

* reverting network extraction

* refactor

* adding license

* refactor name

* removing the layer too much.

* Update environment.yml

* Update kartograf_mapper.py

* Update openfe/setup/__init__.py

Co-authored-by: Mike Henry <11765982+mikemhenry@users.noreply.github.com>

* Update environment.yaml

* Update environment.yml

* Update environment.yaml

* pin kartograf to v1.0.0 and above

* fixup merge mistake in generate_radial_network

* Update environment.yaml

* add kartograf integration to yaml cli

---------

Co-authored-by: Mike Henry <11765982+mikemhenry@users.noreply.github.com>
Co-authored-by: Richard Gowers <richardjgowers@gmail.com>
2023-11-17 18:04:33 +01:00
Richard Gowers
c96cb57163 Adds YAML input to CLI planning tools (#583)
* [skip ci]

draft of yaml format for CI

* adds yaml reader for cli options input

fixes #580

* change plan_rXfe_network_main functions to expect list of mappers

* move settings yaml parsing to be parameter

* add YAML_OPTIONS as parameter

* add YAML_OPTIONS to plan_rbfe_network

currently does nothing

* cli: add interpretation of settings yaml

* cli: enable settings yaml reading in plan_rbfe_network

* cli: some extra documentation on load_yaml

* cli: fix tests to account for normalisation

* cli: add test for custom rbfe yaml usage

* cli: update plan_rhfe to allow yaml options

* cli: use v1/2 compatible Pydantic

* cli: fixup pydantic v1/2 compat

* remove draft yaml idea

* cli:  centralise parsing of yaml options and defaults

* add pyyaml to deps

---------

Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
2023-11-17 10:56:09 +00:00
richard gowers
0c9703f086 use -C for cofactors input
allow multiple cofactor files
2023-06-22 13:00:32 +01:00
richard gowers
be3b512364 add COFACTORS to cli parameters 2023-06-22 13:00:32 +01:00
David W.H. Swenson
98f7aee1f1 Merge branch 'main' into cli-moldir-cleanup 2023-05-03 14:51:14 -05:00
David W.H. Swenson
2ede42a09a add test for multimol SDF 2023-05-02 19:29:54 -05:00
David W.H. Swenson
76ab2af747 finish molecules parameter 2023-05-02 19:03:35 -05:00
David W.H. Swenson
5fd25512b3 partial cleanup of moldir argument 2023-05-01 09:35:34 -05:00
David W.H. Swenson
1743cfe8a9 Remove openfe import to make help 2023-04-29 08:15:21 +01:00
richard gowers
8c3e32b220 cli: allow mol-dir command to unpack multi mol sdf files 2023-04-04 08:58:22 +01:00
richard gowers
76ea903f17 cli: use -M for mol-dir parameter
avoids conflict with -m option
2023-04-04 08:58:22 +01:00
richard gowers
72e4a7b36c cli: nest rdkit import inside functions
improves cli import speed (responsiveness for help queries)
2023-04-04 08:58:22 +01:00
riesben
cc4f53b006 adding a little nicer desc 2023-04-04 08:58:22 +01:00
riesben
0a211f7f07 updates on cli from @swensons feedback. 2023-04-04 08:58:22 +01:00
bries
a80bd8ce15 cli Doctsrings 2023-04-04 08:58:22 +01:00
bries
56b3143a3f git fixing cli tests 2023-04-04 08:58:22 +01:00
bries
67e43327ee adding cli test, only need to fix one last 2023-04-04 08:58:22 +01:00
bries
8fe515596e correcting params 2023-04-04 08:58:22 +01:00
riesben
9e713088da rhfe and rbfe planner running first time 2023-04-04 08:58:22 +01:00
riesben
c8fd779cd5 minor changes, temporary forbid element changes - to be removed 2023-04-04 08:58:22 +01:00
riesben
880bd37515 fireup cli tool :) 2023-04-04 08:58:22 +01:00
riesben
3d290673d1 fireup cli tool :) 2023-04-04 08:58:22 +01:00
bries
4a470e2e47 adding proteinparam 2023-04-04 08:58:22 +01:00
bries
e33b8dfc06 improving the cmd tool 2023-04-04 08:58:22 +01:00
richard
d67350ea37 openfecli fixups following refactor 2023-02-06 10:00:43 +00:00
David W.H. Swenson
f06078268a Error if JSON output file already exists 2022-10-24 14:10:46 -05:00
Richard Gowers
320efd3ddd Gufe transition (#113)
* use gufe.SmallMoleculeComponent in place of LigandMolecule

* thought this would fix the serialization test but it doesn't :(

* fix network serialization

Co-authored-by: David W.H. Swenson <david.swenson@omsf.io>
2022-03-31 21:10:36 +01:00
Richard Gowers
44d3c7bc53 Class renames (#77)
* API renames

To try thinking bigger and be more future proof, label everything currently designed for Ligands as for ligands. i.e.

- Molecule -> LigandMolecule
- AtomMapper -> LigandAtomMapper
- AtomMapping -> LigandAtomMapping
- Network -> LigandNetwork

* fixup

* revert change to Network name

* fixup fixtures to use AddHs

* update pep8 and mypy

* missed one

Co-authored-by: IAlibay <ialibay@mdanalysis.org>
Co-authored-by: David W.H. Swenson <david.swenson@omsf.io>
2022-03-23 10:41:20 +00:00
David W.H. Swenson
c8a9cf1465 Combine visualization with CLI (#72)
Co-authored-by: richard <richard@nextmovesoftware.com>
2022-03-01 15:07:10 +00:00
David W.H. Swenson
6b30e7e475 Add support for CLI --mol to load SDF (#67) 2022-02-28 23:14:17 +00:00
David W.H. Swenson
41068e0185 CLI for AtomMapping (#57)
* Initial skeleton for the CLI

Currently requires the OPS CLI to be installed as well; next steps:

1. Add parameter core classes to infrastructure
2. Fully separate infrastructure into its own package

* switch to using plugcli

* tests for CLI

* helps if you add the tests...

* pep8 and deps cleanup

* add test_plugins

* Start of CLI atommapping report

* Add tests for parameters

* Almost-working atommapping command

* add hack to work-around lomap issue

* fix test

* pep8; docstrings; add header comments

* Add tests for commands/atommapping

* docstrings

* add init to command to stop circular import error

* remove init and it still works?

Co-authored-by: richard <richard@nextmovesoftware.com>
2022-02-23 16:43:01 +00:00