-
Notifications
You must be signed in to change notification settings - Fork 483
Add CellTypist tool for automated celltype annotation #7415
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
base: main
Are you sure you want to change the base?
Conversation
| <param name="prediction" type="text" label="Prediction column in AnnData.obs for dotplot" value="predicted_labels" /> | ||
| </inputs> | ||
| <outputs> | ||
| <data name="anndata_out" format="h5ad" label="${tool.name} on ${on_string}: AnnData with celltype annotations" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No label needed if there is only one output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intially, I implemented an option to create a dotplot of probabilities per predicted type over some existing annotation. But this is not very useful. Removed it.
tools/celltypist/celltypist.xml
Outdated
| <requirement type="package" version="@TOOL_VERSION@">celltypist</requirement> | ||
| </requirements> | ||
| <command><![CDATA[ | ||
| cp '$adata' 'anndata.h5ad' && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the copy needed?
tools/celltypist/celltypist.xml
Outdated
| import celltypist | ||
| from celltypist import models | ||
|
|
||
| adata = sc.read_h5ad('anndata.h5ad') models.download_models(models='$model_name', cache_dir='./celltypist_models_cache') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| adata = sc.read_h5ad('anndata.h5ad') models.download_models(models='$model_name', cache_dir='./celltypist_models_cache') | |
| adata = sc.read_h5ad('$adata') | |
| models.download_models(models='$model_name', cache_dir='./celltypist_models_cache') |
tools/celltypist/celltypist.xml
Outdated
| <option value="prob match">Enable a multi-label classification utilising a probability threshold</option> | ||
| </param> | ||
| <param name="p_thres" type="float" label="Probability threshold" value="0.5" /> | ||
| <param name="min_prop" type="float" label="Minimum proportion for cell type assignment" value="0.05" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min/max
tools/celltypist/celltypist.xml
Outdated
| <param name="p_thres" type="float" label="Probability threshold" value="0.5" /> | ||
| <param name="min_prop" type="float" label="Minimum proportion for cell type assignment" value="0.05" /> | ||
| <param name="reference" type="text" label="Reference column in AnnData.obs for dotplot" value="cell_type" /> | ||
| <param name="prediction" type="text" label="Prediction column in AnnData.obs for dotplot" value="predicted_labels" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are empty_field validators needed for the text inputs?
015f8f5 to
16867f5
Compare
FOR CONTRIBUTOR: