Skip to contents

Return the ADT feature names removing the isotypes

Usage

remove_adt_isotypes(feature_names, pattern = "isotype")

Arguments

feature_names

Character. ADT feature names (matrix colnames or from get_adt_names()).

pattern

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

Value

Character vector of ADT features, but anything with "isotype".

Examples

# the same features with the isotype controls dropped
features <- c("CD3", "CD19", "IgG1_isotype", "IgG2a_isotype")
remove_adt_isotypes(features)
#> [1] "CD3"  "CD19"