Teichlab / celltypist

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

Issue with Offline Label Transfer #122

Open macelik opened 1 month ago

macelik commented 1 month ago

Hello there,

First off, I want to say thank you for the great tool and excellent documentation!

I have a question regarding the label transfer process. I trained CellTypist with a reference dataset, but when I try to annotate, the tool attempts to download the models.json file from this URL. Unfortunately, I am working on a compute node without an internet connection.

Is there a way to bypass this download requirement?

Thanks in advance for your help! Muhammet

macelik commented 1 month ago

Anyone who experience the same issue. I loaded the model manually before calling annotation function.

from celltypist import models
models.models_path='./'
model = models.Model.load(model = 'model_from_lasry.pkl')
ChuanXu1 commented 1 month ago

@macelik, please install the latest celltypist (v1.6.3), and usemodel = models.Model.load(model = './model_from_lasry.pkl'), which should allow you to load models offline.