Skip to contents

Retrieve the taxonomic classification hierarchy for a compound using various identifier types.

Usage

get_compound_classification(client, id_type, id_value)

Arguments

client

An mw_rest_client object

id_type

Character. Identifier type ("regno", "pubchem_cid", etc.)

id_value

Character or numeric. Identifier value

Value

Tibble containing classification hierarchy

Examples

if (FALSE) { # \dontrun{
client <- mw_rest_client()
classification <- get_compound_classification(client, "regno", "1")
} # }