regvelo.tools.set_output¶
- regvelo.tools.set_output(adata, vae, n_samples=30, batch_size=None)[source]¶
Add inference results from a trained RegVelo model to
adata.- Parameters:
- Return type:
- Returns:
: Nothing, just updates
adatawith the following fields:adata.layers["velocity"]: Estimated velocity.adata.layers["latent_time_velovi"]: Estimated latent time.adata.var["fit_alpha"]: Estimated alpha rate.adata.var["fit_beta"]: Estimated beta rate.adata.var["fit_gamma"]: Estimated gamma rate.adata.layers["fit_t"]: Estimated latent time scaled to the maximum valueadata.var["fit_scaling"]: Scaling factor for the latent time.