Description Usage Arguments Details Value
View source: R/script_node_centrality_scores.R
Determine three node centrality measures (node degree, clustering coefficient and betweenness) for a given ppi network.
1 2 3 4 5 6 7 8 | node.centrality(
ppi_network,
tissue_expr_data,
agg_function = 4,
directed_network = F,
parallel = NULL,
verbose = FALSE
)
|
ppi_network |
a matrix or a data frame with at least two columns
reporting the ppi connections (or edges). Each line corresponds to a direct interaction.
Columns give the gene IDs of the two interacting proteins.
Only interactions whose destination nodes match with the IDs provided in |
tissue_expr_data |
numeric matrix or data frame indicating expression significances in the form of Z-scores. Columns are tissues and rows are genes; colnames and rownames must be provided. |
agg_function |
integer value between 1 and 4. Provides control over Borda aggregation functions.
1 for |
directed_network |
boolean value indicating the use of a direct network. Defaults to FALSE. |
parallel |
an integer indicating how many cores will be registered for parallel computation. If NULL, the function will not use parallel computation. |
verbose |
logical to indicate whether the messages will be displayed or not in the screen. |
The three scores are merged with the Borda method. See \insertRefFailli2019ThETA, for more details.
a list of 4 items:
- scores: three centrality scores compiled for each <gene, tissue> pair (list of matrices with genes on the rows and scores on the columns);
- ranks: node rankings (list of matrices with genes on the rows and ranks on the columns);
- borda: the borda count merging the node rankings (a matrix with genes on the rows and the borda-based rank on the columns/tissues);
- borda: a list of discretized borda counts for each tissue.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.