Skip to contents

Estimates uncertainty in the correlation difference between ancestries X and Y (relative to reference R), using non-stratified bootstrap resampling within ancestries.

Usage

boot_correlation_diff(
  X,
  Y,
  R,
  MX,
  MY,
  MR,
  g_col,
  method = c("pearson", "spearman"),
  B = 1000,
  seed = NULL,
  alpha = 0.05
)

Arguments

X

Expression matrix for ancestry X (samples x genes)

Y

Expression matrix for ancestry Y

R

Expression matrix for reference ancestry

MX

Metadata for X

MY

Metadata for Y

MR

Metadata for R

g_col

Column in metadata specifying condition/group (factor with 2 levels)

method

Correlation method: "pearson" (default) or "spearman"

B

Number of bootstrap samples

seed

Optional seed for reproducibility

alpha

Significance level (e.g., 0.05 for 95% CI)