summaryrefslogtreecommitdiff
path: root/man/chent.Rd
diff options
context:
space:
mode:
Diffstat (limited to 'man/chent.Rd')
-rw-r--r--man/chent.Rd103
1 files changed, 65 insertions, 38 deletions
diff --git a/man/chent.Rd b/man/chent.Rd
index 686d6c7..ba47feb 100644
--- a/man/chent.Rd
+++ b/man/chent.Rd
@@ -12,17 +12,13 @@ information is retrieved from the internet. Additionally, it can be
generated using RDKit if RDKit and its python bindings are installed.
}
\examples{
-oct <- chent$new("1-octanol", smiles = "CCCCCCCCO", pubchem = FALSE)
-print(oct)
-if (!is.null(oct$Picture)) {
- plot(oct)
-}
-
caffeine <- chent$new("caffeine")
print(caffeine)
if (!is.null(caffeine$Picture)) {
plot(caffeine)
}
+oct <- chent$new("1-octanol", smiles = "CCCCCCCCO", pubchem = FALSE)
+print(oct)
}
\section{Public fields}{
\if{html}{\out{<div class="r6-fields">}}
@@ -62,19 +58,15 @@ List of information retrieved from PubChem}
\item{\code{chyaml}}{List of information obtained from a YAML file}
-\item{\code{TPs}}{List of transformation products as chent objects
-Add a transformation product to the internal list}
+\item{\code{TPs}}{List of transformation products as chent objects}
-\item{\code{transformations}}{Data frame of observed transformations
-Add a line in the internal dataframe holding observed transformations}
+\item{\code{transformations}}{Data frame of observed transformations}
-\item{\code{soil_degradation}}{Dataframe of modelling DT50 values
-Add a line in the internal dataframe holding modelling DT50 values}
+\item{\code{soil_degradation}}{Dataframe of modelling DT50 values}
\item{\code{soil_ff}}{Dataframe of formation fractions}
-\item{\code{soil_sorption}}{Dataframe of soil sorption data
-Add soil sorption data}
+\item{\code{soil_sorption}}{Dataframe of soil sorption data}
}
\if{html}{\out{</div>}}
}
@@ -114,7 +106,7 @@ Creates a new instance of this \link[R6:R6Class]{R6} class.
pubchem_from = c("name", "smiles", "inchikey"),
rdkit = TRUE,
template = NULL,
- chyaml = TRUE
+ chyaml = FALSE
)}\if{html}{\out{</div>}}
}
@@ -140,8 +132,7 @@ and the reticulate package?}
\item{\code{template}}{An optional SMILES code to be used as template for RDKit}
\item{\code{chyaml}}{Should we look for a identifier.yaml file in the working
-directory?
-Try to get chemical information from PubChem}
+directory?}
}
\if{html}{\out{</div>}}
}
@@ -150,6 +141,7 @@ Try to get chemical information from PubChem}
\if{html}{\out{<a id="method-chent-try_pubchem"></a>}}
\if{latex}{\out{\hypertarget{method-chent-try_pubchem}{}}}
\subsection{Method \code{try_pubchem()}}{
+Try to get chemical information from PubChem
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$try_pubchem(query, from = "name")}\if{html}{\out{</div>}}
}
@@ -159,8 +151,7 @@ Try to get chemical information from PubChem}
\describe{
\item{\code{query}}{Query string to be passed to \link[webchem:get_cid]{get_cid}}
-\item{\code{from}}{Passed to \link[webchem:get_cid]{get_cid}
-Get chemical information from PubChem for a known PubChem CID}
+\item{\code{from}}{Passed to \link[webchem:get_cid]{get_cid}}
}
\if{html}{\out{</div>}}
}
@@ -169,6 +160,7 @@ Get chemical information from PubChem for a known PubChem CID}
\if{html}{\out{<a id="method-chent-get_pubchem"></a>}}
\if{latex}{\out{\hypertarget{method-chent-get_pubchem}{}}}
\subsection{Method \code{get_pubchem()}}{
+Get chemical information from PubChem for a known PubChem CID
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$get_pubchem(pubchem_cid)}\if{html}{\out{</div>}}
}
@@ -176,8 +168,7 @@ Get chemical information from PubChem for a known PubChem CID}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
-\item{\code{pubchem_cid}}{CID
-Get chemical information from RDKit if available}
+\item{\code{pubchem_cid}}{CID}
}
\if{html}{\out{</div>}}
}
@@ -186,6 +177,7 @@ Get chemical information from RDKit if available}
\if{html}{\out{<a id="method-chent-get_rdkit"></a>}}
\if{latex}{\out{\hypertarget{method-chent-get_rdkit}{}}}
\subsection{Method \code{get_rdkit()}}{
+Get chemical information from RDKit if available
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$get_rdkit(template = NULL)}\if{html}{\out{</div>}}
}
@@ -193,8 +185,7 @@ Get chemical information from RDKit if available}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
-\item{\code{template}}{Optional template specified as a SMILES code
-Obtain information from a YAML file}
+\item{\code{template}}{An optional SMILES code to be used as template for RDKit}
}
\if{html}{\out{</div>}}
}
@@ -203,6 +194,7 @@ Obtain information from a YAML file}
\if{html}{\out{<a id="method-chent-get_chyaml"></a>}}
\if{latex}{\out{\hypertarget{method-chent-get_chyaml}{}}}
\subsection{Method \code{get_chyaml()}}{
+Obtain information from a YAML file
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$get_chyaml(
repo = c("wd", "local", "web"),
@@ -217,8 +209,7 @@ Obtain information from a YAML file}
directory, a local git repository under \verb{~/git/chyaml}, or from
the web (not implemented).}
-\item{\code{chyaml}}{The filename to be looked for
-Add a vapour pressure}
+\item{\code{chyaml}}{The filename to be looked for}
}
\if{html}{\out{</div>}}
}
@@ -227,6 +218,7 @@ Add a vapour pressure}
\if{html}{\out{<a id="method-chent-add_p0"></a>}}
\if{latex}{\out{\hypertarget{method-chent-add_p0}{}}}
\subsection{Method \code{add_p0()}}{
+Add a vapour pressure
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$add_p0(p0, T = NA, source = NA, page = NA, remark = "")}\if{html}{\out{</div>}}
}
@@ -242,8 +234,7 @@ Add a vapour pressure}
\item{\code{page}}{The page from which the information was taken}
-\item{\code{remark}}{A remark
-Add a water solubility}
+\item{\code{remark}}{A remark}
}
\if{html}{\out{</div>}}
}
@@ -252,6 +243,7 @@ Add a water solubility}
\if{html}{\out{<a id="method-chent-add_cwsat"></a>}}
\if{latex}{\out{\hypertarget{method-chent-add_cwsat}{}}}
\subsection{Method \code{add_cwsat()}}{
+Add a water solubility
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$add_cwsat(cwsat, T = NA, pH = NA, source = NA, page = NA, remark = "")}\if{html}{\out{</div>}}
}
@@ -263,14 +255,13 @@ Add a water solubility}
\item{\code{T}}{Temperature}
-\item{\code{pH}}{The pH value}
+\item{\code{pH}}{pH value}
\item{\code{source}}{An acronym specifying the source of the information}
\item{\code{page}}{The page from which the information was taken}
-\item{\code{remark}}{A remark
-Add a plant uptake factor}
+\item{\code{remark}}{A remark}
}
\if{html}{\out{</div>}}
}
@@ -279,6 +270,7 @@ Add a plant uptake factor}
\if{html}{\out{<a id="method-chent-add_PUF"></a>}}
\if{latex}{\out{\hypertarget{method-chent-add_PUF}{}}}
\subsection{Method \code{add_PUF()}}{
+Add a plant uptake factor
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$add_PUF(
PUF = 0,
@@ -306,6 +298,7 @@ Add a plant uptake factor}
\if{html}{\out{<a id="method-chent-add_TP"></a>}}
\if{latex}{\out{\hypertarget{method-chent-add_TP}{}}}
\subsection{Method \code{add_TP()}}{
+Add a transformation product to the internal list
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$add_TP(x, smiles = NULL, pubchem = FALSE)}\if{html}{\out{</div>}}
}
@@ -315,7 +308,7 @@ Add a plant uptake factor}
\describe{
\item{\code{x}}{A \link{chent} object, or an identifier to generate a \link{chent} object}
-\item{\code{smiles}}{A SMILES code for defining a \link{chent} object}
+\item{\code{smiles}}{Optional user provided SMILES code}
\item{\code{pubchem}}{Should chemical information be obtained from PubChem?}
}
@@ -326,6 +319,7 @@ Add a plant uptake factor}
\if{html}{\out{<a id="method-chent-add_transformation"></a>}}
\if{latex}{\out{\hypertarget{method-chent-add_transformation}{}}}
\subsection{Method \code{add_transformation()}}{
+Add a line in the internal dataframe holding observed transformations
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$add_transformation(
study_type,
@@ -353,7 +347,7 @@ result from stochiometric transformation}
\item{\code{source}}{An acronym specifying the source of the information}
-\item{\code{pages}}{The page from which the information was taken}
+\item{\code{pages}}{The pages from which the information was taken}
}
\if{html}{\out{</div>}}
}
@@ -362,6 +356,7 @@ result from stochiometric transformation}
\if{html}{\out{<a id="method-chent-add_soil_degradation"></a>}}
\if{latex}{\out{\hypertarget{method-chent-add_soil_degradation}{}}}
\subsection{Method \code{add_soil_degradation()}}{
+Add a line in the internal dataframe holding modelling DT50 values
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$add_soil_degradation(
soils,
@@ -434,6 +429,7 @@ the technical active ingredient}
\if{html}{\out{<a id="method-chent-add_soil_ff"></a>}}
\if{latex}{\out{\hypertarget{method-chent-add_soil_ff}{}}}
\subsection{Method \code{add_soil_ff()}}{
+Add one or more formation fractions for degradation in soil
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$add_soil_ff(target, soils, ff = 1, remark = "", source, page = NA)}\if{html}{\out{</div>}}
}
@@ -446,6 +442,12 @@ the technical active ingredient}
\item{\code{soils}}{The soil name(s) in which the transformation was observed}
\item{\code{ff}}{The formation fraction(s)}
+
+\item{\code{remark}}{A remark}
+
+\item{\code{source}}{An acronym specifying the source of the information}
+
+\item{\code{page}}{The page from which the information was taken}
}
\if{html}{\out{</div>}}
}
@@ -454,6 +456,7 @@ the technical active ingredient}
\if{html}{\out{<a id="method-chent-add_soil_sorption"></a>}}
\if{latex}{\out{\hypertarget{method-chent-add_soil_sorption}{}}}
\subsection{Method \code{add_soil_sorption()}}{
+Add soil sorption data
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$add_soil_sorption(
soils,
@@ -476,6 +479,8 @@ the technical active ingredient}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
+\item{\code{soils}}{Names of the soils}
+
\item{\code{Kf}}{The sorption constant in L/kg, either linear (then \code{N} is 1)
or according to Freundlich}
@@ -483,10 +488,25 @@ or according to Freundlich}
\item{\code{N}}{The Freundlich exponent}
+\item{\code{type}}{The soil type}
+
+\item{\code{pH_orig}}{The pH stated in the study}
+
+\item{\code{pH_medium}}{The medium in which this pH was measured}
+
+\item{\code{pH_H2O}}{The pH extrapolated to pure water}
+
+\item{\code{perc_OC}}{The percentage of organic carbon in the soil}
+
\item{\code{perc_clay}}{The percentage of clay in the soil}
-\item{\code{CEC}}{The cation exchange capacity
-Write a PDF image of the structure}
+\item{\code{CEC}}{The cation exchange capacity}
+
+\item{\code{remark}}{A remark}
+
+\item{\code{source}}{An acronym specifying the source of the information}
+
+\item{\code{page}}{The page from which the information was taken}
}
\if{html}{\out{</div>}}
}
@@ -495,6 +515,7 @@ Write a PDF image of the structure}
\if{html}{\out{<a id="method-chent-pdf"></a>}}
\if{latex}{\out{\hypertarget{method-chent-pdf}{}}}
\subsection{Method \code{pdf()}}{
+Write a PDF image of the structure
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$pdf(
file = paste0(self$identifier, ".pdf"),
@@ -510,8 +531,7 @@ Write a PDF image of the structure}
\item{\code{dir}}{The directory to write the file to}
-\item{\code{template}}{A template expressed as SMILES to use in RDKit
-Write a PNG image of the structure}
+\item{\code{template}}{An optional SMILES code to be used as template for RDKit}
}
\if{html}{\out{</div>}}
}
@@ -520,6 +540,7 @@ Write a PNG image of the structure}
\if{html}{\out{<a id="method-chent-png"></a>}}
\if{latex}{\out{\hypertarget{method-chent-png}{}}}
\subsection{Method \code{png()}}{
+Write a PNG image of the structure
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$png(
file = paste0(self$identifier, ".png"),
@@ -531,8 +552,11 @@ Write a PNG image of the structure}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
-\item{\code{antialias}}{Passed to \link[grDevices:png]{png}
-Write an EMF image of the structure using \link[devEMF:emf]{emf}}
+\item{\code{file}}{The file to write to}
+
+\item{\code{dir}}{The directory to write the file to}
+
+\item{\code{antialias}}{Passed to \link[grDevices:png]{png}}
}
\if{html}{\out{</div>}}
}
@@ -541,6 +565,7 @@ Write an EMF image of the structure using \link[devEMF:emf]{emf}}
\if{html}{\out{<a id="method-chent-emf"></a>}}
\if{latex}{\out{\hypertarget{method-chent-emf}{}}}
\subsection{Method \code{emf()}}{
+Write an EMF image of the structure using \link[devEMF:emf]{emf}
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{chent$emf(file = paste0(self$identifier, ".emf"), dir = "structures/emf")}\if{html}{\out{</div>}}
}
@@ -549,6 +574,8 @@ Write an EMF image of the structure using \link[devEMF:emf]{emf}}
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{file}}{The file to write to}
+
+\item{\code{dir}}{The directory to write the file to}
}
\if{html}{\out{</div>}}
}

Contact - Imprint