Pass to restrain_atoms a list of atom indices
See original GitHub issueI came across a case where creating a DSL selection string for the atoms I need to restrain is quite a pain. I’m thinking of making forcefactories.restrain_atoms()
a little more flexible by changing its signature from
def restrain_atoms(..., topology, atoms_dsl,...):
to
def restrain_atoms(..., restrained_atoms, ...):
where restrained_atoms
is a simple list of atom indices. Any objections to this?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Atom Selection — MDTraj 1.9.4 documentation
In this example, we'll go over the basics of atom and reside selection in MDTraj. ... indexed atom index print('Where is the fifth...
Read more >Atom selection language - MDAnalysis User Guide
AtomGroups can be created by selecting atoms using the MDAnalysis atom ... returns an AtomGroup with atoms sorted according to their index in...
Read more >atomselect
list : Return a list of all undeleted atom selections. ... list: Return a list of the atom indices in the selection (BTW,...
Read more >3. Lists - Q for Mortals
These are the lists of atoms of homogenous type, called simple lists – known in ... Instead, we can ask for a list...
Read more >The Phenix atom selection syntax
Atoms to leave out for omit map calculation; Subset of atoms to modify properties for (in PDBTools); Harmonically restrain atoms during refinement. All...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Better. I really think having both functionalities, or at bare minimum a DSL processing is much better from a user standpoint than just atom indices.
I like that better (I hate not having proper overloading in Python)! Although, I’d do only 2 methods