SavePathway2File: Save a pathway-result network to a file which can be input to...

Description Usage Arguments Author(s) Examples

Description

Save a pathway-result network to a file which can be input to the Cytoscape software.

Usage

1
  SavePathway2File(network, layout = layout.random, name = "network", file = "Graph")

Arguments

network

A dataframe of pathway-result network obtained from the ESEA.main function

layout

A matrix of x-y coordinates with two dims. Determine the placement of the nodes for drawing a graph.The default is "layout.random".

name

The required variables for XGMML.destription. The default is "network"

file

A character string for file name. The default is "Graph"

Author(s)

Junwei Han <hanjunwei1981@163.com>, Xinrui Shi<xinrui103@163.com> and Chunquan Li <lcqbio@163.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## Not run: 

#get example data
dataset<-GetExampleData("dataset")
class.labels<-GetExampleData("class.labels")
controlcharactor<-GetExampleData("controlcharactor")

#get the data for background set of edges
edgesbackgrand<-GetEdgesBackgrandData()

#get the edge sets of pathways
pathwayEdge.db<-GetPathwayEdgeData()

#calculate the differential correlation score for edges
EdgeCorScore<-calEdgeCorScore(dataset, class.labels, controlcharactor,edgesbackgrand)

#identify dysregulated pathways by using the function ESEA.Main
#Results<-ESEA.Main(EdgeCorScore,pathwayEdge.db)
Results<-GetExampleData("PathwayResult")

#obtain the detail results of genes for a significant pathway
PathwayNetwork<-Results[[2]][[1]]

#save the pathway-result network to a file which can be input to the Cytoscape software. 
SavePathway2File(PathwayNetwork,layout=layout.circle,file="Graph")
  			

## End(Not run)

ESEA documentation built on May 2, 2019, 3:41 p.m.