write_interaction_score_input: Write edge lists and combined graphs to files

Description Usage Arguments

View source: R/interaction_score.R

Description

(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.

Usage

1
2
3
4
5
write_interaction_score_input(
  combined_graphs,
  drug_target_edgelists,
  saving_path
)

Arguments

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


molnet-org/molnet documentation built on Dec. 21, 2021, 8:59 p.m.