Closed errcricket closed 3 years ago
Hi @errcricket ,
Thanks for reaching out. Can you check if the number of features is close to the number of PCs you are requesting ? If not, can you also check the same code on am open 10x dataset like pbmc10k, if you can replicate the error ?
I will try both and get back to you.
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.
I have gone back to this and regardless of the dataset, I am still getting this error:
Error in nv + 7 : non-numeric argument to binary operator
Calls: transform_object ... RunPCA -> RunPCA.Assay -> RunPCA -> RunPCA.default -> irlba
Execution halted
There is generally a minimum of 1000 features for all of the datasets and I cannot get past RunPCA on any of them. This is an issue exclusively when I am integrating data. Please advise.
I am 99.9% certain I have found the issue.
seurat_object <- RunPCA(seurat_object, npcs = components, verbose = FALSE)
I think components is a reserved word. As soon as I changed it to compo, all of my errors dissipated.
seurat_object <- RunPCA(seurat_object, npcs = compo, verbose = FALSE)
Follow-up: Even though compo/components is a number, I used compo <- as.numeric(compo)
and that too seems to have fixed the issue.
Issue
I have several samples (10X output) that I have merged into one Seurat object. I had been using similar code for months with no problems, but recently, I have not been able to get past the
RunPCA
step and am getting a very consistent error.Error
I have tried re-running it, re-installing all used packages, and based off of this post: https://github.com/satijalab/seurat/issues/1963, I added
approx=FALSE
, all to no avail.Session Info:
Code:
I am pretty stuck, any assistance is Greatly appreciated.