This R package was a toolkit for TCM polypharmacology research. Based on the biological descriptors and drug-disease interaction networks, it can analyze the potential polypharmacological mechanisms of TCM and be used for drug repositioning in TCM.
library(immcp)
data(drugdeom)
names(drugdemo)
<- PrepareData(drugdemo$drug_herb, from = "drug", to="herb")
drug_herb <- PrepareData(drugdemo$herb_compound, from = "herb", to="compound")
herb_compound <- PrepareData(drugdemo$compound_target, from = "compound", to="target")
compound_target <- PrepareData(drugdemo$disease, diseaseID = "disease",from = "target", to="target")
disease <- CreateBasicData(drug_herb, herb_compound, compound_target, diseasenet = disease) BasicData
<- CreateDisDrugNet(BasicData, drug = "Drug1", disease = "disease")
DisDrugNet plot_graph(DisDrugNet, size = 20)