Skip to content

Error: Cannot add new cells with [[<- #35

@bbimber

Description

@bbimber

Hello,

We've been running scGate on diverse 10x data for a long time with no real issues, but one dataset is posing a problem. I'm trying to run a basic command like this:

seuratObj2 <- suppressWarnings(scGate::scGate(
    data = seuratObj,
    model = model,
    pos.thr = 0.13,
    neg.thr = 0.13
))

and it gives the error:

Error: BiocParallel errors
  1 remote errors, element index: 1
  0 unevaluated and other errors
  first remote error:
Error: Cannot add new cells with [[<-

If I just make a marginal change to pos.thr, then it will pass:

seuratObj2 <- suppressWarnings(scGate::scGate(
    data = seuratObj,
    model = model,
    pos.thr = 0.14,
    neg.thr = 0.13
))

Is it possible something about the order in which pos.thr is applied could result in some chunk of code mangling cell barcodes to something like this?

I'm happy to share the seurat object and model if it is helpful.

The model is:

levels   use_as           name                                                                                               signature
1 level1 positive          NK.RM KLRD1;NKG7;GNLY;KLRB1;CD3D-;CD3E-;CD3G-;CD8B-;LOC710951-;LOC114677140-;LOC711031-;LOC720538-;LOC705095-
2 level2 negative  Complement.RM                                                                                          C1QA;C1QB;C1QC
3 level3 negative    Platelet.RM                                                                                          PPBP;LOC703451
4 level3 negative Erythrocyte.RM                                                                                            HBA1;HBB;HBA

Also here:
https://github.com/BimberLab/RIRA/blob/master/inst/gates/master_table.tsv
https://github.com/BimberLab/RIRA/blob/master/inst/gates/NK.RM.tsv

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