howManyCells: Count the number of cells respecting the conditions

View source: R/utils.R

howManyCellsR Documentation

Count the number of cells respecting the conditions

Description

Apply WhichCells2 and return the length.

Usage

howManyCells(
  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.