View source: R/scanpyFunctions.R
plotScanpyMarkerGenesHeatmap | R Documentation |
plotScanpyMarkerGenesHeatmap
plotScanpyMarkerGenesHeatmap(
inSCE,
groups = NULL,
groupBy,
nGenes = 10,
features = NULL,
log2fcThreshold = NULL
)
inSCE |
Input |
groups |
The groups for which to show the gene ranking. Default |
groupBy |
The key of the observation grouping to consider. By default, the groupby is chosen from the rank genes groups parameter. |
nGenes |
Number of genes to show. Default |
features |
Genes to plot. Sometimes is useful to pass a specific list of var names (e.g. genes). The var_names could be a dictionary or a list. |
log2fcThreshold |
Only output DEGs with the absolute values of log2FC
larger than this value. Default |
plot object
data(scExample, package = "singleCellTK")
## Not run:
sce <- runScanpyNormalizeData(sce, useAssay = "counts")
sce <- runScanpyFindHVG(sce, useAssay = "scanpyNormData", method = "seurat")
sce <- runScanpyScaleData(sce, useAssay = "scanpyNormData")
sce <- runScanpyPCA(sce, useAssay = "scanpyScaledData")
sce <- runScanpyFindClusters(sce, useReducedDim = "scanpyPCA")
sce <- runScanpyFindMarkers(sce, colDataName = "Scanpy_louvain_1" )
plotScanpyMarkerGenesHeatmap(sce, groupBy = 'Scanpy_louvain_1')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.