powered by
Converts one identifier type to another (`CID`, `SID`, `AID`) using PubChem identifier mapping endpoints.
pc_identifier_map( identifier, namespace = "name", to = c("cids", "sids", "aids"), domain = "compound", searchtype = NULL, options = NULL, ... )
A typed `PubChemIdMap` object.
Identifier(s).
PubChem namespace.
Operation target; usually one of `"cids"`, `"sids"`, or `"aids"`.
PubChem domain.
Search type.
Named list of query options.
Additional arguments forwarded to `httr::RETRY`.
This is commonly used to bridge domains, for example mapping names to CIDs before downstream property or assay workflows.
id_map <- pc_identifier_map("aspirin", namespace = "name", to = "cids", offline = TRUE) inherits(id_map, "PubChemIdMap") if (FALSE) { pc_identifier_map("aspirin", namespace = "name", to = "cids") }
Run the code above in your browser using DataLab