Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WhichCell() for marker names with dashes from ADT assay returned error of None of the requested variables were found, even when using backticks #9411

Open
denvercal1234GitHub opened this issue Oct 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@denvercal1234GitHub
Copy link

denvercal1234GitHub commented Oct 20, 2024

Hi there,

I have a Seurat object with both RNA and ADT assay data.

Anyone has any input why WhichCells() failed to retrieve the cells using ADT markers?

DefaultAssay(gem_ID.list_MERGED) <- "ADT"
length(WhichCells(gem_ID.list_MERGED, expression = `CD185-(CXCR5)` > 0))
Error in `FetchData()`:
! None of the requested variables were found: 
Backtrace:
 1. SeuratObject::WhichCells(...)
 2. SeuratObject:::WhichCells.Seurat(...)
 4. SeuratObject:::FetchData.Seurat(...)

Pulling markers without dashes in the name worked fine.

Related #1212 #3219

@denvercal1234GitHub denvercal1234GitHub added the bug Something isn't working label Oct 20, 2024
@denvercal1234GitHub denvercal1234GitHub changed the title WhichCell() for marker names with dashes from ADT assay returned error of None of the requested variables were found WhichCell() for marker names with dashes from ADT assay returned error of None of the requested variables were found, even when using backticks Oct 20, 2024
@denvercal1234GitHub
Copy link
Author

My current work-around is using GetAssayData followed by sum() -- not ideal but works.

##### tested on markers without dashes
SeuratObject::GetAssayData(object = gem_ID.list_MERGED, assay = "ADT", layer = "data")["CD25",] -> ADT_CD25
sum(ADT_CD25 > 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant