Skip to contents

Correlates a target gene against a vector of candidate genes and returns a summary data frame sorted by absolute correlation.

Usage

correlate_genes_batch(
  expr_matrix,
  target_gene,
  candidate_genes,
  method = c("pearson", "spearman")
)

Arguments

expr_matrix

Numeric matrix (genes x samples)

target_gene

Gene name to correlate against

candidate_genes

Character vector of gene names to test

method

Correlation method: "pearson" or "spearman"

Value

Data frame with columns: gene, estimate, p_value, padj, n_samples, method

See also