aboutsummaryrefslogtreecommitdiff
path: root/man/chent.Rd
blob: da68b56552887a6b5820629ba9cd467e5a41cae5 (plain) (blame)
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
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/chent.R
\docType{class}
\name{chent}
\alias{chent}
\title{An R6 class for chemical entities with associated data}
\format{An \code{\link{R6Class}} generator object}
\usage{
chent
}
\description{
The class is initialised with an identifier. Chemical information is retrieved from
the internet. Additionally, it can be generated using RDKit if RDKit and its
python bindings are installed.
}
\section{Fields}{

\describe{
\item{\code{identifier}}{The identifier that was used to initiate the object, with attribute 'source'}

\item{\code{inchikey}}{InChI Key, with attribute 'source'}

\item{\code{smiles}}{SMILES code, with attribute 'source'}

\item{\code{mw}}{Molecular weight, with attribute 'source'}

\item{\code{pubchem}}{List of information retreived from PubChem}

\item{\code{rdkit}}{List of information obtained with RDKit}

\item{\code{Picture}}{Graph as a \code{\link{picture}} object obtained using grImport}
}}
\examples{
oct <- chent$new("1-octanol", smiles = "CCCCCCCCO")
oct$try_pubchem()
print(oct)
plot(oct)
caffeine <- chent$new("caffeine", source = "pubchem")
print(caffeine)
caffeine$get_rdkit()
plot(caffeine)
}
\keyword{data}

Contact - Imprint