View source: R/get_classification.R
get_classification | R Documentation |
Retrieve entity classification from ‘http://classyfire.wishartlab.com/entities/’. The optional local cache function enables classification requests with less waiting time. Furthermore, there will be fewer traffic on the classyFire servers. For best high efficiency there is an option for creating a SQLight database to cache results.
get_classification(inchi_key, conn = NULL)
inchi_key |
a character string of a valid InChIKey |
conn |
a DBIConnection object, as produced by dbConnect |
a ClassyFire
S4 object.
ClassyFire-class
## Not run: # Valid InChI key where all four classification levels are available get_classification('BRMWTNUJHUMWMS-LURJTMIESA-N') # Valid InChI key where only three classification levels are available get_classification('MDHYEMXUFSJLGV-UHFFFAOYSA-N') # Invalid InChI key get_classification('MDHYEMXUFSJLGV-UHFFFAOYSA-B') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.