Skip to content

Error in FetchData while subseting Nanostring obj #9868

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

Open
alicekao1118 opened this issue May 2, 2025 · 0 comments
Open

Error in FetchData while subseting Nanostring obj #9868

alicekao1118 opened this issue May 2, 2025 · 0 comments

Comments

@alicekao1118
Copy link

Hi all,

I'm currently processing a Nanostring dataset using Seurat and am trying to remove cells with NA values in a metadata column (V1). I attempted the following:

slide1 <- subset(slide1, subset = !is.na(V1))

However, I encountered this error:

Error in `FetchData()`:
! None of the requested variables were found: 
Run `rlang::last_trace()` to see where the error occurred.

Trace output:

Error in `FetchData()`:
! None of the requested variables were found: 
---
Backtrace:
    ▆
 1. ├─base::subset(slide1, subset = !is.na(V1))
 2. └─SeuratObject:::subset.Seurat(slide1, subset = !is.na(V1))
 3.   ├─SeuratObject::WhichCells(...)
 4.   └─SeuratObject:::WhichCells.Seurat(...)
 5.     ├─SeuratObject::FetchData(...)
 6.     └─SeuratObject:::FetchData.Seurat(...)

I've double-checked the metadata column name—V1 exists and is correctly spelled.

sum(is.na(slide1$V1)) # [1] 2080
head(slide1$V1)
      1_1         2_1         3_1         4_1         5_1         6_1 
"Slide1_1_1"       NA   "Slide1_3_1" "Slide1_4_1" "Slide1_5_1" "Slide1_6_1" 

Here is my session info:

other attached packages:
[1] sf_1.0-20          data.table_1.16.4  dplyr_1.1.4        
    Seurat_5.2.1       SeuratObject_5.0.2 sp_2.2-0

I'd appreciate any suggestions or workarounds.

Thanks,
Alice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant