QCplot: QC plot for droplets using meta_info generated by dropSplit.

View source: R/plot.R

QCplotR Documentation

QC plot for droplets using meta_info generated by dropSplit.

Description

QC plot for droplets using meta_info generated by dropSplit.

Usage

QCplot(
  meta_info,
  colorBy = "dropSplitClass",
  splitBy = "dropSplitClass",
  cell_stat_by = "dropSplitClass",
  metrics = c("nCount", "nFeature", "Rank", "RankMSE", "CellEntropy", "CellRedundancy",
    "CellGini"),
  ...
)

Arguments

meta_info

importance_matrix generated by dropSplit.

colorBy

One of the column names of the meta_info or NULL. Can be a type of continuous variable or discrete variable.

splitBy

One of the column names of the meta_info or NULL. Must be a type of discrete variable.

cell_stat_by

One of the discrete variable column names in meta_info. Used to count the number of 'Cell' in the column.

metrics

QC metrics used to plot. Possible options are:

  • nCount

  • nFeature

  • Rank

  • RankMSE

  • CellEntropy

  • CellRedundancy

  • CellGini

...

Other arguments passed to RankMSE.

Value

A ggplot object or a list of ggplot objects.

Examples

counts <- simSimpleCounts()
result <- dropSplit(counts)
pl <- QCplot(result$meta_info, metrics = "CellEntropy")
pl$CellEntropy$Merge
pl$CellEntropy$Cell

zh542370159/dropSplit documentation built on June 19, 2022, 2:49 p.m.