Aggregate Gene Set List with Matching Coexpression in Parallel
aggregate_geneSetList_matching_coexp.Rd
This function swaps gene sets in geneSetList with those from sampled_geneSetList (with coexpression matched, see resample_geneSetList_matching_coexp) and aggregates gene set scores in parallel.
Usage
aggregate_geneSetList_matching_coexp(
geneList.true,
geneSetList,
sampled_geneSetList,
method,
n_cores = 1
)
Arguments
- geneList.true
A m x 1 matrix of true association values. Each row corresponds to a gene, and the column contains the association values between the gene and the brain.
- geneSetList
A list of gene sets.
- sampled_geneSetList
A list of sampled gene sets.
- method
The method to be used for aggregation.
- n_cores
Number of cores to use for parallel processing. Default is 1. If set to 0, it uses all available cores minus one.