query_drugs | R Documentation |
Determines the pearson correlation between the query and each drug signature.
query_drugs(query_genes, drug_es, ngenes = 200)
query_genes |
Named numeric vector of differential expression values for query genes. Names are HGNC symbols. |
drug_es |
A matrix of differential expression values for drugs. |
ngenes |
The number of top differentially-regulated (up and down) query genes to use. |
Drugs with the largest positive and negative pearson correlation are predicted to, respectively, mimic and reverse the query signature. Values range from +1 to -1.
Named vector of pearson correlations between query and drug combination signatures.
# load CMAP02 data
cmap_es <- dseqr.data::load_data('cmap_es_ind.qs')
# use first cmap_es signature as query
dprimes <- cmap_es[1:100, 1]
names(dprimes) <- row.names(cmap_es)[1:100]
# get correlations between query and drug signatures
res <- dseqr:::query_drugs(dprimes, cmap_es)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.