Problem generating Violin Plot during QC #10218
Unanswered
CharlieYBart
asked this question in
Q&A
Replies: 1 comment 7 replies
-
|
Hello @CharlieYBart, Thanks for reporting this issue. Would you mind posting your sessionInfo() to help us better understand your setup? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am a newbie working with scRNAseq data using Seurat5. I am currently processing 'filtered_feature_bc_matrix' dataset I've cellranger-ed. I've inputed:
obj_data <- Read10X("./outs/filtered_feature_bc_matrix")
obj <- CreateSeuratObject(obj_data, project = "toothgerm", min.cells = 3, min.features = 200)
obj[["percent.mt"]] <- PercentageFeatureSet(obj, pattern = "^mt-")
obj[["percent.Rp"]] <- PercentageFeatureSet(obj, pattern = '^Rp[ls]')
obj$log10GenesPerUMI <- log10(obj$nFeature_RNA / obj$nCount_RNA),
...which are very standard commands for QC and was working smoothly. However, when I tried to output violin plot for QC, using the following commands:
pdf("toothgerm_rawQC.pdf", width = 15, height = 4, title = "toothgerm_rawQC")
VlnPlot(obj, features = c("nFeature_RNA", "nCount_RNA",
"percent.mt","log10GenesPerUMI", "percent.Rp"), ncol = 5,layer="counts")
dev.off()
R returned:
Warning: Default search for "data" layer in "RNA" assay yielded no results; utilizing "counts" layer instead. Error in deparse(substitute(e2, env = caller_env(2))) : cannot get a slot ("slots") from an object of type "NULL"
I run:
obj_data <- Read10X("../2.runCR/toothgerm_e10-5/outs/filtered_feature_bc_matrix")
str(obj_data)
class(obj_data)
for data check, and R returned:
Formal class 'dgCMatrix' [package "Matrix"] with 6 slots ..@ i : int [1:27843821] 8 52 63 96 118 131 167 206 219 234 ... ..@ p : int [1:8912] 0 1137 4682 8529 12334 15993 19776 22440 26980 30001 ... ..@ Dim : int [1:2] 32285 8911 ..@ Dimnames:List of 2 .. ..$ : chr [1:32285] "Xkr4" "Gm1992" "Gm19938" "Gm37381" ... .. ..$ : chr [1:8911] "AAACCTGAGTAAGTAC-1" "AAACCTGCACAGTCGC-1" "AAACCTGCAGACGCAA-1" "AAACCTGCATAAGACA-1" ... ..@ x : num [1:27843821] 1 1 3 1 1 1 2 1 2 1 ... ..@ factors : list()
[1] "dgCMatrix"
attr(,"package")
[1] "Matrix"
Seems like the format and integrity of my data is ok?
So what's the problem and what should I do? Please help..
Thanks in advance...
Beta Was this translation helpful? Give feedback.
All reactions