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 = m.GetNumAtom
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 jupyt
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 over
3 matches
Mail list logo