compute_drug_response_scores function

Calculate drug response score

Calculate drug response score

This function takes the differential graph (generated in generate_differential_score_graph), the a drug targets object (containing target node names and drugs and their targets; generated in determine_drug_targets) and the supplied drug-target interaction table (formatted in make_drug_target) to calculate the differential drug response score. The score is the mean or median of all differential scores of the edges adjacent to all drug target nodes of a particular drug.

compute_drug_response_scores(differential_graph, drug_targets, settings)

Arguments

  • differential_graph: iGraph graph object containing differential scores for all edges. (output of generate_differential_score_graph)
  • drug_targets: [list] Named list containing two elements (target_nodes and drugs_to_target_nodes). targets from output of determine_drug_targets. target_nodes is a vector containing network node names of the nodes that are targeted by the available drugs. drugs_to_target_nodes is a dictionary-like list that maps drugs to the nodes that they target.
  • settings: [list] A named list containing pipeline settings. The settings list has to be initialized by drdimont_settings. Items in the named list can be adjusted as desired.

Returns

Data frame containing drug name and associated differential (integrated) drug response score

Examples

data(drug_target_edges_example) data(differential_graph_example) example_settings <- drdimont_settings() example_drug_response_scores <- compute_drug_response_scores( differential_graph=differential_graph_example, drug_targets=drug_target_edges_example$targets, settings=example_settings)
  • Maintainer: Katharina Baum
  • License: MIT + file LICENSE
  • Last published: 2022-09-23

Useful links