Re: [Rdkit-discuss] two molecules in mol object

2021-03-10 Thread Jason Biggs
Have you looked at GetMolFrags?

if you define
>m=MolFromSmiles('CCC.CC')

then

>rdmolops.GetMolFrags(m,asMols=True)

returns two molecules, keeping any coordinates or non-computed properties
in the process.

Jason Biggs



On Wed, Mar 10, 2021 at 9:42 AM Shani Zev  wrote:

> Hi all,
> I have mol object that contains two molecules, I want to delete one of the
> molecules but without going through smiles (if I will go through smiles it
> could be easy but I need to do it directly for the mol object.)
> There is a way to get to each molecule while they are in the same mol
> object?
> just for a simple example:
> [image: image.png]
> I finally want to write from mol object to coordinates file and when I
> have it together it overlapping.
> thank you very much,
> Shani
> ___
> Rdkit-discuss mailing list
> Rdkit-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>
___
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss


[Rdkit-discuss] two molecules in mol object

2021-03-10 Thread Shani Zev
Hi all,
I have mol object that contains two molecules, I want to delete one of the
molecules but without going through smiles (if I will go through smiles it
could be easy but I need to do it directly for the mol object.)
There is a way to get to each molecule while they are in the same mol
object?
just for a simple example:
[image: image.png]
I finally want to write from mol object to coordinates file and when I have
it together it overlapping.
thank you very much,
Shani
___
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss