M3DropGetHeatmapCellClusters {M3Drop}R Documentation

Extracts cell clusters from heatmap output

Description

Extracts the clustering correponding to the given number of clusters from heatmap output.

Usage

M3DropGetHeatmapCellClusters(heatout, k)

Arguments

heatout

Output from a gene-expression heatmap.

k

Number of clusters.

Details

Traverses down the dendrogram and cuts at the first point where there are at least k clusters.

Value

A vector of cluster labels for each cell.

Examples

  library(M3DExampleData)
  genes <- rownames(Mmus_example_list$data)[1:20]
  heatmap_out <- M3DropExpressionHeatmap(genes, Mmus_example_list$data)
  clusters <- M3DropGetHeatmapCellClusters(heatmap_out, k=5)

[Package M3Drop version 1.8.1 Index]