Annotate a SingleCellExperiment With Cell-type Metrics

annotate_celltype_metrics(
  sce,
  cluster_var = "clusters",
  celltype_var = "cluster_celltype",
  unique_id_var = "manifest",
  facet_vars = c("manifest", "group", "sex"),
  input_reduced_dim = "UMAP_Liger",
  metric_vars = c("pc_mito", "pc_ribo", "total_counts", "total_features_by_counts"),
  ...
)

Arguments

sce

a SingleCellExperiment object

cluster_var

the colData variable with the cluster numbers

celltype_var

the colData variable with the celltype alias

unique_id_var

the colData variable with the unique sample name

facet_vars

the colData variable(s) for grouped analyses

input_reduced_dim

the reducedDim slot used for clustering

metric_vars

the numeric colData variable(s) for metric comparisons

...

additional parameters

Value

sce a annotated SingleCellExperiment object