Re: [Rdkit-discuss] bond length in 2D structure drawing

2016-09-19 Thread Greg Landrum
Hi Axel, It's probably most straightforward to use the function AllChem.TransformMol() to scale the coordinates. Here's an example of applying the function to scale all the coordinates by a factor of 2: In [1]: from rdkit import Chem In [2]: from rdkit.Chem import rdMolTransforms In [5]: from r

Re: [Rdkit-discuss] a SMILES that rdkit cannot read

2016-09-19 Thread 杨弘宾
Thanks. It's really a obvious error.I ran it in jupyter via browser. Both docker/ubuntu and windows were tested and found that jupyter won't give error. Ipython or python in terminal(cmd) would show this error. Why not raise a python error or warning? Hongbin Yang   From: Greg LandrumDate

Re: [Rdkit-discuss] a SMILES that rdkit cannot read

2016-09-19 Thread Curt Fischer
> I ran it in jupyter via browser. Both docker/ubuntu and windows were > tested and found that jupyter won't give error. Ipython or python in > terminal(cmd) would show this error. > > That problem is related to how Jupyter interacts with python kernels. It's not an RDKit issue. If you check the

Re: [Rdkit-discuss] a SMILES that rdkit cannot read

2016-09-19 Thread Greg Landrum
What Curt says is true if you just start the jupyter notebook and import the RDKit. However, if you also import the Jupyter integration (using "from rdkit.Chem.Draw import IPythonConsole"), then you should also see the C++ error messages and warnings show up in the console: [image: Inline image 1]

Re: [Rdkit-discuss] bond length in 2D structure drawing

2016-09-19 Thread Axel Pahl
Hi Greg, thanks a lot. That is exactly what I was looking for! RDKit rules! Kind regards, Axel On 19.09.2016 09:35, Greg Landrum wrote: Hi Axel, It's probably most straightforward to use the function AllChem.TransformMol() to scale the coordinates. Here's an example of applying the functio

[Rdkit-discuss] rearomatize only benzene rigns after kekulize + clearAromaticFlags

2016-09-19 Thread Guillaume GODIN
Dear All, I would like to kekulize the molecule, but only conserve the aromaticity knowledge of C6 (benzene like) type rings So what to need to do after this command? Chem.rdmolops.Kekulize(mol, clearAromaticFlags=True) Should I need to store benzene like location before the Kekulize proc