SetOwningMol #3766
-
Hello, I have a couple of function definitions in a wider class that I'm writing in python. For one function I embed the molecules with n number of conformers, I then want to make sure that these conformers remain with the parsed molecule after the function call. I thought this was done by reference under the hood so I wouldn't have to specifically set the conformers (see code snippet 1. below). However, this doesn't see to be the case. I tried to parse back the conformers and then do a setOwningMol but I get an error saying that the conformer class has no attribute setOwningMol or SetOwningMol (see snippet 2.) Any ideas on how to proceed would be great. snippet 1:
snippet 2:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The function you are looking for is AddConformer
|
Beta Was this translation helpful? Give feedback.
-
@woodg07 I don't really understand what you're trying to do.
If your concern is that adding the conformers in a function may not change the molecule in the calling scope, you don't need to be:
Does that answer the question? If not, can you please clarify what you're trying to do? |
Beta Was this translation helpful? Give feedback.
@woodg07 I don't really understand what you're trying to do.
AllChem.EmbedMultipleConfs
adds conformations to a molecule; you don't need to do any additional work to add the conformers to the molecule:If your concern is that adding the conformers in a function may not change the molecule in the calling scope, you don't need to be:
Does that answer…