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: matrix multiplication: incompatible matrix dimensions: 100x96490 and 96489x22 #237

Open
claireanjou opened this issue Jan 17, 2024 · 1 comment

Comments

@claireanjou
Copy link

When I am running RunHarmony, it produces this error message. What could this mean? I have ran the same code before and never encountered this error. Would appreciate any help, thanks!

ERROR MESSAGE:
Error: matrix multiplication: incompatible matrix dimensions: 100x96490 and 96489x22
In addition: Warning messages:
1: In theta * (1 - exp(-(N_b/(nclust * tau))^2)) :
longer object length is not a multiple of shorter object length
2: In rbind(rep(1, N), phi) :
number of columns of result is not a multiple of vector length (arg 1)

CODE SAMPLE:
pbmc_small <- FilterGenes(object = pbmc_small, min.value = 0.5, min.cells = 100)
pbmc_small <- NormalizeData(pbmc_small)
pbmc_small <- FindVariableFeatures(pbmc_small, selection.method = "vst", nfeatures = 2000)
pbmc_small <- ScaleData(pbmc_small, features = rownames(pbmc_small))

pbmc_small <- RunPCA(pbmc_small, features = VariableFeatures(object = pbmc_small))

[email protected]$library_id <- as.factor([email protected]$library_id)

pbmc_small <- RunHarmony(pbmc_small, group.by.vars="library_id", verbose = TRUE)

@pati-ni
Copy link
Collaborator

pati-ni commented Feb 16, 2024

Hi @claireanjou,

sorry for the delayed response. Can you share your sessionInfo() to determine your Seurat and harmony versions?

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

2 participants