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

View source: R/interaction_score.R

write_interaction_score_inputR Documentation

[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
)

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.

Value

No return value, used internally


DrDimont documentation built on Sept. 23, 2022, 5:06 p.m.