Prep clusterProfiler geneList Adapts code from https://github.com/YuLab-SMU/DOSE/wiki/how-to-prepare-your-own-geneList.

prep_clusterprofiler_genelist(gene_and_metric_df)

Arguments

gene_and_metric_df

two column df with Entrez ID as col1 and metric(log2FC or F etc) as col2