-1
$\begingroup$

I metadata slot of Seurat object I have mapping score of each cell to a reference PBMC data like

pbmc <- subset(object, subset = object@meta.data$mapping.score > 0.5)
Error in FetchData(object = object, vars = unique(x = expr.char[vars.use]),  : 
  None of the requested variables were found: 
> 
> 
> 

I want to only keep cells with mapping score > 0.5

Any help please?

$\endgroup$
0
1
$\begingroup$
your_new_object <- subset(your_object, subset = mapping.score > 0.5)
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.