query_cor: Run Correlation Query

Description Usage Arguments Value

View source: R/query.R

Description

Run Correlation Query

Usage

1
query_cor(query_genes, drug_info, ngenes = 100, method = "pearson")

Arguments

query_genes

Numeric vector of effect size values with genes as names.

drug_info

Matrix of effect size values to query against. Rows names are genes, column names are signature names.

ngenes

Number of top upregulated and number of top downregulated query_genes that are in common with genes in drug_info.

method

a character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman": can be abbreviated.

Value

Vector of query values with names of corresponding signature in drug_info sorted by decreasing similarity.


alexvpickering/ccbench documentation built on April 11, 2020, 12:28 a.m.