I’m trying to understand the correct method for running ResolVI on Visium HD data that has been segmented using proseg as opposed to 8μM bins used in the reproducibility jupyter notebooks.
I’m currently following the tutorial which creates the generated expression as follows:
Is this the appropriate approach to take for cell segmented Visium HD data? Does this produce a ‘dense estimate of gene expression’ as opposed to counts that are corrected per cell? Also are the generated expression counts able to used with scran for normalization, and downstream spatial clustering approaches?
Hi, if you want to have an output that can be treated similar to original counts (such as using screen), use “obs” instead of “px_rate”. “px_rate” are the generated counts similar to what we propose to use in scVI. I wouldn’t feed those into scran. For spatial clustering you can use both of these counts, however I would usually recommend getting the latent representation and use this as replacement for steps such as PCA. You might want to check some of our scVI and scANVI tutorials to get a better overview of scvi-tools.
Will do the trick, so just setting return_observed and it will output obs (this variable is observed during training - pyro computes a reconstruction loss and returning it has to be manually defined).