This function swaps the original values of a gene set (orig_gs
) with the sampled gene sets (sampled_gs
) within the given geneList.true
.
The resulting geneList.null
is in the same format as generated by other approaches.
Usage
swap_geneList(geneList.true, orig_gs, sampled_gs)
Arguments
- geneList.true
A matrix representing the true gene list, with dimensions m x 1.
- orig_gs
A vector of original gene set identifiers.
- sampled_gs
A list of sampled gene sets, each being a vector of gene identifiers.
Value
A matrix where each column represents a null gene list generated by swapping orig_gs
with each set in sampled_gs
.