Skip to contents

Detect likely isotype-control features by name pattern

Usage

detect_adt_isotypes(feature_names, pattern = "isotype")

Arguments

feature_names

Character. ADT feature names (matrix colnames).

pattern

String. Case-insensitive regex. Defaults to "isotype".

Value

Character vector of matching names, for inspection before passing to add_adt_counts_sc() as isotype_names.

Examples

# find the isotype controls among the ADT features
features <- c("CD3", "CD19", "IgG1_isotype", "IgG2a_isotype")
detect_adt_isotypes(features)
#> [1] "IgG1_isotype"  "IgG2a_isotype"