Skip to contents

This function takes a GO enrichment result (e.g. clusterProfiler output) and visualizes the top enriched categories. Top terms can be selected by different metrics.

Usage

.parse_ratio_to_numeric(x)

Arguments

GO_df

A GO enrichment result data frame.

topn

Number of categories to show.

label_format

Width for wrapped text labels.

group_by

Metric used to choose topN terms. One of "-log10(p.adjust)", "GeneRatio", "RichFactor", "Count". Default is "-log10(p.adjust)".

Value

A ggplot object.