R/9_convert_metabolite_id.R
    convert_metabolite_id_oliver.RdConverts metabolite IDs from one database to another using the CTS FiehnLab online service.
convert_metabolite_id_oliver(
  query = "C00001",
  from = "KEGG",
  to = "Chemical Name",
  top = 1
)A data frame with the original query and converted metabolite ID(s).
# Convert KEGG ID to Chemical Name using FiehnLab CTS
convert_metabolite_id_oliver(
  query = "C00001",
  from = "KEGG",
  to = "Chemical Name"
)
#>     KEGG Chemical Name
#> 1 C00001       oxidane
# Convert InChIKey to PubChem CID
convert_metabolite_id_oliver(
  query = "BQJCRHHNABKAKU-KBQPJGBKSA-N",
  from = "InChIKey",
  to = "PubChem CID"
)
#>                      InChIKey PubChem CID
#> 1 BQJCRHHNABKAKU-KBQPJGBKSA-N     5288826