get_cids | R Documentation |
This function sends a request to PubChem to retrieve Compound IDs (CIDs) for given identifier(s).
get_cids(
identifier,
namespace = "name",
domain = "compound",
searchtype = NULL,
options = NULL
)
identifier |
A vector of identifiers, either numeric or character.
The type of identifier depends on the |
namespace |
A character string specifying the namespace of the identifier. Possible values depend on the - For - For - For For more details, see the Input section of the PUG REST API. |
domain |
A character string specifying the domain of the query. Possible values are: - - - - Other domains as specified in the API documentation. |
searchtype |
An optional character string specifying the search type. Possible values depend on the Examples include: - - If |
options |
A list of additional options for the request. Available options depend on the specific request and the API. Examples include: - For similarity searches: - For substructure searches: If For more details, see the Structure Search Operations section of the PUG REST API. |
For more detailed information, please refer to the PubChem PUG REST API documentation.
An object of class 'PubChemInstance_CIDs', which is a list containing information retrieved from the PubChem database. Compound IDs can be extracted from the returned object using the CIDs function.
To extract compoud IDs from returned object, one may use CIDs function. See examples.
CIDs, get_pug_rest
compound <- get_cids(
identifier = "aspirin",
namespace = "name"
)
compound
# Extract compound IDs.
CIDs(compound)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.