apply_hub_corrections: Apply hub corrections to the weighted integrated ligand-signaling and gene regulatory network
Description
apply_hub_corrections downweighs the importance of nodes with a lot of incoming links in the ligand-signaling and/or gene regulatory network. Hub correction method according to following equation: \(Wcor =W * D^-h\) with \(D\) the indegree matrix of the respective network and \(h\) the correction factor.
A list of two elements: lr_sig: a data frame/ tibble containg weighted ligand-receptor and signaling interactions (from, to, weight); and gr: a data frame/tibble containng weighted gene regulatory interactions (from, to, weight)
lr_sig_hub
a number between 0 and 1. 0: no correction for hubiness; 1: maximal correction for hubiness.
gr_hub
a number between 0 and 1. 0: no correction for hubiness; 1: maximal correction for hubiness.
Value
A list containing 2 elements (lr_sig and gr): the hubiness-corrected integrated weighted ligand-signaling and gene regulatory networks in data frame / tibble format with columns: from, to, weight.