-
Notifications
You must be signed in to change notification settings - Fork 31
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
Seurat UMAP crashing with high numbers of cells #126
Comments
Hi, |
thanks for your response, I appreciate it. I'm also trying to figure out which package update has caused this issue, as I previously had it working fine for even larger datasets. running this, it now seems to have worked well: alldata_umap <- uwot::umap2(alldata[['harmony_rna']]@cell.embeddings,
n_neighbors = 30, n_components = 2,
metric = 'cosine', min_dist = 0.3, ret_model = T,
n_threads = 32, verbose = T)
alldata[['umap_rna']] <- CreateDimReducObject(embeddings = alldata_umap$embedding,
key = 'harmonyrna_',
assay = 'RNA')
alldata[['umap_rna']]@misc$model <- alldata_umap although I can't seem to figure out why it isn't working in Seurat. I'll open an bug issue there, unless you have any suggestions first! |
Great to know that you are able to dive into the code.
|
@SamGG you can read more about @ollieeknight can you try repeating the call to |
@jlmelville thanks picking this up, your input here is really appreciated, as well as your constant development on this package. thanks @SamGG also for your advice. Here is the output of 11:22:24 Using HNSW for nearest neighbor search
11:22:24 UMAP embedding parameters a = 0.9922 b = 1.112
11:22:24 Read 342124 rows and found 50 numeric columns
11:22:24 Building HNSW index with metric 'cosine' ef = 200 M = 16 using 32 threads
11:22:30 Finished building index
11:22:30 Searching HNSW index with ef = 30 and 32 threads
11:22:31 Finished searching
11:22:33 Commencing smooth kNN distance calibration using 32 threads with target n_neighbors = 30
11:22:44 Initializing from normalized Laplacian + noise (using RSpectra)
11:27:00 Range-scaling initial input columns to 0-10
11:27:04 Commencing optimization for 500 epochs, with 15578248 positive edges
Using method 'umap'
Optimizing with Adam alpha = 1 beta1 = 0.5 beta2 = 0.9 eps = 1e-07
0% 10 20 30 40 50 60 70 80 90 100%
[----|----|----|----|----|----|----|----|----|----|
|
The first output says:
Your second output with
so there's something different there. @ollieeknight can you confirm that when you run with Based on the current output, You could try running |
I'm running into an issue where Seurat keeps crashing (segmentation fault) when trying to run UMAP on a relatively large seurat object:
Could you help me troubleshoot? Any advice would be really great. To make sure it's not a memory issue, the last environment I tested this in had 64cores and 600gb RAM.
For the sake of privacy for my work, I hid the names of the layers, but there is indeed 25 of them and the harmony integration (saved as 'harmony_rna') worked perfectly
the error message I get is (cut off 1., it's a bunch of numbers, I assume some kind of output matrix)
The text was updated successfully, but these errors were encountered: