-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.Rmd
76 lines (57 loc) · 2.41 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# cactusapi <img src="man/figures/logo.svg" align="right" height="139" />
<!-- badges: start -->
[![R-CMD-check](https://github.com/RaoulWolf/cactusapi/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/RaoulWolf/cactusapi/actions/workflows/R-CMD-check.yaml)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![Codecov test coverage](https://codecov.io/gh/RaoulWolf/cactusapi/branch/master/graph/badge.svg)](https://app.codecov.io/gh/RaoulWolf/cactusapi?branch=master)
<!-- badges: end -->
> A [ZeroPM](https://zeropm.eu/) R package
The goal of the cactusapi package is to provide a minimal and lightweight
interface to the
[CACTUS Chemical Identifier Resolver](https://cactus.nci.nih.gov/chemical/structure)
API services.
The dependency of cactusapi is kept at a bare minimum:
[curl](https://cran.r-project.org/web/packages/curl/index.html) for handling
the API requests.
cactusapi takes a single input and resolves it to either `StdInChi`, `InChI`,
`StdInChIKey`, `InChIKey`, `SMILES`, `Names`, or `IUPAC_Name`.
## Installation
You can install the development version of cccapi from
[GitHub](https://github.com/) with:
``` {r install}
#| eval = FALSE
# install.packages("devtools")
remotes::install_github("ZeroPM-H2020/cactusapi")
```
## Example
This is a basic example which shows you how to get the (standard) InChI
representation of caffeine:
```{r example}
library(cactusapi)
get_representation(
structure_identifier = "caffeine",
representation = "StdInChI"
)
```
## Acknowledgement
This R package was developed by the EnviData initiative at the
[Norwegian Geotechnical Institute (NGI)](https://www.ngi.no/eng) as part of the
project
[ZeroPM: Zero pollution of Persistent, Mobile substances](https://zeropm.eu/).
This project has received funding from the European Union's Horizon 2020
research and innovation programme under grant agreement No 101036756.
---
If you find this package useful and can afford it, please consider making a
donation to a humanitarian non-profit organization, such as
[Sea-Watch](https://sea-watch.org/en/). Thank you.