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_pubchem() #86

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

Conversation

schatzsc
Copy link
Collaborator

The graph_from_pubchem() routine generates a NetworkX graph by directly querying PubChem for a particular compound ID (CID) without a detour via a molfile

Requires network connection

So far tested on a couple of hundred random-selected PubChem entries

Needs more checks for input validity:

  • Currently only checks if CID > 0 but not if CID 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

The graph_from_pubchem() routine generates a NetworkX graph by directly querying PubChem for a particular compound ID (CID) without a detour via a molfile

Requires network connection

So far tested on a couple of hundred random-selected PubChem entries

Needs more checks for input validity:

- Currently only checks if CID > 0 but not if CID 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
@schatzsc schatzsc assigned schatzsc and JanCBrammer and unassigned schatzsc Oct 15, 2022
@schatzsc
Copy link
Collaborator Author

Here is a short tool which uses graph_from_pubchem() to query a couple of hundred PubChem entries at random and displays different information, including graphics.

pubchem_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