cs_compinfo | R Documentation |
Submit a ChemSpider ID (CSID) and the fields you are interested in, and retrieve the record details for your query.
cs_compinfo(csid, fields, verbose = getOption("verbose"), apikey = NULL)
csid |
numeric; can be obtained using |
fields |
character; see details. |
verbose |
logical; should a verbose output be printed on the console? |
apikey |
character; your API key. If NULL (default),
|
Valid values for fields
are "SMILES"
,
"Formula"
, "InChI"
, "InChIKey"
, "StdInChI"
,
"StdInChIKey"
, "AverageMass"
, "MolecularWeight"
,
"MonoisotopicMass"
, "NominalMass"
, "CommonName"
,
"ReferenceCount"
, "DataSourceCount"
, "PubMedCount"
,
"RSCCount"
, "Mol2D"
, "Mol3D"
. You can specify any
number of fields.
Returns a data frame.
An API key is needed. Register at https://developer.rsc.org/ for an API key. Please respect the Terms & Conditions. The Terms & Conditions can be found at https://developer.rsc.org/terms.
https://developer.rsc.org/docs/compounds-v1-trial/1/overview
## Not run:
cs_compinfo(171, c("SMILES", "CommonName"))
cs_compinfo(171:182, "SMILES")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.