R/gene.list.R

gene.list<-function(lists)
{
n.method<-length(lists)
names.method<-names(lists)
tab<-matrix(0,nrow=n.method,ncol=n.method)
colnames(tab)<-names.method
rownames(tab)<-names.method
for (i in 1:n.method)
for (j in 1:n.method)
if (i!=j) tab[i,j]<-paste(intersect(lists[[i]],lists[[j]]), collapse=";") else tab[i,j]<-NA
return(tab)
}

Try the MAMA package in your browser

Any scripts or data that you put into this service are public.

MAMA documentation built on Jan. 15, 2017, 3:05 p.m.