View source: R/func__networkAnalyser__countNeighbours.R
countNeighbours | R Documentation |
Count how many neighbours does each node have in a network. The function treats the network as undirected.
countNeighbours(net, groups = NULL, na = "Mix")
net |
A Graph object, which can be created by the function mkNetwork. |
groups |
A data frame mapping alleles to groups, such as genes. The first column stores allele names and the second column stores group information. |
na |
A character argument specifying the default group in the output. |
When groups != NULL, the function returns a list of two data frames for allele-level and gene-level neighbour counts, respectively. Otherwise, a single data frame of allele-level neighbour counts is returned.
Yu Wan (wanyuac@126.com)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.