Description Usage Arguments Value Examples
Calculate the adjacency matrix of the signed undirected graph of the pathway topology
1 | CalcAdj(EdgeFrom,EdgeTo,interaction)
|
EdgeFrom |
A character vector of gene symbols of one end of the edges. |
EdgeTo |
A character vector of gene symbols of the other end of the edges. |
interaction |
A numeric vector with components of 1 and -1 to denote activation and inhibition for the edges. |
If the graph of the pathway topology is balanced (no conflict in the interactions), then a numeric adjacency matrix is returned. The row names and column names are the nodes in the pathway.
1 2 3 4 5 | # obtain edge information of a pathway
Edges <- AllEdges[AllEdges$Pathway=="hsa04150",]
# calculate the signed adjacency matrix of the pathway topology
CalcAdj(EdgeFrom=Edges$GeneSymbol_a,EdgeTo=Edges$GeneSymbol_b,interaction=Edges$Interaction)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.