
Identify hub genes by degree centrality
identify_hub_genes.RdCalculates degree centrality for all nodes in a PPI network and returns the top-ranked hub genes.
Arguments
- graph
An
igraphobject (frombuild_ppi_network()).- top_n
Number of top hub genes to return. Default
10.
Value
A named numeric vector of degree centrality values for the top hub genes, sorted in descending order.
Examples
if (FALSE) { # \dontrun{
ppi <- query_string_ppi(c("TP53", "BRCA1", "EGFR", "VEGFA", "TNF"))
g <- build_ppi_network(ppi, c("TP53", "BRCA1", "EGFR", "VEGFA", "TNF"))
hubs <- identify_hub_genes(g, top_n = 5)
print(hubs)
} # }