Scvi-tools not allowing me to download cellxgene census data

Hi there, I am trying to follow the tutorial here:

I basically want to take the census data and query my own dataset against all the census data. I am running into the following error when I try to do the tutorial’s step

model.load_model(adata=adata[adata.obs["is_primary_data"]].copy())

ValueError: It appears you are trying to load a non-minified model with minified adata

This seems like maybe it’s an issue that was introduced in a recent scvi-tools update? The tutorial specifically says that we are going to use minified adata with a non-minified model, so the fact that scvi-tools is disallowing it is odd.

As another question, do you have a specific tutorial handling best practices for querying the cellxgene-census data with my own dataset? I see it for the lung data, but I don’t know if there is anything specific that needs to be done for the cellxgene. Thank you!

Hey @igrisch ,

You are correct, it was a bug in the latest versions. I added a fix which you can see and install from here: GitHub - scverse/scvi-tools at Ori-minified-model-load-bug, it will be released in the next version soon. Tutorials will also be updated with minor fixes and work afterwards.

As for the other question, we have several tutorials that show how to query from cellxgene , which is TiledbSoma database. There are also online interactive tools to do it (AI-Supported Virtual Cells Platform From Biohub), if this is what you asked for.

Thank you so much for the prompt response! I will look into the interactive tool.