trans_id | R Documentation |
Translate chemical identifiers from one to the other.
trans_id(x, from = "CAS", to = "InChIKey",
odor_data = door_default_values("odor"))
x |
character vector, one or many chemical identifiers |
from |
character, the type of identifier to translate from (one of the column names of “odor“) |
to |
character, the type of identifier to translate from (one of the column names of “odor“) |
odor_data |
the data frame containing the odor information (defaults to “odor“). |
character vector of translated chemical identifiers
# load data
library(DoOR.data)
# transform CAS to InChIKey
trans_id("123-92-2")
# transform Name to InChIKey
trans_id("isopentyl acetate", "Name")
# transform SMILE to InChIKey
trans_id("C(C(C)C)COC(=O)C", "SMILES", "Name")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.