plot_sample_clustering {RNAseqQC}R Documentation

Plot clustering of samples in a distance heatmap

Description

Plot clustering of samples in a distance heatmap

Usage

plot_sample_clustering(
  se,
  n_feats = 500,
  anno_vars = NULL,
  anno_title = "group",
  distance = "euclidean",
  ...
)

Arguments

se

A SummarizedExperiment object.

n_feats

Number of top-variable features (genes) to consider

anno_vars

Character vector of columns in colData(se) to annotate samples

anno_title

The title of the color legend for anno_vars

distance

The type of distance metric to consider. Either 'euclidean', 'pearson' or 'spearman'

...

Other arguments passed on to ComplexHeatmap::Heatmap()

Value

A Heatmap-class object of the ComplexHeatmap package that contains the heatmap of pairwise sample distances.

Examples


library("DESeq2")
dds <- makeExampleDESeqDataSet(m=8, interceptMean=10)
vsd <- vst(dds)
plot_sample_clustering(vsd)


[Package RNAseqQC version 0.2.1 Index]