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: cannot allocate vector of size 80.7 Gb #202

Open
mylenaortiz opened this issue Nov 26, 2024 · 2 comments
Open

Error: cannot allocate vector of size 80.7 Gb #202

mylenaortiz opened this issue Nov 26, 2024 · 2 comments

Comments

@mylenaortiz
Copy link

mylenaortiz commented Nov 26, 2024

Hello!

I'm trying to run SCTransform on my Visium HD data, but I'm getting the error "Error: cannot allocate vector of size 80.7 Gb".

I have already increased the future.globals.maxSize, but it didn't work. I also removed the cells with zero counts to prevent another error (Error in make_cell_attr(umi, cell_attr, latent_var, batch_var, latent_var_nonreg, :
cell attribute "log_umi" contains NA, NaN, or infinite value). Do you have any solution to fix this issue?

pymt_1_cell <- Load10X_Spatial(data.dir = localdir)

pymt_1_cell=pymt_1_cell[,unname(which(colSums(GetAssayData(pymt_1_cell))!=0))]

pymt_1_cell <- Seurat::SCTransform(pymt_1_cell, assay = "Spatial", verbose = FALSE)

Error: cannot allocate vector of size 80.7 Gb
In addition: Warning messages:
1: In size + sum(size_args, na.rm = FALSE) :
  NAs produced by integer overflow
2: In size + sum(size_args, na.rm = FALSE) :
  NAs produced by integer overflow
3: In size + sum(size_args, na.rm = FALSE) :
  NAs produced by integer overflow
4: In size + sum(size_args, na.rm = FALSE) :
  NAs produced by integer overflow

@saketkc
Copy link
Contributor

saketkc commented Nov 27, 2024

Hi @mylenaortiz - I can take a look. Can you share your object (or a part of it) with me at saketc@iitb.ac.in?

Thanks!

@mylenaortiz
Copy link
Author

Will do!

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