- identifier
A vector of positive integers (e.g., cid, sid, aid) or identifier strings (source, inchikey, formula).
In some cases, a single identifier string (e.g., name, smiles, xref; inchi, sdf by POST only) is sufficient.
**Note**: identifier
must be provided; it cannot be NULL
.
- namespace
A character string specifying the namespace of the identifier.
Possible values include:
- cid
: PubChem Compound Identifier (default)
- name
: Chemical name
- smiles
: SMILES string
- inchi
: InChI string
- inchikey
: InChIKey
- formula
: Molecular formula
For more details, see the Input section of the PUG REST API.
- operation
A character string specifying the operation to perform.
Possible values include:
- synonyms
: Retrieve synonyms for the compounds.
- description
: Retrieve compound descriptions.
- sids
: Retrieve Substance IDs related to the compounds.
- aids
: Retrieve Assay IDs related to the compounds.
- classification
: Retrieve compound classification.
- cids
: Retrieve Compound IDs (used when the input is not CID).
If NULL
(default), the basic compound record is retrieved.
For a full list of operations, see the Operations section of the PUG REST API.
- searchtype
An optional character string specifying the search type.
Possible values include:
- similarity
- substructure
- superstructure
- identity
If NULL
(default), no search type is specified.
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: list(Threshold = 95)
- For substructure searches: list(MaxRecords = 100)
If NULL
(default), no additional options are included.
For more details, see the Structure Search Operations section of the PUG REST API.