Build list for cross-talk calculation
build_S_list.Rd
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.
Arguments
- S_tab
a table composed by two (mandatory) or three columns: the first contain the names of the gene sets, the second the name of the genes. The third column (if provided) should be the gene weights. If `ncol(S_tab) == 3`, `g_u` param is ignored weights in the gene sets (i.e.: cell-cell communication), there should be a third column with the weights of each gene in the gene sets.
- g_u
named vector. Should contain the genes (as names) and their weights. Ignored if `ncol(S_tab) == 3`.
- universe
genes in the adjacency matrix that will be used in `gs_cross_talk()`. Set to `NULL` to skip filtering
- 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. Set to `NULL` to skip filtering