Solo: scvi.external.SOLO.from_scvi_model()
errors if scvi.data.setup_anndata()
used a layer
#1095
Labels
scvi.external.SOLO.from_scvi_model()
errors if scvi.data.setup_anndata()
used a layer
#1095
If you train an scvi batch-effect correction model, and then use that trained VAE as an input for Solo, then it seems that an
AssertionError
occurs uponscvi.external.SOLO.from_scvi_model()
if the originalscvi.data.setup_anndata()
specified alayer
that was notNone
.The reason appears to be that when Solo creates simulated doublets here
https://github.com/YosefLab/scvi-tools/blob/334c03822b34d2e1dd9b87ecff6bfb0f4803f05e/scvi/external/solo/_model.py#L232-L236
it does not copy the
layer
information into thedoublets_ad
object. Then when scVI calls_validate_anndata(adata)
fromget_latent_representation()
, the below error appears.To reproduce
The error
But "cellbender" is a valid key in adata.layers.
It's just not a valid key in the simulated
doublets_ad
created by Solo.Versions:
0.11.0
The text was updated successfully, but these errors were encountered: