sc_reconstruction.models.ReconPretrainedscConcept#
- class sc_reconstruction.models.ReconPretrainedscConcept(checkpoint_path, emb_key='X_scConcept', **kwargs)[source]#
Bases:
object- __init__(checkpoint_path, emb_key='X_scConcept', **kwargs)[source]#
Pre-trained scConcept foundation model wrapper.
Wraps the scConcept encoder for ReconEval’s foundation-model reconstruction task. Requires the
conceptpackage (FlashAttention, Ampere+ GPU) and runs in thescconcept_envconda env.- Args:
- checkpoint_path: Path to the pre-trained model checkpoint
(config, model weights, gene mapping).
Methods
__init__(checkpoint_path[, emb_key])Pre-trained scConcept foundation model wrapper.
get_latent_representation(X)get_overlap_genes(genes)Not implemented for scConcept; reserved for parity with other FM wrappers.
load(path[, map_location])Load model configuration
prepare([adata])Cache the adata reference and its gene list on the wrapper.
set_genes(genes)Set the genes for reconstruction
train([datamodule])No-op: scConcept is used frozen.