View source: R/createPandaStyle.R
createPandaStyle | R Documentation |
This function is able to create a Cytoscape visual style for any PANDA network output.
createPandaStyle(style_name = "PandaStyle")
style_name |
Character string indicating the style name. Defaults to "PandaStyle" |
A visual style in Cytoscape Control Panel under "Style" button.
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.