theislab / scarches

Reference mapping for single-cell genomics
https://docs.scarches.org/en/latest/
BSD 3-Clause "New" or "Revised" License
331 stars 51 forks source link

Fail to establish scpoli model #203

Closed melancholy12 closed 1 year ago

melancholy12 commented 1 year ago

early_stopping_kwargs = { "early_stopping_metric": "val_prototype_loss", "mode": "min", "threshold": 0, "patience": 20, "reduce_lr": True, "lr_patience": 13, "lr_factor": 0.1, }

condition_key = 'sample' cell_type_key = ['cell_type'] query = ['new16']

scpoli_model = scPoli( adata=adata_ref, condition_key=condition_key, cell_type_keys=cell_type_key, embedding_dim=3, latent_dim=10, )


TypeError Traceback (most recent call last) Cell In[38], line 1 ----> 1 scpoli_model = scPoli( 2 adata=adata_ref, 3 condition_key=condition_key, 4 cell_type_keys=cell_type_key, 5 embedding_dim=3, 6 latent_dim=10, 7 )

TypeError: init() got an unexpected keyword argument 'condition_key'

cdedonno commented 1 year ago

If you're using the latest version you need to use the argument condition_keys, not condition_key.

cdedonno commented 1 year ago

Closing because of no response