This function visualizes all features from runFishers() ranked by BH-adjusted p-value and explicitly highlights those that pass the significance threshold. Optionally, the top N most significant features can be labeled.

plotFishers(fisher_df, alpha = 0.05, label_top_n = 5)

Arguments

fisher_df

A data frame returned by runFishers() containing at minimum the columns:

  • gene

  • adj_p_value

  • sig_after_bh

alpha

BH-adjusted significance threshold. Default is 0.05.

label_top_n

Number of top-ranked features to label. Default is 5. Set to 0 to disable labeling.

Value

A ggplot2 object.

Details

Each point represents a feature. Color explicitly encodes whether a feature passes the BH threshold. Labels are applied only to the top-ranked features to preserve clarity.

Examples

if (FALSE) { # \dontrun{
plotFishers(fisher_results)
plotFishers(fisher_results, label_top_n = 0)
} # }