create_gsea_plot_data: Creates a data.frame to make a GSEA plot

View source: R/plot_helpers.R

create_gsea_plot_dataR Documentation

Creates a data.frame to make a GSEA plot

Description

This function creates a data.frame which can be used to create the line plot of the enrichment score. It was taken and slightly modified from the plotEnrichment.

Usage

create_gsea_plot_data(query_idx, ordered_vec, gsea_weight = 0)

Arguments

query_idx

indexes of query which correpond to position in ordered_vec

ordered_vec

ordered vector of scores

gsea_weight

power to raise the ordered vector (see here for details.)


lefeverde/QSPpaper documentation built on Jan. 12, 2023, 11:14 a.m.