Views
No views yet
perturblab library.1from perturblab.model.scfoundation import scFoundationModel
2
3# Load model
4model = scFoundationModel.from_pretrained('scfoundation-cell', device='cuda')
5
6# Generate cell embeddings
7cell_embeddings = model.predict_embedding(
8 adata,
9 output_type='cell',
10 pool_type='all'
11)