Merging data from multiple cohorts and many donors with scVI

Hi Phil,

It’s hard to say. What you’re attempting to to is beyond what we have explicitly tested (and very cool!).
We are currently working on an extension related to this post:

Yes you can put both the donor and the cohort as a key using categorical_covariate_keys here: https://docs.scvi-tools.org/en/stable/api/reference/scvi.data.setup_anndata.html#scvi.data.setup_anndata

I would be interested to learn a bit more about what you’re trying to do. What you stated are reasonable things to try though. Please feel free to email me (firstlast at berkeley dot edu) if you’d like to schedule a meeting!