Description Usage Arguments Value Author(s) See Also Examples
Function converts list to binary matrix
1 | probs.to.matrix(probs, genenames)
|
probs |
list of vectors of gene names/ character strings |
genenames |
vector of all gene names in analysis / all strings to be considered |
matrix in which rows refer to genes (character strings) and columns to slots of input list
Ivana Ihnatova
1 2 3 4 5 6 7 8 9 | lists<-list(Method1=c("Gene_A", "Gene_V","Gene_S","Gene_C","Gene_U","Gene_D","Gene_E","Gene_G","Gene_W"),
Method2=c("Gene_D","Gene_W","Gene_G","Gene_E","Gene_H","Gene_X"),
Method3=c("Gene_L","Gene_K","Gene_J","Gene_M","Gene_V","Gene_T","Gene_R","Gene_U"))
genes<-c("Gene_A", "Gene_V", "Gene_S", "Gene_C", "Gene_U", "Gene_D", "Gene_E", "Gene_G",
"Gene_W", "Gene_H", "Gene_X", "Gene_L", "Gene_K", "Gene_J", "Gene_M", "Gene_T",
"Gene_R")
PM<-probs.to.matrix(lists,genes)
PM
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.