I have a gene in my data set named "HLA-DQB2", when I run calcContamination I get the error: Element HLA-DQB2 doesn't exist from:
|
rfData <- singleCellData |> |
|
dplyr::select(cellType, all_of(markers)) |> |
|
dplyr::mutate(dplyr::across(any_of(markers), function(x) ifelse(is.nan(x) | is.na(x), 0, x))) |
It seems somewhere in the preProcessing function the name changes from "HLA-DQB2" to "HLA.DQB2" and therefore can't be selected by dplyr.