sorgerlab / indra

INDRA (Integrated Network and Dynamical Reasoning Assembler) is an automated model assembly system interfacing with NLP systems and databases to collect knowledge, and through a process of assembly, produce causal graphs and dynamical models.
http://indra.bio
BSD 2-Clause "Simplified" License
177 stars 68 forks source link

Function to retrieve PubMedIDs for given PubChem CID #1355

Closed samuelbunga closed 2 years ago

samuelbunga commented 2 years ago

This PR consists of a new function that takes PubChem CID as an input and returns back a list of PMIDs corresponding to it.

from indra.databases.pubchem_client import get_pmids 
pmids = get_pmids('22442') # aspirin