get_assays {PubChemR} | R Documentation |
Retrieve Assays from PubChem
Description
This function sends a request to PubChem to retrieve assay data based on the specified parameters.
Usage
get_assays(identifier, namespace = "aid", operation = NULL, options = NULL)
Arguments
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. |
Details
For more detailed information, please refer to the PubChem PUG REST API documentation.
Value
An object of class 'PubChemInstanceList' containing the information retrieved from the PubChem database.
Note
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.
See Also
Examples
# 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")