Closed skearnes closed 3 years ago
Couple questions for thoughts on the dative bond message helpers:
Looking to be consistent with naming, would something like get_dative_bonds
be appropriate?
Would it be preferable to have this operate directly on SMILES, where it could be used in preprocessing or on a Compound
's SMILES Identifier
, or should the input be a Compound
message?
Would it be preferable to have the check functions is/has_transition_metal
embedded in get_dative_bonds
, or have them be accessible as higher level functions?
@skearnes @connorcoley
Couple questions for thoughts on the dative bond message helpers:
- Looking to be consistent with naming, would something like
get_dative_bonds
be appropriate?
I think set_dative_bonds
is fine; this is actually changing the content so it's not really a "getter".
- Would it be preferable to have this operate directly on SMILES, where it could be used in preprocessing or on a
Compound
's SMILESIdentifier
, or should the input be aCompound
message?
I think operating on an RDKit Mol like you have now is fine. Then it can come from various identifiers via mol_from_compound
.
- Would it be preferable to have the check functions
is/has_transition_metal
embedded inget_dative_bonds
, or have them be accessible as higher level functions?
Separate free functions, please. Makes it easier to test :)
Sounds great, thanks!
Closed by #501
This would be good to add to e.g.
message_helpers.py
in another PR._Originally posted by @skearnes in https://github.com/Open-Reaction-Database/ord-schema/pull/477#discussion_r508085524_