get_sids | R Documentation |
This function sends a request to PubChem to retrieve Substance IDs (SIDs) for a given identifier.
get_sids(
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 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 For more details, see the Input 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 'PubChemInstance_SIDs', which is a list containing information retrieved from the PubChem database. Substance IDs can be extracted from the returned object using the SIDs function.
result <- get_sids(
identifier = c("aspirin", "ibuprofen"),
namespace = "name"
)
# Extract substance IDs of all compounds
SIDs(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.