Description Usage Arguments Value Author(s) See Also Examples
View source: R/StructurePlotting.R
This builds a URL for the CDK Depict website for direct viewing or for
retrieving svgs for renderSMILES.CDKdepict. Contains all the options
in Version 0.2, reverting to default options if invalid entries are specified.
1 2 |
smiles |
A valid |
style |
The plotting style, one of 5 options |
title |
(optional) title to display under structure. |
abbr |
Default |
smarts |
(optional) |
suppressh |
Default |
showtitle |
Default |
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. |
annotate |
(optional) Features to interpret the structure. Default |
reserved |
If |
Returns a URL for direct use in a browser, or for rendering in R.
Emma Schymanski (R wrapper, <emma.schymanski@uni.lu>), John Mayfield (CDK Depict)
renderSMILES.CDKdepict to use the resulting structure in plotting,
renderSMILES.rcdk for alternative rendering.
1 2 3 4 5 6 7 8 | buildCDKdepictURL("c1ccccc1")
buildCDKdepictURL("CN1C=NC2=C1C(=O)N(C(=O)N2C)C",style="cow",title="caffeine",
abbr="off",smarts="c1cncnc1",suppressh=FALSE,showtitle=TRUE,zoom=5,annotate="number")
buildCDKdepictURL("CCOCCOCCO",style="cow")
buildCDKdepictURL("CCOCCOCCO |Sg:n:3,4,5::ht|",style="cow", smarts="CCO")
buildCDKdepictURL("CCOCCOCCO |Sg:n:3,4,5::ht|",style="cow", smarts="CCO",title="PEGn")
buildCDKdepictURL("OS(=O)(=O)c1ccc(cc1)C([R1]C(=O)O)[R2]C(=O)O", style="cow",title="SPADCs",
abbr="off",suppressh=TRUE,showtitle=TRUE,zoom=5,annotate="number",smarts="C(=O)O")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.