diff options
author | Ranke Johannes <johannes.ranke@agroscope.admin.ch> | 2024-11-28 16:56:12 +0100 |
---|---|---|
committer | Ranke Johannes <johannes.ranke@agroscope.admin.ch> | 2024-11-28 16:56:12 +0100 |
commit | 09fbf31ef6f352e76abac2a7e76838ef331edeb9 (patch) | |
tree | c629ce6f307e633ab0f3c9942ca37f42f658fef9 /docs/reference/chent.html | |
parent | b292c01b2f5132a34a6ed1946e1df54069676988 (diff) |
Improve README and example code
Diffstat (limited to 'docs/reference/chent.html')
-rw-r--r-- | docs/reference/chent.html | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/docs/reference/chent.html b/docs/reference/chent.html index 0a74440..cef2061 100644 --- a/docs/reference/chent.html +++ b/docs/reference/chent.html @@ -813,22 +813,7 @@ Write a PNG image of the structure</p><div class="section"> <div class="section level2"> <h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2> - <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">oct</span> <span class="op"><-</span> <span class="va">chent</span><span class="op">$</span><span class="fu">new</span><span class="op">(</span><span class="st">"1-octanol"</span>, smiles <span class="op">=</span> <span class="st">"CCCCCCCCO"</span>, pubchem <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></span> -<span class="r-msg co"><span class="r-pr">#></span> Trying to get chemical information from RDKit using user SMILES</span> -<span class="r-msg co"><span class="r-pr">#></span> CCCCCCCCO</span> -<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/print.html" class="external-link">print</a></span><span class="op">(</span><span class="va">oct</span><span class="op">)</span></span></span> -<span class="r-out co"><span class="r-pr">#></span> <chent></span> -<span class="r-out co"><span class="r-pr">#></span> Identifier $identifier 1-octanol </span> -<span class="r-out co"><span class="r-pr">#></span> InChI Key $inchikey NA </span> -<span class="r-out co"><span class="r-pr">#></span> SMILES string $smiles:</span> -<span class="r-out co"><span class="r-pr">#></span> user </span> -<span class="r-out co"><span class="r-pr">#></span> "CCCCCCCCO" </span> -<span class="r-out co"><span class="r-pr">#></span> Molecular weight $mw: 130.2 </span> -<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="op">!</span><span class="fu"><a href="https://rdrr.io/r/base/NULL.html" class="external-link">is.null</a></span><span class="op">(</span><span class="va">oct</span><span class="op">$</span><span class="va">Picture</span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span> -<span class="r-in"><span> <span class="fu"><a href="https://rdrr.io/r/graphics/plot.default.html" class="external-link">plot</a></span><span class="op">(</span><span class="va">oct</span><span class="op">)</span></span></span> -<span class="r-in"><span><span class="op">}</span></span></span> -<span class="r-in"><span></span></span> -<span class="r-in"><span><span class="va">caffeine</span> <span class="op"><-</span> <span class="va">chent</span><span class="op">$</span><span class="fu">new</span><span class="op">(</span><span class="st">"caffeine"</span><span class="op">)</span></span></span> + <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">caffeine</span> <span class="op"><-</span> <span class="va">chent</span><span class="op">$</span><span class="fu">new</span><span class="op">(</span><span class="st">"caffeine"</span><span class="op">)</span></span></span> <span class="r-msg co"><span class="r-pr">#></span> PubChem:</span> <span class="r-msg co"><span class="r-pr">#></span> Trying to get chemical information from RDKit using PubChem_Canonical SMILES</span> <span class="r-msg co"><span class="r-pr">#></span> CN1C=NC2=C1C(=O)N(C(=O)N2C)C</span> @@ -850,6 +835,17 @@ Write a PNG image of the structure</p><div class="section"> <span class="r-in"><span> <span class="fu"><a href="https://rdrr.io/r/graphics/plot.default.html" class="external-link">plot</a></span><span class="op">(</span><span class="va">caffeine</span><span class="op">)</span></span></span> <span class="r-in"><span><span class="op">}</span></span></span> <span class="r-plt img"><img src="chent-1.png" alt="" width="700" height="433"></span> +<span class="r-in"><span><span class="va">oct</span> <span class="op"><-</span> <span class="va">chent</span><span class="op">$</span><span class="fu">new</span><span class="op">(</span><span class="st">"1-octanol"</span>, smiles <span class="op">=</span> <span class="st">"CCCCCCCCO"</span>, pubchem <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></span> +<span class="r-msg co"><span class="r-pr">#></span> Trying to get chemical information from RDKit using user SMILES</span> +<span class="r-msg co"><span class="r-pr">#></span> CCCCCCCCO</span> +<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/print.html" class="external-link">print</a></span><span class="op">(</span><span class="va">oct</span><span class="op">)</span></span></span> +<span class="r-out co"><span class="r-pr">#></span> <chent></span> +<span class="r-out co"><span class="r-pr">#></span> Identifier $identifier 1-octanol </span> +<span class="r-out co"><span class="r-pr">#></span> InChI Key $inchikey NA </span> +<span class="r-out co"><span class="r-pr">#></span> SMILES string $smiles:</span> +<span class="r-out co"><span class="r-pr">#></span> user </span> +<span class="r-out co"><span class="r-pr">#></span> "CCCCCCCCO" </span> +<span class="r-out co"><span class="r-pr">#></span> Molecular weight $mw: 130.2 </span> </code></pre></div> </div> </main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2> |