Bioinformatics Asked on July 21, 2021
What is the best python tool to convert a SDF file to a structured data frame (pandas.DataFrame). Similar to Molconvert from ChemAxon? SDF can have different datafields for each compound which I would like to have in a dataframe. The 2D or 3D structures can be disregarded.
It is easily done with RDKit:
from rdkit.Chem import PandasTools
fn = '/mypath/dataset.sdf'
df = PandasTools.LoadSDF(fn, embedProps=True, molColName=None, smilesName='smiles')
Correct answer by Sören on July 21, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP