View source: R/runsRGES_ultimate.R
runsRGES | R Documentation |
Compute sRGES, a score indicating the reveral potency of each drug. It first computes RGES (Reverse Gene Expression Score) for individual instances and then summarizes RGES of invididual drugs (one drug may have multiple instances under different treatment conditions).
runsRGES(dz_signature=NULL,choose_fda_drugs = FALSE,max_gene_size=500, cells=NULL,output=FALSE,outputFolder='',weight_cell_line=NULL,permutations=10000)
dz_signature |
disease signature. Make sure input data frame has a gene |
choose_fda_drugs |
if |
max_gene_size |
maximum number of disease genes used for drug prediction. By default 50 for each side (up/down). |
cells |
cell ids in |
weight_cell_line |
by default |
permutations |
number of permutations, by default 10000. |
output |
if |
outputFolder |
folder path to store drug results, by default write results to working directory. |
The function returns RGES data.frame |
containing scores and p.values for every instance. |
Besides, a number of additional files in the sourced directory:
dz_sig_used.csv |
contains genes in the disease signature used for computing reverse gene expression scores. |
sRGES.csv |
contains the same data as returned data.frame. |
all__lincs_score.csv |
includes information of RGES. |
diffExp, octadDrugEnrichment, computeCellLine, topLineEval
#load differential expression example for HCC #vs adjacent liver tissue computed in diffExp() function data("res_example",package='octad') res_example=subset(res_example,abs(log2FoldChange)>1&padj<0.001)[1:10,] #run sRGES computation #sRGES=runsRGES(dz_signature=res_example,max_gene_size=100,permutations=1000,output=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.