From e0f504483808c89dad97202f986f40097afabab1 Mon Sep 17 00:00:00 2001 From: Pavankumar Videm Date: Thu, 30 Oct 2025 13:05:56 +0100 Subject: [PATCH 1/2] Add CellTypist tool for automated celltye annotation --- tools/celltypist/.shed.yml | 12 ++++ tools/celltypist/celltypist.xml | 112 ++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) create mode 100644 tools/celltypist/.shed.yml create mode 100644 tools/celltypist/celltypist.xml diff --git a/tools/celltypist/.shed.yml b/tools/celltypist/.shed.yml new file mode 100644 index 00000000000..ab8794c9417 --- /dev/null +++ b/tools/celltypist/.shed.yml @@ -0,0 +1,12 @@ +name: celltypist +owner: iuc +description: "CellTypist – Automated cell type annotation for scRNA-seq datasets" +homepage_url: https://www.celltypist.org/ +long_description: | + CellTypist is an automated cell type annotation tool for scRNA-seq datasets on the basis of logistic regression classifiers optimised by the stochastic gradient descent algorithm. CellTypist allows for cell prediction using either built-in (with a current focus on immune sub-populations) or custom models, in order to assist in the accurate classification of different cell types and subtypes. +remote_repository_url: https://github.com/galaxyproject/tools-iuc/tree/main/tools/celltypist +type: unrestricted +categories: + - Single Cell + - Spatial Omics + - Transcriptomics diff --git a/tools/celltypist/celltypist.xml b/tools/celltypist/celltypist.xml new file mode 100644 index 00000000000..52626ce6101 --- /dev/null +++ b/tools/celltypist/celltypist.xml @@ -0,0 +1,112 @@ + + Automated cell type annotation for scRNA-seq datasets + + 1.7.1 + + + celltypist + + + celltypist + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10.1126/science.abl5197 + + \ No newline at end of file From 16867f5b54dfe7fa27d32509dff485eca2682fdb Mon Sep 17 00:00:00 2001 From: Pavankumar Videm Date: Thu, 30 Oct 2025 17:41:34 +0100 Subject: [PATCH 2/2] add tests and do not copy anndata --- tools/celltypist/celltypist.xml | 47 ++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/tools/celltypist/celltypist.xml b/tools/celltypist/celltypist.xml index 52626ce6101..7e5124dd1be 100644 --- a/tools/celltypist/celltypist.xml +++ b/tools/celltypist/celltypist.xml @@ -10,9 +10,8 @@ celltypist @@ -21,12 +20,17 @@ import scanpy as sc import celltypist from celltypist import models -adata = sc.read_h5ad('anndata.h5ad') models.download_models(models='$model_name', cache_dir='./celltypist_models_cache') -model = models.Model.load(models='$model_name', cache_dir='./celltypist_models_cache') +adata = sc.read_h5ad('$adata') +models.download_models(model='$model_name') +model = models.Model.load(model='$model_name') predictions = celltypist.annotate(adata, model=model, - majority_voting=$majority_voting, +#if $majority_voting + majority_voting=True, +#end if +#if $transpose_input transpose_input=$transpose_input, +#end if mode='$mode', p_thres=$p_thres, min_prop=$min_prop) @@ -52,24 +56,43 @@ adata.write_h5ad('$anndata_out', compression='gzip') - - - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + +