View source: R/create_chem_table.R
create_chem_table | R Documentation |
This function creates a data frame summarizing chemical identifiers used for each tested chemical in MS data. Each row in the resulting data frame provides EPA's DSSTox Structure ID (DTXSID), preferred compound name, and the name used by the laboratory.
create_chem_table(
input.table,
dtxsid.col = "DTXSID",
compound.col = "Compound.Name",
lab.compound.col = "Lab.Compound.Name",
verbose = TRUE
)
input.table |
(Data Frame) A data frame containing mass-spectrometry peak areas, indication of chemical identity, and analytical chemistry methods. It should contain columns with names specified by the following arguments: |
dtxsid.col |
(Character) Column name of |
compound.col |
(Character) Column name of |
lab.compound.col |
(Character) Column name of |
verbose |
(logical) Indicate whether printed statements should be shown. (Default is TRUE.) |
A data frame containing the chemical identifiers for all unique chemicals in the input data frame. Each row maps a unique chemical, indicated by the DTXSID, to all the preferred compound names and all chemical names used by the laboratory referenced in the input data frame.
John Wambaugh
library(invitroTKstats)
# Smeltz et al. (2020) data:
## Clint ##
create_chem_table(
input.table = invitroTKstats::clint_cheminfo,
dtxsid.col = "DTXSID",
compound.col = "Compound",
lab.compound.col = "Chem.Lab.ID"
)
## Fup RED ##
create_chem_table(
input.table = invitroTKstats::fup_red_cheminfo,
dtxsid.col = "DTXSID",
compound.col = "Compound",
lab.compound.col = "Chem.Lab.ID"
)
## Fup UC ##
create_chem_table(
input.table = invitroTKstats::fup_uc_cheminfo,
dtxsid.col = "DTXSID",
compound.col = "Compound",
lab.compound.col = "Chem.Lab.ID"
)
# Honda et al. () data:
## Caco2 ##
create_chem_table(
input.table = invitroTKstats::caco2_cheminfo,
dtxsid.col = "DTXSID",
compound.col = "PREFERRED_NAME",
lab.compound.col = "test_article"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.