View source: R/construct_ligand_to_target.R
construct_weighted_networks | R Documentation |
construct_weighted_networks
construct layer-specific weighted integrated networks from input source networks via weighted aggregation.
construct_weighted_networks(lr_network, sig_network, gr_network,source_weights_df, n_output_networks = 2)
lr_network |
A data frame / tibble containing ligand-receptor interactions (required columns: from, to, source) |
sig_network |
A data frame / tibble containing signaling interactions (required columns: from, to, source) |
gr_network |
A data frame / tibble containing gene regulatory interactions (required columns: from, to, source) |
source_weights_df |
A data frame / tibble containing the weights associated to each individual data source. Sources with higher weights will contribute more to the final model performance (required columns: source, weight). Note that only interactions described by sources included here, will be retained during model construction. |
n_output_networks |
The number of output networks to return: 2 (ligand-signaling and gene regulatory; default) or 3 (ligand-receptor, signaling and gene regulatory). |
A list containing 2 elements (lr_sig and gr) or 3 elements (lr, sig, gr): the integrated weighted ligand-signaling and gene regulatory networks or ligand-receptor, signaling and gene regulatory networks in data frame / tibble format with columns: from, to, weight.
## Not run:
## Generate the weighted networks from input source networks
wn = construct_weighted_networks(lr_network, sig_network, gr_network,source_weights_df)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.