HeatmapSortByTopicAsWellAsAnno: Topic Heatmap - sorted by topic and annotation

View source: R/TopicHeatmaps.R

HeatmapSortByTopicAsWellAsAnnoR Documentation

Topic Heatmap - sorted by topic and annotation

Description

This function produces a Heatmap showing how much each cell lies within each topic. The cells in the Heatmap are sorted based on their scores in a given topic. The annotations are also sorted by their values.

Usage

HeatmapSortByTopicAsWellAsAnno(
  Object,
  topics,
  sortByTopic = "Topic_1",
  AnnoVector,
  AnnoName,
  clusterTopics = F
)

Arguments

Object

Seurat object containing the data the model was created with.

topics

document-topic matrix

sortByTopic

topic to be sorted by

AnnoVector

Vector of cell annotations

AnnoName

Name of cell annotation

clusterTopics

Logical whether to cluster topics or not

Value

pheatmap object

Examples

HeatmapSortByTopicAsWellAsAnno(SeuratObj, DocTopMat, "Topic_16", SeuratObj$annotation, "NameOfAnnotation")


JuliusCampbell/TITAN documentation built on May 24, 2023, 3:42 p.m.