Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to read .mol ​​files to calculate molecular descriptors using Mordred? #97

Open
lsvalenciac opened this issue Apr 22, 2021 · 1 comment

Comments

@lsvalenciac
Copy link

lsvalenciac commented Apr 22, 2021

Description

Hello everybody,

I am currently working on a program that uses Mordred to calculate molecular descriptors. To draw the chemical structures I am using Gabedit and exporting the coordinates of the atoms as .mol ​​files

However, when I try to read the mol file created using the Colab -Python 3.0 notebook, I get error codes for some descriptors, for example:

'DetourIndex': module 'networkx' has no attribute 'biconnected_component_subgraphs'
invalid value encountered in true_divide (Mor02)
'MDEN-13': float division by zero (MDEN-13)

The code I am using is:

calc = Calculator(descriptors, ignore_3D=True)
mol=Chem.MolFromMolFile("M001.mol")
Des = calc(mol)

So can anyone help me with how to read .mol ​​file formats correctly?

Sincerely,
Laura

```
@JacksonBurns
Copy link

This is related to #84 and #80 and should be resolved by PR #90 but this repository is not being maintained apparently.

If you do pip install 'networkx==2.1.0' --force-reinstall it might resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants