scvi.external.stereoscope.RNADeconv#
- class scvi.external.stereoscope.RNADeconv(n_genes, n_labels, **model_kwargs)[source]#
Bases:
BaseModuleClass
Model of scRNA-seq for deconvolution of spatial transriptomics.
Reimplementation of the ScModel module of Stereoscope [Andersson et al., 2020]: almaan/stereoscope.
Attributes table#
Methods table#
|
Simply build the negative binomial parameters for every cell in the minibatch. |
Returns the parameters for feeding into the spatial data. |
|
Inference. |
|
|
Loss computation. |
|
Sample from the model. |
Attributes#
- RNADeconv.training: bool#
Methods#
- RNADeconv.generative(x, y)[source]#
Simply build the negative binomial parameters for every cell in the minibatch.