PlotDimCoef: PlotDimCoef: Plot Dimensional Reduction with Cluster...

PlotDimCoefR Documentation

PlotDimCoef: Plot Dimensional Reduction with Cluster Coefficients

Description

This function plots dimensional reduction on a Seurat object with cluster coefficients (absolute or normalized).

Usage

PlotDimCoef(
  SeuratObj,
  scIdentObj,
  ms_celltypes = NULL,
  reduction,
  coef = "abs",
  ncol = NULL,
  nrow = NULL
)

Arguments

SeuratObj

A Seurat object containing single-cell RNA-seq data.

scIdentObj

The output object from the 'scIdent' function, containing deconvolution results.

ms_celltypes

A vector of cell types from the molecular signature to plot. Default is 'NULL', which plots all identified cell types.

reduction

The type of dimensional reduction to use (e.g., "pca", "tsne", "umap").

coef

A string indicating the type of coefficients to plot. Can be "abs" for absolute coefficients or "prop" for normalized coefficients. Default is "abs".

ncol

Number of columns for the facet wrap. Default is 'NULL'.

nrow

Number of rows for the facet wrap. Default is 'NULL'.

Value

Plots of dimensional reduction with cluster coefficients for each celltype detected by MIXTURE.


elmerfer/MIXTURE documentation built on Aug. 20, 2024, 8:03 p.m.