get_aids | R Documentation |
This function queries the PubChem database to retrieve Assay IDs (AIDs) based on a given identifier.
get_aids(
identifier,
namespace = "cid",
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. |
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_AIDs', which is a list containing information retrieved from the PubChem database. Assay IDs can be extracted from the returned object using the getter function AIDs.
To extract assay IDs from returned object, one may use AIDs function. See examples.
AIDs, get_pug_rest
# Request for multiple assays
# If assay identifier is unknown or incorrect, an error returns from PubChem Database
aids <- get_aids(
identifier = c("aspirin", "ibuprofen", "rstudio"),
namespace = "name"
)
print(aids)
# Return all Assay IDs.
AIDs(aids)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.