sig: A The number of combinations of significant cell-types to enrich.
gene_list_heatmap: Signature matrix of inputted genes in heatmap and the cell-type preferences -- output of heatmap generation.
background_heatmap: Signature matrix of background matrix in heatmap and cell-type preferences -- output of heatmap generation.
study_name: Name of the outputted table.
outDir: Name of the directory this table will be printed in.
toSave: Allow scMappR to write files in the current directory (T/F).
path: If toSave == TRUE, path to the directory where files will be saved.
Returns
coEnrich Enrichment of cell-types that are expressed by the same genes, up to 4 sets of cell-types.
Details
This function takes significantly enriched cell-types from the single CT_enrich before testing to see if the genes driving their enrichment are overlapping to a significant proportion using Fisher's exact test. To save computational time and to not complete this with an incredible number of permutations, scMappR stops at overlapping 5 cell-types.