PubChemPy icon indicating copy to clipboard operation
PubChemPy copied to clipboard

How to use this code for generate input file form pubchem

Open debanjansen48 opened this issue 5 years ago • 0 comments

for a Ml model i need to import pubchem data in order to make a data frame. The format id given bellow

Structure Smiles LogP MolWt IC50 value CCCHOCC xxx xxxx xxxx xxxxxx xxx xxxx xxxx

how to do that. I found following codes in your tutorial

from pubchempy import get_compounds, Compound comp = Compound.from_cid(1423) print(comp.isomeric_smiles) CCCCCCCNC1CCCC1CCCCCCC(=O)O comps = get_compounds('Aspirin', 'name') print(comps[0].xlogp)

where i need to provide the structure identifier manually or i need to make a list.

any advice from your end.

debanjansen48 avatar Dec 01 '20 11:12 debanjansen48