Description Usage Arguments Value Examples
Convert Adjancency list (as a dataframe) to adjancency matrix. The first column will become the columns the second column the rows, and the third column the weights of the edges.
1 |
df |
returns a adjacency matrix as a matrix object
1 2 3 4 5 6 7 8 9 10 11 12 | Network_location="Input_data_files/LUAD/original_network.txt"
Network=read.delim(Network_location,header=F)
Network$V1=as.character(Network$V1)
Network$V2=as.character(Network$V2)
Network$V3=as.numeric(Network$V3)
Network=as.matrix(Network)
Gold_Standard_location="Input_data_files/LUAD/10_oncogene_pathways/KRAS/total.txt"
Gold_Standard=read.delim(Gold_Standard_location,header=F)
Gold_Standard$V1=as.character(Gold_Standard$V1)
Network[,3]=as.numeric(Network[,3])
Network_matrix=listToMatrix(Network)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.