Closed TerezaClarence closed 2 years ago
Hi,
Not member of dev team but hopefully can be helpful. The error you are receiving seems to be different than the one reported in that issue. Can you post what the output of this code is for your object:
unique(snRNA_MDT_fi@meta.data$orig.ident)
Best, Sam
> unique(snRNA_MDT_fi@meta.data$orig.ident)
[1] "11-MDT" "100-MDT" "MDT" "CN"
Hello,
I am sorry, here is the correct issue https://github.com/satijalab/seurat/issues/1647 Thank you for any help!
Best, Tereza
Hi Tereza,
So I'm not sure what's causing the error in this case as the error you are receiving is like what occurs if you try and subset on a meta.data variable that doesn't exist but orig.ident always exists as does "MDT". I'm unfortunately unable to reproduce issue so not really sure what is going on but might be specific to your Seurat Object (or I'm missing something hopefully the devs can pick up on).
Just curious though what happens if you run:
subset_obj <- subset(x = snRNA_MDT_fi, subset = orig.ident %in% "MDT", invert = TRUE)
best, Sam
Thank you very much. Unfortunately, this still does not work for me. I did try to reinstall Seurat and Signac, and reboot the RStudio, however the issue persists for any subset() from metadata (not only ori.ident). Also, I have noticed, that I am unable to reproduce this tutorial: https://satijalab.org/signac/articles/pbmc_multiomic.html#linking-peaks-to-genes-1
DefaultAssay(pbmc) <- "ATAC"
pbmc <- NucleosomeSignal(pbmc)
pbmc <- TSSEnrichment(pbmc)
pbmc <- subset(
x = pbmc,
subset = nCount_ATAC < 100000 &
nCount_RNA < 25000 &
nCount_ATAC > 1000 &
nCount_RNA > 1000 &
nucleosome_signal < 2 &
TSS.enrichment > 1
)
pbmc
I end up with only 1 assay present instead of both RNA and ATAC (I do experience similar problems with my own multimodal datasets). If I omit this section:
DefaultAssay(pbmc) <- "ATAC"
pbmc <- NucleosomeSignal(pbmc)
pbmc <- TSSEnrichment(pbmc)
and simply subset by:
pbmc <- subset(
x = pbmc,
subset = nCount_ATAC < 100000 &
nCount_RNA < 25000 &
nCount_ATAC > 1000 &
nCount_RNA > 1000)
pbmc
I am still able to have 2 assays (RNA, ATAC). I suspect there might be something specific with latest version of Signac? Thank you so much for looking into this, much appreciated!
Best, Tereza
@TerezaClarence I could not reproduce this issue
What is the output of head(pbmc)
?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Hello,
I am experiencing issue with subsetting similar to previously reported here: https://github.com/satijalab/seurat/issues/4069, however reinstalling as suggested did not help in my case.
Thank you very much in advance for looking into this.