sc_reconstruction.models.ReconPretrainedscConcept#

class sc_reconstruction.models.ReconPretrainedscConcept(checkpoint_path, emb_key='X_scConcept', **kwargs)[source]#

Bases: object

Parameters:
  • checkpoint_path (str)

  • emb_key (str)

__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 concept package (FlashAttention, Ampere+ GPU) and runs in the scconcept_env conda env.

Args:
checkpoint_path: Path to the pre-trained model checkpoint

(config, model weights, gene mapping).

Parameters:
  • checkpoint_path (str)

  • emb_key (str)

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.