Description Usage Arguments Value Examples
View source: R/pipeline_functions.R
Function to transform input data to required input format for
start_pipeline
. Here the data needed to define drug-target interactions is
formatted. When the reformatted output is passed to start_pipeline
as
drug_target_interaction
argument, the differential drug response score will be
calculated for all the supplied drugs in interaction_table
.
1 | make_drug_target(target_molecules, interaction_table, match_on)
|
target_molecules |
Name of layer containing the drug targets. This name has to match the
corresponding named item in the list of layers supplied to |
interaction_table |
Data frame. Has to contain two columns. Additional columns will be
ignored in the pipeline.
* A column called 'drug_name' containing names or identifiers of drugs
* A column with a name that matches an identifier in the layer supplied in 'target_molecules'.
For example, if drugs target proteins and an identifier called 'ncbi_id' was supplied in layer
building of the protein layer ( |
match_on |
Column name of the data frame supplied in 'interaction_table' that is used for matching drugs and target nodes in the graph (e.g. 'ncbi_id'). |
Named list of the input parameters in input format of start_pipeline
.
1 2 3 | data(drug_gene_interactions)
drug_target_interaction <- make_drug_target(target_molecules='protein',
interaction_table=drug_gene_interactions, match_on='gene_name')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.