HeatmapSortByTopic: Topic Heatmap - sorted by topic

View source: R/TopicHeatmaps.R

HeatmapSortByTopicR Documentation

Topic Heatmap - sorted by topic

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.

Usage

HeatmapSortByTopic(
  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

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


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