compute_drug_response_scores {DrDimont} | R Documentation |
Calculate drug response score
Description
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.
Usage
compute_drug_response_scores(differential_graph, drug_targets, settings)
Arguments
differential_graph |
iGraph graph object containing differential scores for all edges.
(output of |
drug_targets |
[list] Named list containing two elements ('target_nodes' and
'drugs_to_target_nodes'). 'targets' from output of |
settings |
[list] A named list containing pipeline settings. The settings list has to be
initialized by |
Value
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)