Request one specific compound information in KEGG

request_kegg_compound(
  compound_id = "C02886",
  return_form = c("list", "data.frame")
)

Arguments

compound_id

compound id. For example, C02886

return_form

data.frame or list.

Value

A data frame or list.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

x = request_kegg_compound("C02886", "list")
x[1:2]
#> $ENTRY
#> Compound 
#> "C02886" 
#> 
#> $NAME
#> [1] "S-Hexyl-glutathione;"  "S-Hexyl-L-glutathione"
#> 
y = request_kegg_compound("C02886", "data.frame")
head(y)
#>          Lab.ID                              Compound.name     Formula       mz
#> Compound C02886 S-Hexyl-glutathione{}S-Hexyl-L-glutathione C16H29N3O6S 391.1777
#>              CAS.ID HMDB.ID KEGG.ID PUBCHEM.ID CHEBI.ID CHEMBL.ID LIPIDMAPS.ID
#> Compound 24425-56-7      NA  C02886       5817    27704        NA           NA
#>          LIPIDBANK.ID DRUGBANK.ID From_human From_drug KEGG_DRUG.ID
#> Compound           NA          NA        Yes        No           NA
#>                                            Synonyms
#> Compound S-Hexyl-glutathione{}S-Hexyl-L-glutathione