Question: drawing chemical from smile 2D/3D
gravatar for Stane
2.2 years ago by
Stane40 wrote:


I have been drawing chemical from smile using python package rdkit and I was wondering if it could be possible to do the same from R as I am using R much more in my work. I played with ChemmineR which seems great but I can't figure out how to make it work fully.

first if I try converting my smile to sdf I get this error 

Error in validObject(.Object) : 
  invalid class “SDFset” object: invalid object for slot "ID" in class "SDFset": got class "NULL", should be or extend class "character"

It seems that installing ChemmineOB solve this problem and the plot function let me see the basic structure of my chemical but then trying to get better figure using the visualize function return the following error : An error occured. Please try again

Finally there is the 3D function generate3DCoords which seems to work but then how to plot it ? because using the plot function is not showing anything useful.








chemminer • 458 views
ADD COMMENTlink modified 2.2 years ago by Thomas Girke1.7k • written 2.2 years ago by Stane40
Answer: drawing chemical from smile 2D/3D
gravatar for Thomas Girke
2.2 years ago by
Thomas Girke1.7k
United States
Thomas Girke1.7k wrote:

The online structure viewing via sdf.visualize() is working again. The server needed a restart. Thanks for letting us know.

Please note, the structure rendering functionalities in ChemmineR and the affiliated online service are for 2D encodings, 3D representations are not expected to look good. If you need 3D support then you may want to consider using a standalone structure rendering tool like Avogadro ( 


ADD COMMENTlink written 2.2 years ago by Thomas Girke1.7k

Thank you Thomas for your help the recommendation about Avogadro !

ADD REPLYlink written 2.2 years ago by Stane40
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 252 users visited in the last hour