get_hub_high_co: Determine hub genes based on connectivity

View source: R/topology.R

get_hub_high_coR Documentation

Determine hub genes based on connectivity

Description

Compute connectivity of each gene by module if provided or for whole network if not, and return the top_n highest connected ones.

Usage

get_hub_high_co(network, modules = NULL, top_n = 5)

Arguments

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

top_n

integer, number of genes to be considered as hub genes

Value

A list of vectors, or single vector of gene names

Examples

mat <- matrix(runif(40*40), 40)
colnames(mat) <- paste0("gene_", seq_len(ncol(mat)))
rownames(mat) <- paste0("gene_", seq_len(nrow(mat)))
get_hub_high_co(mat)


Kumquatum/GWENA documentation built on July 7, 2023, 3:41 p.m.