cts_convert | R Documentation |
Convert Ids using Chemical Translation Service (CTS), see http://cts.fiehnlab.ucdavis.edu/
cts_convert(
query,
from,
to,
match = c("all", "first", "ask", "na"),
verbose = getOption("verbose"),
choices = NULL,
...
)
query |
character; query ID. |
from |
character; type of query ID, e.g. |
to |
character; type to convert to. |
match |
character; How should multiple hits be handled? |
verbose |
logical; should a verbose output be printed on the console? |
choices |
deprecated. Use the |
... |
currently not used. |
See also http://cts.fiehnlab.ucdavis.edu/ for possible values of from and to.
a list of character vectors or if choices
is used, then a
single named vector.
Wohlgemuth, G., P. K. Haldiya, E. Willighagen, T. Kind, and O. Fiehn 2010The Chemical Translation Service – a Web-Based Tool to Improve Standardization of Metabolomic Reports. Bioinformatics 26(20): 2647–2648.
cts_from
for possible values in the 'from' argument
and cts_to
for possible values in the 'to' argument.
## Not run:
# might fail if API is not available
cts_convert("XEFQLINVKFYRCS-UHFFFAOYSA-N", "inchikey", "Chemical Name")
### multiple inputs
keys <- c("XEFQLINVKFYRCS-UHFFFAOYSA-N", "VLKZOEOYAKHREP-UHFFFAOYSA-N")
cts_convert(keys, "inchikey", "cas")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.