Coder Social home page Coder Social logo

pubchem's Introduction

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

pubchem's People

Contributors

cthoyt avatar ozlemmuslu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pubchem's Issues

sqlalchemy library changed - import statement throws error

Dear creators of pubchem,
I tried to run your code, and it throws the following error:

_/opt/conda/lib/python3.9/site-packages/bio2bel/manager/abstract_manager.py in
12 import click
13 from more_click import verbose_option
---> 14 from sqlalchemy.ext.declarative.api import DeclarativeMeta
15
16 from .cli_manager import CliMixin

ModuleNotFoundError: No module named 'sqlalchemy.ext.declarative.api'_

It would appear that the structure of the sqlalchemy library has changed in the meantime, which messed up your import statement:

https://docs.sqlalchemy.org/en/14/orm/mapping_api.html#sqlalchemy.orm.declarative_base

Changed in version 1.4: The declarative_base() function is now a specialization of the more generic registry class. The function also moves to the sqlalchemy.orm package from the declarative.ext package.

It would be great if you could have a look.
Thanks a lot!
Jesko

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.