Skip to contents

This function processes the clustered hits in each element of `all_levels_clustering`, formats the gene names for easy copy-pasting into Enrichr, and returns the formatted gene lists as a string.

Usage

prepare_gene_lists_for_enrichr(all_levels_clustering, genes)

Arguments

all_levels_clustering

A list where each element contains a dataframe `clustered_hits` with columns `feature` and `cluster`.

genes

A vector of gene names corresponding to the feature indices.

Value

A character vector with the formatted gene lists for each cluster.