createPandaStyle: Create a Cytoscape visual style for PANDA network

View source: R/createPandaStyle.R

createPandaStyleR Documentation

Create a Cytoscape visual style for PANDA network

Description

This function is able to create a Cytoscape visual style for any PANDA network output.

Usage

createPandaStyle(style_name = "PandaStyle")

Arguments

style_name

Character string indicating the style name. Defaults to "PandaStyle"

Value

A visual style in Cytoscape Control Panel under "Style" button.

Examples

# Here we will load a customized visual style for our network, in which TF 
# nodes are orange circles, target gene nodes are blue squares, and edges 
# shade and width are the edge weight (likelyhood of regulatory interaction 
# between the TF and gene). You can further customize the network style 
# directly from Cytoscape.

sampleNet <- data.frame("TF"=c("TF1", "TF2", "TF3"),
  "Gene"=c("gene1", "gene2", "gene3"),"Motif"=NA,
  "Score"=c(1,2,3),stringsAsFactors = FALSE)
visPandaInCytoscape(sampleNet, network_name="sample")
createPandaStyle(style_name="PandaStyle")


netZoo/netZooR documentation built on Oct. 16, 2024, 10:23 p.m.