R/maxofMIM.R

# Find max partner for each gene.

maxofMIM <- function(mim)
{
  numprobs <- nrow(mim)
  maxM <- c()
  for(i in 1: numprobs){
    j <- which.max(mim[i,]) 
    tmp <- cbind(mim[i,j], i, j)
    maxM <- rbind(maxM,tmp)
  }
  return(maxM)
}

Try the dc3net package in your browser

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

dc3net documentation built on May 2, 2019, 10:14 a.m.