R/InteractGraph.R

Defines functions InteractGraph

Documented in InteractGraph

InteractGraph=function(toptable,thresh,sizecutoff=0,by,key=FALSE,file="interactions",colors = list(neg="blue",pos="yellow",key="brown",node="grey")){
  
  toptable$interaction=ifelse(toptable[,by]<thresh,toptable$size,0)
  toptable$interaction=ifelse(abs(toptable$interaction)>sizecutoff,toptable$interaction,0)
  ms = tt2matrix(toptable,what="interaction")
  graphPart(ms = ms, key=key,file=file,colors=colors)
}

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.