queryUnichemCompound: Query UniChem for a compound.

View source: R/unichem.R

queryUnichemCompoundR Documentation

Query UniChem for a compound.

Description

This function queries the UniChem API for a compound based on the provided parameters.

Usage

queryUnichemCompound(
  compound,
  type,
  sourceID = NA_integer_,
  request_only = FALSE,
  raw = FALSE,
  ...
)

Arguments

compound

character or integer The compound identifier to search for.

type

character The type of compound identifier to search for. Valid types are "uci", "inchi", "inchikey", and "sourceID".

sourceID

integer The source ID to search for if the type is "sourceID". Defaults to NULL.

request_only

boolean Whether to return the request only. Defaults to FALSE.

raw

boolean Whether to return the raw response. Defaults to FALSE.

...

Additional arguments.

Value

A list with the external mappings and the UniChem mappings.

Examples

queryUnichemCompound(type = "sourceID", compound = "444795", sourceID = 22)


bhklab/AnnotationGx documentation built on April 3, 2025, 4:27 p.m.