Description Usage Arguments Value Examples
View source: R/pipeline_functions.R
This function takes the differential graph (generated in
differential_score
), 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 median of all differential scores of the
edges adjacent to all drug target nodes of a particular drug.
1 | get_drug_response_score(differential_graph, drug_targets, interaction_table)
|
differential_graph |
iGraph graph object containing differential scores for all edges.
Output of |
drug_targets |
Named list containing two elements ('target_nodes' and
'drugs_to_target_nodes'). Output of |
interaction_table |
Data frame. Element 'interaction_table' of 'drug_target_interaction'
created by |
Data frame containing drug name and associated differential drug response score
1 2 3 4 5 6 7 8 9 | data(drug_gene_interactions)
drug_target_interaction <- make_drug_target(target_molecules='protein',
interaction_table=drug_gene_interactions, match_on='gene_name')
data(drug_targets_example)
data(differential_score_graph_example)
drug_response_score <- get_drug_response_score(differential_score_graph_example,
drug_targets_example[["targets"]], drug_target_interaction$interaction_table)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.