-
Notifications
You must be signed in to change notification settings - Fork 78
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
Include bond order in TopologyGraph #461
base: main
Are you sure you want to change the base?
Conversation
`Foyer` currently does not understand bond order in its `TopologyGraph` representation and in its SMARTS grammar aside from number of connected neighbors [C;X4], for example. This PR adds bond order as an attribute when adding bonds in the `TopologyGraph`, accepted options currently are: "1" : single bonds "2" : double bonds "3" : triple bonds "ar" : aromatic bonds "am" : amide bonds "un": unknown, "du": dummy "nc": not connected The last 3 bond types ("un", "du", and "nc") are subject to change and may not be here in the final iteration of this PR. Support has been added when converting parmed structures, openff topologies, as well as GMSO topologies.
@@ -183,11 +203,22 @@ def from_openff_topology(cls, openff_topology): | |||
element=element, | |||
) | |||
|
|||
bond_type_dict = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be better implemented as an Enum
.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #461 +/- ##
===========================================
- Coverage 69.55% 48.47% -21.09%
===========================================
Files 16 17 +1
Lines 1662 1863 +201
===========================================
- Hits 1156 903 -253
- Misses 506 960 +454 |
PR Summary:
Foyer
currently does not understand bond order in itsTopologyGraph
representation and in its SMARTS grammar aside from number of connected
neighbors [C;X4], for example.
This PR adds bond order as an attribute when adding bonds in the
TopologyGraph
, accepted options currently are:"1" : single bonds
"2" : double bonds
"3" : triple bonds
"ar" : aromatic bonds
"am" : amide bonds
"un": unknown,
"du": dummy
"nc": not connected
The last 3 bond types ("un", "du", and "nc") are subject to change and
may not be here in the final iteration of this PR.
Support has been added when converting parmed structures, openff
topologies, as well as GMSO topologies.
PR Checklist