Teichlab / celltypist

A tool for semi-automatic cell type classification
https://www.celltypist.org/
MIT License
278 stars 44 forks source link

Add a ``celltypist.download_model(force_update=True)`` API #5

Closed watiss closed 2 years ago

watiss commented 2 years ago

celltypist has an API download_models(force_update: bool=False) to download all models with the latest version. We don't want this for all models, only a handful. Could you provide an API for a single model? Something like celltypist.download_model(force_update=True) If there is already a way to do this with the current API, please let me know. Thanks!

ChuanXu1 commented 2 years ago

A model parameter is added in celltypist.models.download_models, you can download a single model by celltypist.models.download_models(model='Immune_All_Low.pkl', force_update=True) or celltypist.models.download_models(model=['Immune_All_Low.pkl'], force_update=True), or download multiple models by celltypist.models.download_models(model=['Immune_All_Low.pkl', 'Immune_All_High.pkl'], force_update=True).

This change will be reflected in the next CellTypist version.