Skip to contents

The function build a gene-set list compatible with `gs_cross-talk()` for cross-talk calculation starting from a provided gene set database and genes (with weights) of interest.

Usage

preparing_gs_list(gs_names, gs_genes, weights, min_size = 1, max_size = 500)

Arguments

gs_names

names of the gene-sets, to be used to build the gene-set list. Should have the same length of `gs_gene`

gs_genes

names of the genes in the gene-sets `gs_genes`

weights

named vector with a weight for each gene in `gs_gene`. If `NULL` the function assigns `1` to each gene

min_size, max_size

filtering the gene sets to maintain only the ones that have at least `min_size` or less than `max_size` number of genes

Value

The output is a gene-set list with a vector for each gene-set, composed by weights named after the genes

Details

`preparing_gs_list()` uses a gene-set database data to build the list needed by `gs_cross_talk()` for cross-talk calculation.