plotDiffHeatmap {CATALYST}R Documentation

Plot differential heatmap

Description

Heatmaps summarizing differental abundance & differential state testing results.

Usage

plotDiffHeatmap(x, y, ...)

## S4 method for signature 'matrix,SummarizedExperiment'
plotDiffHeatmap(x, y, top_n = 20,
  all = FALSE, order = TRUE, th = 0.1, ...)

## S4 method for signature 'daFrame,SummarizedExperiment'
plotDiffHeatmap(x, y, top_n = 20,
  all = FALSE, order = TRUE, th = 0.1, ...)

## S4 method for signature 'SummarizedExperiment,SummarizedExperiment'
plotDiffHeatmap(x, y,
  top_n = 20, all = FALSE, order = TRUE, th = 0.1, ...)

## S4 method for signature 'ANY,list'
plotDiffHeatmap(x, y, top_n = 20, all = FALSE,
  order = TRUE, th = 0.1, ...)

Arguments

x

a daFrame or SummarizedExperiment.

y

a SummarizedExperiment containing differential testing results as returned by one of testDA_edgeR, testDA_voom, testDA_GLMM, testDS_limma, or testDS_LMM. Alternatively, a list as returned by diffcyt.

...

optional arguments.

top_n

numeric. Number of top clusters (if type = "DA") or cluster-marker combinations (if type = "DS") to display.

all

logical. Specifies whether all clusters or cluster-marker combinations should be displayed. If TRUE, top_n will be ignored.

order

logical. Should results be ordered by significance?

th

numeric. Threshold on adjusted p-values below which clusters (DA) or cluster-marker combinations (DS) should be considered significant.

Details

For DA tests, plotDiffHeatmap will display

For DS tests, plotDiffHeatmap will display

Value

a HeatmapList-class object.

Author(s)

Lukas M Weber and Helena Lucia Crowell crowellh@student.ethz.ch

Examples

# construct daFrame
data(PBMC_fs, PBMC_panel, PBMC_md)
re <- daFrame(PBMC_fs, PBMC_panel, PBMC_md)

# run clustering
lineage <- c("CD3", "CD45", "CD4", "CD20", "CD33", 
    "CD123", "CD14", "IgM", "HLA_DR", "CD7")
re <- cluster(re, cols_to_use=lineage)

## differential analysis
library(diffcyt)

# create design & constrast matrix
design <- createDesignMatrix(PBMC_md, cols_design=3:4)
contrast <- createContrast(c(0, 1, 0, 0, 0))

# test for
# - differential abundance (DA) of clusters
# - differential states (DS) within clusters
da <- diffcyt(re, design = design, contrast = contrast, 
    analysis_type = "DA", method_DA = "diffcyt-DA-edgeR")
ds <- diffcyt(re, design = design, contrast = contrast, 
    analysis_type = "DS", method_DS = "diffcyt-DS-limma")
    
# display test results for
# - top DA clusters
# - top DS cluster-marker combintations
plotDiffHeatmap(re, da)
plotDiffHeatmap(re, ds)


[Package CATALYST version 1.4.2 Index]