Thanks for such a great tool and forum for questions.

I’m trying to use scVI to control for batch effect while explicitly preserving biologic information found in a set of categorical and continuous covariates for each cell - the generative process would be that x_n depends on z_n, s_n, l_n, and the set of covariates. I think entering categorical and continuous covariates to the scVI setup_anndata function will allow for this explicit modeling, and I was wondering if it was possible to then sample from this conditional posterior.

Thanks again!