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

graph_from_chembl #88

Open
wants to merge 1 commit into
base: bliss-canonicalization
Choose a base branch
from
Open

Conversation

schatzsc
Copy link
Collaborator

@schatzsc schatzsc commented Oct 16, 2022

The graph_from_chembl() routine generates a NetworkX graph by directly querying ChEMBL for a particular ID via a v2000 molfile which is returned from the server.

Requires network connection

So far tested on a couple of hundred ChEMBL entries

Needs more checks for input validity:

  • Currently only checks if ID > 0 but not if ID is within upper limit
  • Assumes that bonds and atoms read form a valid graph and all required node attributes are included
  • Does not assign element_color according to Jmol definitions so far
  • Quite a number of invalid entries returned, since ChEMBL ID numbers are also assigned to organisms, protein, and the like which do not have an associated molfile
  • Molfile returned does not contain hydrogens by default

The graph_from_chembl() routine generates a NetworkX graph by directly querying ChEMBL for a particular ID via a v2000 molfile which is returned from the server.

Requires network connection

So far tested on a couple of hundred ChEMBL entries

Needs more checks for input validity:

    Currently only checks if ID > 0 but not if ID is within upper limit
    Assumes that bonds and atoms read form a valid graph and all required node attributes are included
    Does not assign element_color according to Jmol definitions so far
    Quite a number of invalid entries returned, since ChEMBL ID numbers are also assigned to organisms, protein, and the like which do not have an associated molfile
@schatzsc
Copy link
Collaborator Author

Here is a short tool which uses graph_from_chembl() to query a couple of hundred ChEMBL entries from the beginning of the database and displays different information, including graphics.

chembl_reader.zip

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

Successfully merging this pull request may close these issues.

2 participants