Comments (5)
As we discussed yesterday, we could also make this more efficient by recoding all forces as CustomForce classes and allowing atom contributions to be turned on one at a time. @pgrinaway would need to preenumerate the order in which atoms (or sets of atoms) should be turned on---not sure how hard this is. A Context parameter would then control how atom contributions are turned on.
Even more interesting could be to also make these additional atomic interactions alchemically switched on between integral values of this context parameter. This would be reasonably straightforward.
from perses.
Thanks!
Preenumeration is actually fairly straightforward--GeometryEngine
v1 (in the attic) does that in an effort to reduce code duplication.
A major advantage (in addition to speedup) that I could imagine from the CustomForce approach is that it might actually be cleaner than the alternative approach.
Even more interesting could be to also make these additional atomic interactions alchemically switched on between integral values of this context parameter.
In this case, can we also get a two for one deal by using the same alchemically-modified system in the geometry proposal as we do in NCMC?
from perses.
In this case, can we also get a two for one deal by using the same alchemically-modified system in the geometry proposal as we do in NCMC?
That was my thinking.
I'm happy to code this up if you want to propose what the API should look like to fit in with the rest of perses
. I have plenty of code I could borrow from to cobble this together.
from perses.
Hm, I'm not sure what the easiest way to do this would be (as I have a lot less experience with manipulating these custom forces than you do), but would giving each new atom a context parameter lambda_idx
be a viable option? This would make the interface for perses
look something like this:
#not sure if we want to use the AlchemicalEliminationEngine idea or something else
alchemical_system = AlchemicalEngine.create_system(unmodified_system, new_atoms, atom_proposal_order)
Then inside the GeometryEngine
:
context = openmm.Context(alchemical_system, integrator, platform)
for atom_idx in atom_proposal_order:
context.setParameter('lambda_%d' % atom_idx, 1.0)
#do geometry stuff
Is achieving something like this reasonable? Or would this require adding a ridiculous amount of CustomForces?
I'm not sure how we'd combine that with the NCMC parts (maybe that would be too confusing with too many global variables), but at least for the geometry bits it would be easy.
from perses.
Done in #114
from perses.
Related Issues (20)
- Integrate new atom mappers HOT 7
- Write initial initial and final structures in subdir
- AtomMapper fails when scaffolds have radicals HOT 1
- Creating legacy 0.10.x branch for longer term support -- main branch will become `gufe` refactor HOT 1
- Make sure we merge latest 0.10 branch before working on 0.11 refactor
- perses with mpi HOT 1
- Duplicate instances of `self._setup_complex_phase()` in relative_setup.py HOT 2
- Make `offline-freq` be the same as `checkpoint_interval` by default HOT 1
- Migrate from PDB to PDBx/mmcif HOT 1
- Protein mutation protocol for alchemiscale HOT 1
- Adapt MPi example with perses at least for protein mutation HOT 1
- Fix potential bug in counterion implementation: get_water_indices()
- Allow user to specify list of atom indices to override default behavior for selecting the REST region
- Support for use of custom force fields (e.g., one generated from openff-bespokefit) HOT 5
- Error with spectator ligands HOT 8
- Allow specification of mapping dictionary in the pipeline
- Update README? HOT 1
- Retrieving exact topology used for an endpoint in a relative transformation HOT 11
- Improved reporting and state detection when passing tautomers as `old_residue`
- IndexError with `_vacdg_history` if there is no vacuum trajectory HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perses.