Re: [Rdkit-discuss] edge matrix

2018-01-17 Thread Marta Stępniewska-Dziubińska via Rdkit-discuss
Hi Mario, What exactly do you mean by 'edge matrix'? Are you sure you provided a correct example? If you want to get an adjacency matrix of a molecular graph you can iterate over bonds to get it: from rdkit.Chem import MolFromSmiles import numpy as np m = MolFromSmiles('CC(C)CC') n =

Re: [Rdkit-discuss] Anaconda3/Jupyter - ModuleNotFoundError: No module named 'rdkit'

2017-10-30 Thread Marta Stępniewska-Dziubińska via Rdkit-discuss
You should install jupyter (and all other packages you need) in the same environment as rdkit. Also, you need to activate the environment in order to use it. Try running the following commands (assuming that you've already created my-rdkit-env): $ source activate my-rdkit-env $ conda install

Re: [Rdkit-discuss] is there an issue with my code or with GetNeighbors function ?

2017-09-14 Thread Marta Stępniewska-Dziubińska via Rdkit-discuss
Dear Guillaume, I'm not sure what your code should do and what behavior you expect. I see that you do not change the value of t when you see a single bond. So maybe you just do not update this value and print and old one? Also, you iterate over bonds of atom's last neighbor (so for H you loop