Simple Permutation-Based Interaction Test (No Bootstrapping, No Convergence)
Source:R/perm_interaction_effect.R
perm_interaction_effect.Rd
Tests if condition effects (g1 vs g2) are different between ancestries using permutation.
Arguments
- X
Expression matrix for ancestry A (samples x genes)
- Y
Expression matrix for ancestry B (samples x genes)
- MX
Metadata for X (must include group and ancestry columns)
- MY
Metadata for Y
- g_col
Column in metadata for condition/group (factor with 2 levels)
- B
Number of permutations
- seed
Optional seed for reproducibility
- permute
Logical. Whether to perform permutation test