Split feature names to extract "CDx" from ADT labels. splitCD converts names in the format "CDx_xxxxxx" to "CDx", while eliminating whitespace and correcting capitalization. A vector of feature names in the corrected format is returned.

splitCD(x = NULL)

Arguments

x

A vector of feature names to be corrected

Value

Returns a character vector of feature names in the desired format.

Examples

splitCD("CD19_TotalSeqC")
#> [1] "CD19"
corrected.names <- splitCD(c("CD19_TotalSeqC", "CD45_TotalSeqC"))