request_hmdb_metabolite: Request one specific the metabolite information in HMDB

View source: R/8_HMDB.R

request_hmdb_metaboliteR Documentation

Request one specific the metabolite information in HMDB

Description

Request one specific the metabolite information in HMDB

Usage

request_hmdb_metabolite(
  url = "https://hmdb.ca/metabolites",
  metabolite_id = "HMDB0000001",
  return_form = c("list", "data.frame")
)

Arguments

url

Default is "https://hmdb.ca/metabolites".

metabolite_id

metabolite id. For example, HMDB0000001

return_form

data.frame or list.

Value

A data frame or list.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

x = request_hmdb_metabolite(metabolite_id = "HMDB0000001", return_form = "list")
x[1:2]
y = request_hmdb_metabolite(metabolite_id = "HMDB0000001", return_form = "data.frame")
head(y)

tidymass/massdatabase documentation built on Sept. 10, 2023, 10:35 p.m.