Can I remove the (1) that results after using rdkit.Chem.PandasTools.WriteSDF so it works with Maestro? #5465
-
Hi, When I use The properties are written like this:
Which is perfectly fine for most properties. However, for reasons I don't understand, Maestro does not like the '(1)' that follow for the property that controls subgroups. If I use the following code:
I get the following ouput if I open test.sdf in a text editor
For some reason, Maestro does not like this '(1)' notation and won't add the subgroups correctly in the GUI. If I open a text editor and manually delete the '(1)' like such
It works. Is there a way I can remove this '(1)' from ever being written to the output? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@DKchemistry Simplest way would be to strip the number with a regex:
|
Beta Was this translation helpful? Give feedback.
-
Hi @DKchemistry, I'd like to solve this issue on the other end of things, in Maestro. Would you be able to share an example file or code snippet that can be used to reproduce the issue, so we can file a bug report with Maestro? |
Beta Was this translation helpful? Give feedback.
@DKchemistry Simplest way would be to strip the number with a regex: