WhichCells2: Count the number of cells

View source: R/utils.R

WhichCells2R Documentation

Count the number of cells

Description

Count the number of cells respecting all the conditions, and print a recap with the number of cells respecting each condition.

Usage

WhichCells2(
  seur,
  features,
  assay = "RNA",
  slot = "data",
  value_to_compare = 0,
  comparison_type = "superior",
  verbose = TRUE
)

Arguments

seur

Seurat object to use.

features

Features to use.

assay

Assay to use if features are genes. Default to "RNA".

slot

Slot to use if features are genes. Default to "data".

value_to_compare

Which value (or values) to compare the features to. Must be either a single element or a list of the same length as features. Default to 0.

comparison_type

one of "inferior" or 1, "inferior or equal" or 2, "equal" or 3, "superior or equal" or 4, "superior" or 5. Can be a list of them, the same length as features. Default to "superior".

verbose

Whether or not to print the summary dataframe. Default to TRUE.

Value

The number of cells respecting all the conditions.


LabexCortexBioinformatics/LxCxUtils documentation built on Aug. 2, 2022, 6:23 a.m.