You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 't': missing value where TRUE/FALSE needed
#187
Open
hlcxq1223 opened this issue
Jan 6, 2024
· 0 comments
Hi,guys
I'm having some issues running DobletFinder.I first download a mixed matrix consisting of 10 samples, and it is in TPM format.I splited the mixed matrix by orig.ident and preprocess the matrix according to the standard procedure. The TPM format is processed according to (log(matrix_data + 1)).
I successfully performed DobletFinder in first two samples.However,it came an error in the third sample.
` sweep.res.list <- paramSweep_v3(scRNAlist[[3]], PCs = 1:30, sct = TRUE)
[1] "Creating artificial doublets for pN = 5%"
[1] "Creating Seurat object..."
[1] "Running SCTransform..."
Calculating cell attributes from input UMI matrix: log_umi
Variance stabilizing transformation of count matrix of size 14335 by 2965
Model formula is y ~ log_umi
Get Negative Binomial regression parameters per gene
Using 2000 genes, 2965 cells
| | 0%
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
|======================= | 25%
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 't': missing value where TRUE/FALSE needed`
Could you please tell me if there are any issues with my code or matrix?Hope for your resposnes.
Thanks a lot!
The text was updated successfully, but these errors were encountered:
Hi,guys
I'm having some issues running DobletFinder.I first download a mixed matrix consisting of 10 samples, and it is in TPM format.I splited the mixed matrix by orig.ident and preprocess the matrix according to the standard procedure. The TPM format is processed according to (log(matrix_data + 1)).
for(i in 1:length(scRNAlist)){ if(T){ matrix_data <- scRNAlist[[i]][["RNA"]]@counts scRNAlist[[i]][["RNA"]]@data <- as.matrix(log(matrix_data + 1)) scRNAlist[[i]] <- FindVariableFeatures(scRNAlist[[i]], selection.method = "vst", nfeatures = 2000) scRNAlist[[i]] <- ScaleData(scRNAlist[[i]], features = rownames(scRNAlist[[i]])) scRNAlist[[i]] <- RunPCA(scRNAlist[[i]], features = VariableFeatures(object = scRNAlist[[i]])) scRNAlist[[i]] <- FindNeighbors(scRNAlist[[i]], dims = 1:30) scRNAlist[[i]] <- FindClusters(scRNAlist[[i]], resolution = 1.0) #table(scRNAlist[[i]]@meta.data$seurat_clusters) }}
I successfully performed DobletFinder in first two samples.However,it came an error in the third sample.
` sweep.res.list <- paramSweep_v3(scRNAlist[[3]], PCs = 1:30, sct = TRUE)
[1] "Creating artificial doublets for pN = 5%"
[1] "Creating Seurat object..."
[1] "Running SCTransform..."
Calculating cell attributes from input UMI matrix: log_umi
Variance stabilizing transformation of count matrix of size 14335 by 2965
Model formula is y ~ log_umi
Get Negative Binomial regression parameters per gene
Using 2000 genes, 2965 cells
| | 0%
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
|======================= | 25%
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
warning: solve(): system is singular; attempting approx solution
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 't': missing value where TRUE/FALSE needed`
Could you please tell me if there are any issues with my code or matrix?Hope for your resposnes.
Thanks a lot!
The text was updated successfully, but these errors were encountered: