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: More dimensions specified in dims than have been computed #6

Open
Lakshya3141 opened this issue Mar 8, 2022 · 3 comments
Open

Comments

@Lakshya3141
Copy link

Hello!

I am trying to implement chooseR on my scRNA dataset containing about 10k cells. I pre-processed the cells using Seuratv3, performed normalisation, scaling, PCA and umap (using default parameters).

After this, I saved an .rds file and accordingly changed the readRDS function in file1 of your package, and set npcs to 32 (my PCA has 50 dimensions to it, as evident from the elbowplot). When I try to run the subsequent for loop which iterates over my custom defined resolution vector, I get an error:

image

I tried various things such as not performing umap (should not affect final results thought), changing default paramters, etc but nothing works, How should I resolve this issue?

@SimoniMD
Copy link

SimoniMD commented Apr 7, 2022

I get this same problem, and looking for any solutions. Had tried recalculating the PCAs in the step right before, and it still bounces back the same error.

@auesro
Copy link

auesro commented Jun 8, 2022

Did you change this part of the script?:

# Define the number of PCs to use, and which assay and reduction to use.
# We recommend testing a broad range of resolutions
# For more on picking the correct number of PCs, see:
# https://satijalab.org/seurat/v3.1/pbmc3k_tutorial.html
npcs <- 100

@nicolaromano
Copy link

I just got the same error.
Aside from what @auesro says, you should also change the following bit.
Essentially npcs was set but never used, and defaults to the one set in multiple_cluster (100)

results <- multiple_cluster(
                              obj,
                              n = 100,
                              size = 0.8,
                              npcs = npcs,  # <----- ADD THIS
                              res = res,
                              reduction = reduction,
                              assay = assay

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

4 participants