stringgaussnet (version 1.1)

export.ShortPathSTRINGNet:

Export ShortPathSTRINGNet

Description

Function to export a ShortPathSTRINGNet object to a directory in standard table file formats. Those files can be imported for example into Cytoscape.

Usage

"export"(x, dirname, overwrite = F, ...)

Arguments

x

Object of class ShortPathSTRINGNet

dirname

Directory path where will be saved network files

overwrite

Boolean variable indicating whether the function deletes and recreates an existing directory with the same path

...

Additional parameters. Not used here

Details

This function creates two kinds of table files: edge and node attributes. All files are writen with column names at first line and with tabulations as field separator. Primary and secondary node attributes are exported in two distinct files.

See Also

export, export.STRINGNet, export.SIMoNeNet, export.WGCNANet

Examples

Run this code
data(SpADataExpression)
data(SpADEGenes)
SpAData<-DEGeneExpr(t(SpADataExpression),SpADEGenes)

# SpASTRINGNet<-getSTRINGNet(SpAData)
# Can be longer.

# SpASTRINGNet<-getSTRINGNet(SpAData,AddAnnotations=FALSE)
# print(SpASTRINGNet,5)
# summary(SpASTRINGNet)
# PPISpASTRINGNet<-selectInteractionTypes(SpASTRINGNet,
#	c("coexpression","experimental","knowledge"),0.9)
# export(PPISpASTRINGNet,"PPISpASTRINGNet",T)

# shortPathSpANet<-getShortestPaths(PPISpASTRINGNet)
# shortPathSpANet<-FilterEdges(shortPathSpANet,2.2)
# print(shortPathSpANet,5)
# summary(shortPathSpANet)
# export(shortPathSpANet,"shortPathSpANet",T)

Run the code above in your browser using DataCamp Workspace