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

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

Comments

@hlcxq1223
Copy link

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!

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