sc_reconstruction.models.ReconPretrainedscGPT#
- class sc_reconstruction.models.ReconPretrainedscGPT(checkpoint_path, gene_col='var_names', **kwargs)[source]#
Bases:
object- __init__(checkpoint_path, gene_col='var_names', **kwargs)[source]#
Pre-trained scGPT foundation model [Cui et al., 2024].
Wraps the scGPT encoder for ReconEval’s foundation-model reconstruction task. Requires the
scgptpackage and runs in thescgptconda env.- Args:
checkpoint_path: Path to the pre-trained model checkpoint.
Methods
__init__(checkpoint_path[, gene_col])Pre-trained scGPT foundation model [Cui et al., 2024].
get_latent_representation(X)prepare([adata])Cache the adata reference and its gene list on the wrapper.
set_genes(genes)Set the genes for reconstruction