tableEdges | R Documentation |
tableEdges
creates a table of the total number of connections (edges) for each
unique pair of annotations within a tree over all nodes.
tableEdges(graph, field, indirect = FALSE, exclude = NULL)
graph |
igraph object containing an annotated lineage tree. |
field |
string defining the annotation field to count. |
indirect |
if |
exclude |
vector of strings defining |
A data.frame defining total annotation connections in the tree with columns:
parent
: parent annotation
child
: child annotation
count
: count of edges for the parent-child relationship
See testEdges for performed a permutation test on edge relationships.
# Define example graph
graph <- ExampleTrees[[23]]
# Count direct edges between isotypes including inferred nodes
tableEdges(graph, "c_call")
# Count direct edges excluding edges to and from germline and inferred nodes
tableEdges(graph, "c_call", exclude=c("Germline", NA))
# Count indirect edges walking through germline and inferred nodes
tableEdges(graph, "c_call", indirect=TRUE, exclude=c("Germline", NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.