View source: R/interaction_score.R
(INTERNAL) Writes the combined graphs and the drug target edge lists to files for passing them to the python interaction score script. Graphs are saved as 'gml' file. Edgelists are saved as 'tsv' file.
1 2 3 4 5 | write_interaction_score_input(
combined_graphs,
drug_target_edgelists,
saving_path
)
|
combined_graphs |
A named list (elements 'group1' and 'group2'). Each element contains the entire combined network (layers + inter-layer connections) as iGraph graph object. |
drug_target_edgelists |
A named list (elements 'group1' and 'group2'). Each element contains the list of edges to be considered in the interaction score calculation as data frame (columns 'from', 'to' and 'weight') |
saving_path |
Directory to write to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.