Comments (8)
@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, 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.
I ran model.convert()
and I got AttributeError` type object 'Model' has no attribute 'convert'
Did something change ?
from celltypist.
@Ahmedalaraby20, can you confirm your version by celltypist.__version__
?
from celltypist.
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.
@Ahmedalaraby20, this version is a bit old. Please try upgrading it by uninstalling and then installing a new one.
from celltypist.
@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.
@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)
- " have completed preprocessing and cell clustering. " HOT 2
- codes for harmonizing the cell labels HOT 2
- the question about conf_score HOT 3
- Error happened in models HOT 8
- Invalid expression matrix in `.X`, expect log1p normalized expression to 10000 counts per cell; will try the `.raw` attribute HOT 10
- KeyError when insert conf of majority_voting under `porb match` mode HOT 2
- Preparing custom reference files HOT 2
- Error running celltypist HOT 10
- Allow to specify the AnnData var field that has the gene_symbols instead of only relying on var_names HOT 2
- Harmonize and Integrate HOT 1
- Potentially misleading error when counts are not in expected range HOT 3
- Request: allow to specify AnnData layer to use HOT 1
- confidence score definition HOT 2
- Issues running with conda HOT 3
- Using model trained by scRNA-seq datasets to predict Spatial transcriptmoic dataset HOT 2
- Unable to allocate xxx GiB for an array with shape and data type float64 HOT 2
- Running `celltypist.annotate` with `min_prop` can't create "Heterogeneous" category HOT 2
- Use of metacells? HOT 4
- unable to download models HOT 3
- Feature Request: Store freqs in annotation when majority_vote set to True HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from celltypist.