trans_ID: trans_ID

Description Usage Arguments Value Author(s) Examples

View source: R/trans_ID.R

Description

Translate metabolite ID.

Usage

1
2
3
4
5
6
7
trans_ID(
  query = "C00001",
  from = "KEGG",
  to = "PubChem SID",
  top = 1,
  server = c("cts.fiehnlab", "chemspider")
)

Arguments

query

The ID/name of metabolite you want to translate.

from

The databases of metabolites. Supported database can be shown using trans_id_database("from").

to

The databases of metabolites. Supported database can be shown using trans_id_database("to").

top

How many results should be returned?

server

server. cts.fiehnlab (http://cts.fiehnlab.ucdavis.edu/service/convert) or chemspider (https://www.chemspider.com/InChI.asmx)

Value

A data frame.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
trans_ID(
    query = "C00001",
    from = "KEGG",
    to = "PubChem SID",
    top = 1,
    server = "cts.fiehnlab"
)

trans_ID(
    query = "C00001",
    to = "Human Metabolome Database",
    server = "cts.fiehnlab"
)

tidymass/tinytools documentation built on Jan. 2, 2022, 5:18 p.m.