Description Usage Arguments Value See Also Examples
View source: R/runsRGES_ultimate.R
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).
1 2 |
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 |
outputFolder |
folder path to store drug results, by default write results to working directory. |
weight_cell_line |
by default |
permutations |
number of permutations, by default 10000. |
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
1 2 3 4 5 6 7 8 | HCC_primary=subset(phenoDF,cancer=='liver hepatocellular carcinoma'&sample.type == 'primary') #select data
case_id=HCC_primary$sample.id #select cases
HCC_adjacent=subset(phenoDF,cancer=='liver hepatocellular carcinoma'&sample.type == 'adjacent'&data.source == 'TCGA') #select data
control_id=HCC_adjacent$sample.id #select cases
res=diffExp(case_id,control_id,source='octad.small',output=TRUE)
res=subset(res,abs(log2FoldChange)>2)
#run sRGES computation
runsRGES(dz_signature=res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.