-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I subset the model to a select few cell types/clusters before training the model? #129
Comments
@yojetsharma, please refer to this question #128 |
I did try that:
|
@yojetsharma, if you are just selecting a subset of cell types, just use |
Right, thanks for this but does the following mean there is an installation error of the package on my end:
|
I tried Boolean indexing on the reference model (downloded from celltypist models) since the model.cell_types is a direct NumPy array:
But the above still didn't work, most likely because the model is a not an anndata object. Does this mean i will need to downlaod this model from the source and make it as a model myself and then use it in the celltypist program? |
@yojetsharma, if you try to subset the model, it is not possible. You need to subset your anndata and re-train the model using |
I am using the Human_Developing_Brain.pkl as a model to annotate the query dataset. However, I am only interested in select few cell types/clusters. Is there a function to subset those clusters?
Thank you!
The text was updated successfully, but these errors were encountered: