PlotPathwayScores: Plot pathway scores for given rows of cell

Description Usage Arguments Value Examples

View source: R/PlotPathwayScores.R

Description

A function that plot and illustrate the enrichment of a given pathway for given cells

Usage

1
PlotPathwayScores(pathway_scores, start, end, pathway_names)

Arguments

pathway_scores

Result get from AUCell_batch which contain the rank based on AUCell of every cells in a geneset.The rows contains the barcodes of each cell.

start

number of rows that you want start with

end

number of rows that you want end

pathway_names

the name of the pathway you want to compare with

Value

Returns a plot with y axis with cell barcodes and their expression level of certain pathways

Examples

1
2
3
4
5
expr <- load_expression("mf_patient02.csv")
pathway_scores <- AUCell_batch(counts(expr), genesets = c(hallmarks), num_batches=20)
Plot <- PlotPathwayScores(pathway_scores,1,3,HALLMARK_CHOLESTEROL_HOMEOSTASIS)
# Access plot
plot

MengyiShu/RASC documentation built on Dec. 17, 2021, 3:23 a.m.