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

Upload File #7

Open
elissonlopes opened this issue Feb 15, 2023 · 5 comments
Open

Upload File #7

elissonlopes opened this issue Feb 15, 2023 · 5 comments

Comments

@elissonlopes
Copy link

Hello.

Great Tool!
I could run Cellar in one of my samples, 10x data, worked great.
I still don't know the better way to upload the whole batch as one file to be analyzed.
Can you give a help with it?

@euxhenh
Copy link
Owner

euxhenh commented Feb 16, 2023

Hi,

Cellar currently doesn't support concatenation of AnnData's, but you can easily do this yourself locally by using the AnnData.concat function. See examples here.

You can then upload the combined file to Cellar.

@elissonlopes
Copy link
Author

elissonlopes commented Feb 16, 2023

I got another problem.

*The first part was solved using:
library(SeuratDisk)

SaveH5Seurat(pbmc, filename = "./mfg2.h5Seurat")
Convert("./mfg2.h5Seurat", dest = "h5ad")

*And now:
When I tried to submit .h5ad file to Cellar I got a message:
Error encountered while reading file. Maybe the file is not formatted properly, or invalid entries were found.

Does Cellar has a limit size for files? Or do you know any possible reason to have this error?

@euxhenh
Copy link
Owner

euxhenh commented Feb 17, 2023

h5Seurat is a different file format than h5ad and Cellar will not recognize it. See if you can use the H5SeuratToH5AD package to convert it [source].

@elissonlopes
Copy link
Author

I convert again using this line above: Convert("./mfg2.h5Seurat", dest = "h5ad")
Its a H5AD file.
I also tested using csv file. I suppose it would be something with the file size? Is there a limit in cellar?

@euxhenh
Copy link
Owner

euxhenh commented Feb 17, 2023

There is a limit of 2gb. Before uploading to Cellar, you could try loading the file locally and debug any errors there. If using Python, install the anndata package and load the file with anndata.read_h5ad('filename.h5ad').

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