Skip to content

Calc contamination breaks if marker name contains a hyphen. #13

@fame2827

Description

@fame2827

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:

Statial/R/Statial.R

Lines 365 to 367 in c695def

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions