Webchem
webchem
is a R package to retrieve chemical information from the web.
This package interacts with a suite of web APIs to retrieve chemical
information.
The functions in the package that hit a specific API have a prefix and
suffix separated by an underscore (prefix_suffix()
). They follow the
format of source_functionality
, with the exception of functions that
retrieve database identifiers which follow the format of
get_identifier
. e.g.cs_compinfo
uses ChemSpider to retrieve compound
informations and get_csid()
retrieves ChemSpider IDs.
Fill out the survey!
Do you use chemical information databases in your work? Help us help you by filling out our short survey at https://forms.gle/V7dfGGn73dkesn5L6.
The webchem
survey allows us to learn which databases you use and how
you interact with chemical data. This is extremely valuable information
for us and guides our development efforts. The survey takes about 5
minutes to fill out.
Chemical databases currently accessed by webchem
At least some of the data in the following sources is accesible through
webchem
functions. To learn more about what is available, browse the
documentation
here.
- Chemical Identifier Resolver (CIR)
- ChemSpider (requires an API token)
- PubChem
- Chemical Translation Service (CTS)
- PAN Pesticide Database
- Alan Wood’s Compendium of Pesticide Common Names
- ETOX
- ChemIDplus
- Wikidata
- OPSIN
- Flavornet
- NIST (currently gas chromatography retention indices only)
- ChEBI
- U.S. EPA Substance Registry Service (SRS)
API keys
Some ChemSpider functions require an API key. Please register at RSC (https://developer.rsc.org/) to retrieve an API key.
Installation
Install from CRAN (stable version)
install.packages("webchem")
Install from Github (development version)
install.packages("devtools")
library("devtools")
install_github("ropensci/webchem")
Acknowledgements
Without the fantastic web services webchem
wouldn’t be here.
Therefore, kudos to the web service providers and developers! Please
remember to acknowledge these data resources in your work using
webchem
.
Related Projects
You can find some related packages in the ChemPhys CRAN Task View
If you’re more familiar with Python you should check out Matt
Swains repositories:
ChemSpiPy,
PubChemPy and
CirPy provide similar functionality as
webchem
.
Want to contribute?
Check out our contribution guide here.
Meta
- Please report any issues, bugs or feature requests.
- License: MIT
- Get citation information for
webchem
in R withcitation("webchem")