Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/StructurePlotting.R
This function uses the rcdk to parse the smiles into a mol, with options
to switch aromaticity detection on or off and to define desired
coordinates, as well as depiction control. Compatible only with rdck above 3.4.1. Default
parameters produce the same as renderSMILES.rcdk.default
.
Output requires that plot.new has been called, i.e. this is
designed to be used directly during plotting.
Users with rcdk<3.4.1 should use renderSMILES.rcdk.default
or
renderSMILES.CDKdepict
to view latest CDK updates.
As opposed to older versions, kekulise=FALSE now produces strange behaviour for some
SMILES.
1 2 3 |
smiles |
A valid SMILES code for rendering (e.g. |
kekulise |
If |
coords |
This is used to control the size of the image within the plot. Values
|
width |
Defines width of depiction object |
height |
Defines height of depiction object |
zoom |
Controls the size of the image, default 2, increasing to 5 results in a large structure in the web browser. Warnings at zoom>=10. |
style |
The plotting style, one of 5 options |
annotate |
(optional) Features to interpret the structure. Default |
abbr |
Default |
suppressh |
Default |
showTitle |
Default |
smaLimit |
sets the limit for |
sma |
(optional) |
More information about aromaticity: https://github.com/CDK-R/cdkr/issues/49
Returns an image for use during plotting
Emma Schymanski <emma.schymanski@uni.lu>
view.molecule.2d
renderSMILES.CDKdepict
1 2 3 4 5 6 | smiles <- "OS(=O)(=O)c1ccc(cc1)C(CC(=O)O)CC(=O)O"
plot.new()
plot.window(xlim=c(0,200), ylim=c(0,100))
renderSMILES.rcdk(smiles,kekulise=FALSE)
renderSMILES.rcdk(smiles,kekulise=TRUE)
renderSMILES.rcdk(smiles,kekulise=TRUE, abbr="off")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.