get_assays | R Documentation |
This function sends a request to PubChem to retrieve assay data based on the specified parameters.
get_assays(identifier, namespace = "aid", operation = NULL, options = NULL)
identifier |
A vector of positive integers (e.g., |
namespace |
A character string specifying the namespace of the identifier. Possible values include: - - - - - - For more details, see the Input section of the PUG REST API. |
operation |
A character string specifying the operation to perform. Possible values include: - - - - - - - - - If For a full list of operations, see the Operations section of the PUG REST API. |
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 'PubChemInstanceList' containing the information retrieved from the PubChem database.
To extract information about a specific assay from the returned list, use the instance function.
Each assay may include information on several properties. Specific information from the assay can be extracted using the retrieve function. See examples.
retrieve, instance
# Retrieve a list of assays from the PubChem database
assays <- get_assays(
identifier = c(1234, 7815),
namespace = 'aid'
)
# Return assay information for assay ID '1234'
assay1234 <- instance(assays, "1234")
print(assay1234)
# Retrieve specific elements from the assay output
retrieve(assay1234, "aid")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.