Learn R Programming

timma (version 1.2.0)

drawGraph: Draw graph function

Description

A function to draw the target inhibition network.

Usage

drawGraph(draw_data)

Arguments

draw_data
a data frame combines drug-target interaction data with drug sensitivity. The column names must be upper case.

Value

  • An image of the target inhibition network.

References

Tang J, Karhinen L, Xu T, Szwajda A, Yadav B, Wennerberg K, Aittokallio T. Target inhibition networks: predicting selective combinations of druggable targets to block cancer survival pathways. PLOS Computational Biology 2013; 9: e1003226.

Examples

Run this code
data(tyner_interaction_binary)
data(tyner_sensitivity)
y<-tyner_sensitivity[,1]
k_selected<-sffs(tyner_interaction_binary, y)$k_sel
x<-data.frame(tyner_interaction_binary[, k_selected])
#binarize the sensitivity data
one<-which(y>0.5)
zero<-which(y<=0.5)
SENS<-y
SENS[one]<-1
SENS[zero]<-0
draw_data<-cbind(x, SENS)
drawGraph(draw_data)

Run the code above in your browser using DataLab