Description Usage Arguments Details Value See Also Examples
View source: R/as.igraph.stringgaussnet.R
This function converts any network object from the package stringgaussnet into an igraph object (package igraph).
1 2 | ## S3 method for class 'stringgaussnet'
as.igraph(x, ...)
|
x |
A network object from stringgaussnet package. Can be of class STRINGNet, ShortPathSTRINGNet, SIMoNeNet or WGCNANet. |
... |
Additional parameters. Not used here |
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.
An igraph object with non-directed edges (can be multiple).
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.