Skip to content

bio2bel/pubchem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3b90470 · May 1, 2019

History

17 Commits
Apr 29, 2018
May 1, 2019
Apr 29, 2018
Apr 29, 2018
Apr 29, 2018
Nov 8, 2017
Nov 27, 2018
Apr 29, 2018
Jun 28, 2018
Apr 29, 2018
Apr 29, 2018
May 8, 2018
Apr 29, 2018
Apr 29, 2018

Repository files navigation

Bio2BEL PubChem Build Status Coverage Status Documentation Status

This repository has multiple goals, most importantly: mapping between MeSH, PubChem, and standard chemical identifiers. Currently, this information is scattered and incredibly difficult to access. First the following resources are available:

Data

  • ftp://ftp.ncbi.nih.gov/pubchem/Compound/Extras/README-Extras
    • Map to MeSH with ftp://ftp.ncbi.nih.gov/pubchem/Compound/Extras/CID-MeSH
    • Map to Substance with ftp://ftp.ncbi.nih.gov/pubchem/Compound/Extras/CID-SID.gz
    • Map to InChI with ftp://ftp.ncbi.nih.gov/pubchem/Compound/Extras/CID-InChI-Key.gz
  • ftp://ftp.ncbi.nih.gov/pubchem/Substance/Extras/README-Extras
    • Map to MeSH with ftp://ftp.ncbi.nih.gov/pubchem/Substance/Extras/SID-MeSH
    • Map to other databases with ftp://ftp.ncbi.nih.gov/pubchem/Substance/Extras/SID-Map.gz

Installation Current version on PyPI Stable Supported Python Versions MIT License

bio2bel_pubchem can be installed easily from PyPI with the following code in your favorite terminal:

$ python3 -m pip install bio2bel_pubchem

or from the latest code on GitHub with:

$ python3 -m pip install git+https://github.com/bio2bel/pubchem.git@master

Setup

PubChem can be downloaded and populated from either the Python REPL or the automatically installed command line utility.

Python REPL

>>> import bio2bel_pubchem
>>> pubchem_manager = bio2bel_pubchem.Manager()
>>> pubchem_manager.populate()

Command Line Utility

bio2bel_pubchem populate