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

negative length vectors are not allowed : Error when converting anndata to seurat #75

Open
bapoorva opened this issue Jul 14, 2023 · 2 comments

Comments

@bapoorva
Copy link

Hi,

I've used sceasy before with no issues. But this time, i tried to convert an h5ad file to a seurat object and got this error

Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 't': negative length vectors are not allowed

This is my code

library(sceasy)
library(reticulate)
use_python('/Users/bapoorva/miniconda3/bin/python3')
loompy <- reticulate::import('loompy')

sceasy::convertFormat("~/HLCA/local.h5ad", from="anndata", to="seurat",
                      outFile='HLCA_humanref.RDS')

I downloaded the h5ad from this link. It is the human reference file from the Human Lung Cell Atlas (HLCA)

Any ideas on how to resolve this ?

Thanks

@AlexandrePelletier
Copy link

I got the same error, anyone have been able to fix it ?

@Rubbert
Copy link

Rubbert commented Jan 9, 2025

Same here. I wonder if it could be a memory/data size issue, I imagine the HLCA is quite large, and my test data is also ~600K cells.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants