scglue.models.scglue.SCGLUEModel
- class scglue.models.scglue.SCGLUEModel(adatas, vertices, latent_dim=50, h_depth=2, h_dim=256, dropout=0.2, disc_norm=False, shared_batches=False, random_seed=0)[source]
Bases:
ModelGLUE model for single-cell multi-omics data integration
- Parameters:
adatas (
typing.Mapping[str,AnnData]) – Datasets (indexed by modality name)vertices (
typing.List[str]) – Guidance graph vertices (must cover feature names in all modalities)latent_dim (
int) – Latent dimensionalityh_depth (
int) – Hidden layer depth for encoder and discriminatorh_dim (
int) – Hidden layer dimensionality for encoder and discriminatordropout (
float) – Dropout ratedisc_norm (
bool) – Whether to perform normalization at discriminator inputshared_batches (
bool) – Whether the same batches are shared across modalitiesrandom_seed (
int) – Random seed
Methods
Adopt buffers and parameters from a pretrained model
Obtain cell type classification
Prepare model for training
Decode data
Compute data (cell) embedding
Compute graph (feature) embedding
Fit model on given datasets
Freeze cell embeddings
Compute loss function values
Unfreeze cell embeddings
Upgrade the model if generated by older versions
Attributes
ALIGN_BURNIN_PRGGRAPH_BATCHESMAX_EPOCHS_PRGPATIENCE_PRGREDUCE_LR_PATIENCE_PRGlogger