Learn R Programming

DrDimont (version 0.1.4)

write_interaction_score_input: [INTERNAL] Write edge lists and combined graphs to files

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. Edge lists are saved as `tsv` file.

Usage

write_interaction_score_input(
  combined_graphs,
  drug_target_edgelists,
  saving_path
)

Value

No return value, used internally

Arguments

combined_graphs

[list] A named list (elements `groupA` and `groupB`). Each element contains the entire combined network (layers + inter-layer connections) as iGraph graph object.

drug_target_edgelists

[list] A named list (elements `groupA` and `groupB`). 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

[string] Path to save intermediate output of DrDimont's functions. Default is current working directory.