getproj {RaceID}R Documentation

Extract Projections of all Cells from a Cluster

Description

This function extracts projections of all cells in a cluster and plots a heatmap of these hierarchically clustered projections (rows) to all other clusters (columns). A minimum spanning tree of the cluster centers is overlaid for comparison.

Usage

getproj(object, i, show = TRUE, zscore = FALSE)

Arguments

object

Ltree class object.

i

Cluster number. This number has to correspond to one of the RaceID3 clusters included for the StemID2 inference, i.e. to a number present in slot ldata$lp.

show

logical. If TRUE, then plot heatmap of projections. Default is TRUE.

zscore

logical. If TRUE and show=TRUE, then plot z-score-transformed projections. If TRUE and show=FALSE, then plot untransformed projections. Default is FALSE.

Value

A list ot two components:

pr

a data.frame of projections for all cells in cluster i (rows) onto all other clusters (columns).

prz

a data.frame of z-transformed projections for all cells in cluster i (rows) onto all other clusters (columns).


[Package RaceID version 0.3.5 Index]