GithubHelp home page GithubHelp logo

Comments (8)

ChuanXu1 avatar ChuanXu1 commented on May 23, 2024 2

@B-WingBreaker, the immune model is from human, so very few genes are overlapped with your mouse data.

You can convert the human model to mouse one, and then apply CellTypist using the new model.

model = celltypist.Model.load('Immune_All_Low.pkl')
model.convert()
model.write('transformed_mouse_immune_model.pkl')
celltypist.annotate(your_adata, model = 'transformed_mouse_immune_model.pkl', majority_voting = True)

The result should be interpreted with caution due to inter-species difference.

from celltypist.

B-WingBreaker avatar B-WingBreaker commented on May 23, 2024

@B-WingBreaker, the immune model is from human, so very few genes are overlapped with your mouse data.

You can convert the human model to mouse one, and then apply CellTypist using the new model.

model = celltypist.Model.load('Immune_All_Low.pkl') model.convert() model.write('transformed_mouse_immune_model.pkl') celltypist.annotate(your_adata, model = 'transformed_mouse_immune_model.pkl', majority_voting = True)

The result should be interpreted with caution due to inter-species difference.

@ChuanXu1
This solved my problem well.
Most of the predictions seemed to match my preliminary annotation.
Thank you very much, ChuanXu1!

from celltypist.

Ahmedalaraby20 avatar Ahmedalaraby20 commented on May 23, 2024

I ran model.convert()
and I got AttributeError` type object 'Model' has no attribute 'convert'
Did something change ?

from celltypist.

ChuanXu1 avatar ChuanXu1 commented on May 23, 2024

@Ahmedalaraby20, can you confirm your version by celltypist.__version__?

from celltypist.

Ahmedalaraby20 avatar Ahmedalaraby20 commented on May 23, 2024

its '0.1.9'

import celltypist
from celltypist import models
model = celltypist.Model.load('Immune_All_Low.pkl')
model.convert()
model.write('transformed_mouse_immune_model.pkl')
celltypist.annotate(your_adata, model = 'transformed_mouse_immune_model.pkl', majority_voting = True)

Am I doing it wrong?

from celltypist.

ChuanXu1 avatar ChuanXu1 commented on May 23, 2024

@Ahmedalaraby20, this version is a bit old. Please try upgrading it by uninstalling and then installing a new one.

from celltypist.

Jammm11 avatar Jammm11 commented on May 23, 2024

@B-WingBreaker, the immune model is from human, so very few genes are overlapped with your mouse data.

You can convert the human model to mouse one, and then apply CellTypist using the new model.

model = celltypist.Model.load('Immune_All_Low.pkl') model.convert() model.write('transformed_mouse_immune_model.pkl') celltypist.annotate(your_adata, model = 'transformed_mouse_immune_model.pkl', majority_voting = True)

The result should be interpreted with caution due to inter-species difference.

Could you tell me the corresponding Linux command? I have not used python. Thank you very much!

from celltypist.

ChuanXu1 avatar ChuanXu1 commented on May 23, 2024

@B-WingBreaker, the immune model is from human, so very few genes are overlapped with your mouse data.
You can convert the human model to mouse one, and then apply CellTypist using the new model.
model = celltypist.Model.load('Immune_All_Low.pkl') model.convert() model.write('transformed_mouse_immune_model.pkl') celltypist.annotate(your_adata, model = 'transformed_mouse_immune_model.pkl', majority_voting = True)
The result should be interpreted with caution due to inter-species difference.

Could you tell me the corresponding Linux command? I have not used python. Thank you very much!

Cross-species model conversion is not possible with Linux command; you have to use the python code unfortunately.

from celltypist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.