R/corrmatrix.R

Defines functions corrmatrix

corrmatrix = function(toptable,thrs=0){
intmatrix = tt2matrix(toptable,what="size")
intmatrix = intmatrix*(abs(intmatrix)>thrs)
  cormatrix = cor(intmatrix,intmatrix,use = "pairwise.complete.obs")
  diag(cormatrix) = NA
cormatrix
}

Try the coRNAi package in your browser

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

coRNAi documentation built on Nov. 17, 2017, 11:14 a.m.