powered by
The function "plotDruglink" is used to plot a bipartite network of drugs and shared molecular functions.
plotDruglink(drug1,drug2,i = 5,color_MF = "#43AAEF",color_drug = "#F7525B", layout_type = "circle")
A bipartite network of drugs and shared molecular functions.
The drugbank ID of drug1.
The drugbank ID of drug2.
Specifies the number of outputs molecular functions, which is 5 by default.
Defines the color of MF nodes in the network.
Defines the color of drug nodes in the network.
layout_type used to set the appropriate arrangement, there is an option to choose from "circle","dh",and "sugiyama".
# Set drug1 drug1<-"DB02721" # Set drug2 drug2<-"DB01213" # Run the function library(igraph) plotDruglink(drug1,drug2,i = 5)
Run the code above in your browser using DataLab