R/addFactorGraphsToCytoscape.R

Defines functions addFactorGraphsToCytoscape

Documented in addFactorGraphsToCytoscape

addFactorGraphsToCytoscape <-
function (FactorNets,Name=deparse(substitute(FactorNets)),LayoutNames=rep("force-directed",length(FactorNets)),StyleNames=sapply(FactorNets,function(x) class(x[["Network"]])),port.number=1234)
{
	Levels<-names(FactorNets)
	for (Level in Levels)
	{
		Index<-which(Levels==Level)
		Network<-FactorNets[[Level]]$Network
		Collection<-paste(class(Network),Level,sep=".")
		NetId<-addGraphToCytoscape(Network,Collection,Name,LayoutNames[Index],StyleNames[Index],port.number)
	}
}

Try the stringgaussnet package in your browser

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

stringgaussnet documentation built on May 29, 2017, 10:50 a.m.