This function runs through each list of cell weighted Fold changes (cwFold-changes) and completes both pathway and transcription factor (TF) enrichment.
cellWeighted_Foldchange_matrix: Matrix of cell weighted Fold changes from the deconvolute_and_contextualize functions.
species: Human, mouse, or a name that is compatible with gProfileR (e.g. "mmusculus").
background: A list of background genes to test against.
gene_cut: The top number of genes in pathway analysis.
newGprofiler: Using gProfileR or gprofiler2, (T/F).
Returns
List with the following elements: - BP: gprofiler enrichment of biological pathways for each cell-type
TF: gprofiler enrichment of transcription factors for eachc cell-type.
Details
This function takes a matrix of cellWeighted_Foldchange and a species (human, mouse, or a character directly compatible with g:ProfileR). Before completing pathway analysis with g:ProfileR. Enriched pathways are stored in a list and returned.