R/plotQCvsAnnotation.R
plotQCvsAnnotation.Rd
Creates a scatter plot to visualize the relationship between QC stats (e.g., library size) and cell type annotation scores for one or more cell types.
plotQCvsAnnotation(
se_object,
cell_type_col,
cell_types = NULL,
qc_col,
score_col
)
A SingleCellExperiment
containing the single-cell
expression data and metadata.
The column name in the colData
of se_object
that contains the cell type labels.
A vector of cell type labels to plot (e.g., c("T-cell", "B-cell")).
Defaults to NULL
, which will include all the cells.
A column name in the colData
of se_object
that
contains the QC stats of interest.
The column name in the colData
of se_object
that
contains the cell type annotation scores.
A ggplot object displaying a scatter plot of QC stats vs annotation scores, where each point represents a cell, color-coded by its cell type.
This function generates a scatter plot to explore the relationship between various quality control (QC) statistics, such as library size and mitochondrial percentage, and cell type annotation scores. By examining these relationships, users can assess whether specific QC metrics, systematically influence the confidence in cell type annotations, which is essential for ensuring reliable cell type annotation.