get_hub_genes | R Documentation |
Return genes considered as hub genes inside each module of a network
following the selected method. Method will be lauched with default
parameters. If specific parameters desired, please use directly the
function get_hub_...
itself.
get_hub_genes(
network,
modules = NULL,
method = c("highest connectivity", "superior degree", "Kleinberg's score")
)
network |
matrix or data.frame, square table representing connectivity between each genes as returned by build_net. Can be whole network or a single module. |
modules |
list, modules defined as list of gene vectors. If null, network is supposed to be the whole network or an already split module |
method |
string, name of the method to be used for hub gene detection. See details. |
Select the top n (n depending on parameter given) highest connected genes. Similar to WGCNA::chooseTopHubInEachModule.
Select genes which degree is greater than average connection degree of the network. Definition from network theory.
Select genes which Kleinberg's score superior to provided threshold.
A list of vectors representing hub genes, by module
mat <- matrix(runif(40*40), 40)
colnames(mat) <- paste0("gene_", seq_len(ncol(mat)))
rownames(mat) <- paste0("gene_", seq_len(nrow(mat)))
get_hub_genes(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.