This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Subset cells by ADT expression

Hey,

I am using the subset function if I want to make an object with e.g cells that express a specific gene as follows:

subset(x = pbmc, subset = Klrk1> 1)

However I would like to subst based the expression of an ADT marker so whenever I try the following I get an error.

NKG2Dprot<-subset(x = seu_fin, subset = NKG2D-TotalSeqC > 1) 
Error in FetchData(object = object, vars = expr.char[vars.use], cells = cells,  : 
  None of the requested variables were found: 

I also tried the same with quotes ("NKG2D-TotalSeqC") but I got the same error

Is there a way to subset my cells according to ADT markers?

Thanks a lot

10x adt seurat

Did you set the default assay to ADT before subsetting? DefaultAssay(seu_fin) <- "ADT". Otherwise you can use the assay = flag in subset.

Yeah I have tried that one but still didnt work...

0 answers

No answers yet.

Log in to answer this question.