This functions generates a heatmap of expression for defined group of genes and can highlight the clustering partition and another sample grouping, e.g. origin or cell type.
plotmarkergenes(
object,
genes,
imputed = FALSE,
cthr = 0,
cl = NULL,
cells = NULL,
order.cells = FALSE,
aggr = FALSE,
norm = FALSE,
cap = NULL,
flo = NULL,
samples = NULL,
cluster_cols = FALSE,
cluster_rows = TRUE,
cluster_set = FALSE,
samples_col = NULL,
zsc = FALSE,
logscale = TRUE,
noise = FALSE,
fontsize = 10
)Object with clustering information for rows and columns returned by the function pheatmap from the package pheatmap.
SCseq class object.
A vector with a group of gene names corresponding to a subset of valid row names of the ndata slot
of the SCseq object.
logical. If TRUE and imputing was done by calling compdist with knn > 0, then imputed expression values are shown.
If FALSE, then raw counts are shown. Default is FALSE
Interger number greater or equal zero. Only clusters with >cthr cells are included in the t-SNE map. Default is 0.
Vector of valid cluster numbers contained in slot cpart of the SCseq object. Default is NULL and all clusters with >cthr
cells are included.
Vector of valid cell names corresponding to column names of slot ndata of the SCseq object. Gene expression is only shown for
this subset.
Default is NULL and all cells are included. The set of cells is intersected with the subset of clusters in cl if given.
logical. If TRUE, then columns of the heatmap are ordered by cell name and not by cluster number. If cells are given, then columns are ordered as in cells.
logical. If TRUE, then only average expression is shown for each cluster. Default is FALSE and expression in individual cells is shown.
logical. If TRUE, then expression of each gene across clusters is normalized to 1, in order to depict all genes on the same scale.
Default is FALSE.
Numeric. Upper bound for gene expression. All values larger then cap are replaced by cap.
Default is NULL and no cap is applied.
Numeric. Lower bound for gene expression. All values smaller then flo are replaced by flo.
Default is NULL and no flo is applied.
A vector with a group of sample names for each cell in the same order as the column names of the ndata slot of the SCseq object.
logical. If TRUE, then columns are clustered. Default is FALSE.
logical. If TRUE, then rows are clustered. Default is TRUE.
logical. If TRUE then clusters are ordered by hierarchical clustering of the cluster medoids.
Vector of colors used for highlighting all samples contained in samples in the heatmap. Default is NULL.
logical. If TRUE then a z-score transformation is applied. Default is FALSE.
logical. If TRUE then a log2 transformation is applied. Default is TRUE.
logical. If TRUE then display local gene expression variability instead of gene expression (requires VarID analysis)/ Default value is FALSE.
postive real number. Font size of gene name labels. Default is 10.