generatePlot: Produce Network Plot

Description Usage Arguments Details Value Examples

Description

Produces a network plot of the specified genes and their neighbors (if desired)

Usage

1
2
generatePlot(centralGenes, order = 0, colorGenes = centralGenes,
  makeTkplot = F, spreadNodes = F, ...)

Arguments

centralGenes

character vector. The HUGO names of the genes that around which the network plot will be centered

order

single integer, by default 0, The degree of neighboring genes that will be included. A value of zero means no neighboring genes are included

colorGenes

character vector. By default, is equal to centralGenes. The HUGO names of the genes that will be colored red. The rest of the genes will be colored orange.

makeTkplot

TRUE or FALSE. By default is FALSE. If TRUE, create a tkplot instead of a standard igraph so you can edit it with the GUI.

spreadNodes

TRUE or FALSE. By default is FALSE. If TRUE, uses Fruchterman Reingold algorithm to try to spread the vertices of the graph out further.

...

arguments passed to plot.igraph function

Details

Plots a graph of the network of genes centered around the centralGenes, including neighbors out to the degree of "order". Any additional parameters for the plot.igraph function may be passed as well.

Vertices are colored red if they are in centralGenes and orange otherwise.

Edges are colored red if the interaction exists in the PPI and the two vertices share a complex. Edges are colored black if the interaction exists in the PPI but the two vertices do not share a complex. Edges are colored green if the two vertices share a complex but do not interact in the PPI.

Complexes are plotted as ellipses circling the vertices. Vertices that are not circled are not part of any complex. Vertices which are circled individually are part of a complex but none of the other genes are included in this graph.

Value

A plot of the subnetwork

Examples

1
2
3
4
data("hits")
data("hits.pheno")
test <- runComplexID(Hits = hits,phenoSim=hits.pheno,promoterRange = 10000,upstream = 1000,downstream = 1000,utr = T)
generatePlot(test$scores$HUGO.Gene.Name[1:10])

pryabinin/ComplexID documentation built on May 8, 2019, 1:14 p.m.