as.igraph.stringgaussnet: Convert stringgaussnet network into igraph

Description Usage Arguments Details Value See Also Examples

View source: R/as.igraph.stringgaussnet.R

Description

This function converts any network object from the package stringgaussnet into an igraph object (package igraph).

Usage

1
2
## S3 method for class 'stringgaussnet'
as.igraph(x, ...)

Arguments

x

A network object from stringgaussnet package. Can be of class STRINGNet, ShortPathSTRINGNet, SIMoNeNet or WGCNANet.

...

Additional parameters. Not used here

Details

This function is used in this package to convert a network into an igraph object, and then into a json object in order to import the network into Cytoscape. But you can use this function anywhere in your R script if you wish to manipulate your network with the igraph package.

Value

An igraph object with non-directed edges (can be multiple).

See Also

addGraphToCytoscape

Examples

1
2
3
4
5
6
7
data(SpADataExpression)
data(SpADEGenes)
SpAData<-DEGeneExpr(t(SpADataExpression),SpADEGenes)
NodesForSIMoNe<-rownames(SpADEGenes)[1:17]
GaussianSpAData<-DEGeneExpr(t(SpADataExpression[NodesForSIMoNe,]),SpADEGenes[NodesForSIMoNe,])
GlobalSIMoNeNet<-getSIMoNeNet(GaussianSpAData,AddAnnotation=FALSE)
iGraphSpAObj<-as.igraph.stringgaussnet(GlobalSIMoNeNet)

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