Hi Nikolas,

I had a first look at the PandasTools package: very cool! I think this is going to be useful for many rdkit users. I'm looking forward to using it in the future. Thanks for sharing this module.

I'm having troubles to see the molecule depictions in the ipython notebook though (both in tables and by just printing out a single molecule).

This code in a ipython notebook

from rdkit import Chem
from rdkit.Chem import PandasTools
m=Chem.MolFromSmiles('N1CCNCC1')
print m

gives me

        <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB 
...

a very long string with the base64 encoding of the image, but not the image itself. Plotting from matplotlib works fine. Did I forget to import something, or could it be a browser issue? I am using centOS 6 and Firefox.

Thanks in advance.

Best,
Markus


On 04/19/2013 11:56 AM, Nikolas Fechner wrote:
Dear all,
We developed a new module ( rdkit.Chem.PandasTools.py ) that allows for using RDKit molecule objects directly in pandas dataframes. Pandas (http://pandas.pydata.org/) is a python library that offers table-like datacontainers, which are incredibly useful for anything related to data mining. Moreover, it integrates nicely with the ipython notebook producing rendered HTML tables for the dataframes. The RDKit integration allows to have molecule-type columns and functionality to perform substructure-based row filtering directly on the pandas table. Additionally, if a dataframe is exported as HTML or shown within an ipython notebook, the molecules in the table are rendered as 2D structures. The new module is available in the current SF trunk and contains a doctest header that provides examples of how to use it. I hope some of you find that interesting. As always, bug reports, comments, ideas... are very much appreciated.
Best,
Nikolas


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis&  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter


_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to