Description Usage Arguments Details Value Author(s) References See Also Examples
Functions to compute molecular properties: weight, formula, atom frequencies, etc.
1 2 3 4 5 6 7 |
x |
object of class |
mw |
|
addH |
'addH = TRUE' should be passed on to any of these function to add hydrogens that are often not specified in SD files |
... |
Arguments to be passed to/from other methods. |
...
named vector |
|
list |
|
matrix |
|
Thomas Girke
Standard atomic weights (2005) from: http://iupac.org/publications/pac/78/11/2051/
Functions: datablock
, datablocktag
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Instance of SDFset class
data(sdfsample)
sdfset <- sdfsample
## Compute properties; to consider missing hydrogens, set 'addH = TRUE'
MW(sdfset[1:4], addH = FALSE)
MF(sdfset[1:4], addH = FALSE)
atomcount(sdfset[1:4], addH = FALSE)
propma <- atomcountMA(sdfset[1:4], addH = FALSE)
boxplot(propma, main="Atom Frequency")
## Example for injecting a custom matrix/data frame into the data block of an
## SDFset and then writing it to an SD file
props <- data.frame(MF=MF(sdfset), MW=MW(sdfset), atomcountMA(sdfset))
datablock(sdfset) <- props
view(sdfset[1:4])
# write.SDF(sdfset[1:4], file="sub.sdf", sig=TRUE, cid=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.