Description Usage Arguments Value Note Author(s) Examples
Graphs a functional Module (igraph) from scPPIN in Cytoscape. The more red the node the more highly expressed it is. If node is an ellipse it is a TF else it's not. Edge thickness corresponds to the correlation between the two nodes the thicker the more highly correlated. Edge color corresponds to correlation, the more red the more positively correlated the more blue the more negatively correlated.
1 | GraphInCytoscape(FM, name)
|
FM |
functional Module from scPPIN to be graphed |
name |
name of cluster being graphed |
No return value simply graphs the cluster as a network in Cytoscape
to use Cytoscape must be installed and opened. Called by getCyGraph
Matt Heffernan, University of Illinois at Chicago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
GraphInCytoscape <- function(FM=FM0, name="endothelial")
## The function is currently defined as
function(FM, name)
{
createNetworkFromIgraph(FM, title= name)
setNodeColorMapping('nodeScore', c(min(V(FM)$nodeScore), mean(V(FM)$nodeScore), max(V(FM)$nodeScore)), c('#F5EDDD', '#F59777', '#F55333'))
TFs <- readLines("TFs.txt")
table <- as_data_frame(FM,what=c("vertices"))
filtered <- table[table$name
TF <- filtered[,'name']
setNodeShapeBypass(node.names=TF, new.shapes="ELLIPSE")
setEdgeLineWidthMapping('weight',c(min(E(FM)$weight), mean(E(FM)$weight), max(E(FM)$weight)), widths = c(1,10,20))
setEdgeColorMapping('weight',c(min(E(FM)$weight), mean(E(FM)$weight), max(E(FM)$weight)), colors= c("#00008B", "#FFFFFF", "#EE4B2B"))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.