Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.45 KB

README.md

File metadata and controls

15 lines (10 loc) · 1.45 KB

Rtools

A collection of R scripts for various purposes. Currently only contains functions for GSEA of gene expression data.

Based on the script for GSEA barcode plotting from https://github.com/PeeperLab/Rtoolbox, I have implemented my own versions of the scripts for handling the output from the fgsea R package.

replotFGSEA

Like the original version from PeeperLab, replotGSEA re-plots data from a GSEA in R. The function relies on processed gene expression data which was the input to fgseaLabel (stats). It further takes the name of a gene set (gene.set.name), a list of gene sets (gene.sets), the fgsea object (fgsea), the name of the variable that is used to rank genes (class.name) and a range of enrichment scores for consistent plotting across multiple gene sets (enrichment.score.range). The last argument may be omitted. Use is exemplified in this script.

replot_FGSEA plot

replot_multiFGSEA

This function plots several barcode plots as one by overlaying the enrichment plots and displaying the barcodes for each separately. It takes the same arguments as above, except for the name of the gene set to plot. Use is exemplified in this script.

replot_multiFGSEA plot