Skip to content

Error module 'rdkit.Chem' has no attribute 'MolFromSimles' #10

@nghiencuuthuoc

Description

@nghiencuuthuoc

With rdkit 2021.03.4
Error in file environ.py,

385     data = df.drop(test.index)
386 

--> 387 test_x = utils.Predictor.calc_fp([Chem.MolFromSimles(mol) for mol in test.index])
388 data_x = utils.Predictor.calc_fp([Chem.MolFromSimles(mol) for mol in data.index])
389 out = 'output/single/%s_%s_%s' % (alg, 'REG' if reg else 'CLS', feat)

AttributeError: module 'rdkit.Chem' has no attribute 'MolFromSimles'

Change code "Chem.MolFromSimles" to "AllChem.MolFromSmiles"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions