addMOA | R Documentation |
The MOA annotation is a list of MOA name to drug name mappings. This functions add the MOA column to data frame when data frame have a column with compound names
addMOA(df, drug_col, moa_list)
df |
data frame that must contains a column with compound names |
drug_col |
character (1), name of the column that stores compound names |
moa_list |
a list object of MOA name (e.g. HDAC inhibitor) to compound name mappings |
data frame with an added MOAss column
data("clue_moa_list")
df <- data.frame(pert=c("vorinostat", "sirolimus"), annot1=c("a", "b"),
annot2=1:2)
addMOA(df, "pert", clue_moa_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.