From 975d2e1f5c661a32b4ad56a13acaa18f03d275fe Mon Sep 17 00:00:00 2001 From: Starlitnightly Date: Wed, 17 Jul 2024 19:40:15 +0800 Subject: [PATCH] Fixed the 'celltyep_key' error of `ov.pl.cpdb_group_heatmap` #109 --- omicverse/pl/_cpdb.py | 4 ++-- omicverse_guide/docs/Release_notes.md | 10 ++++++++++ pyproject.toml | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/omicverse/pl/_cpdb.py b/omicverse/pl/_cpdb.py index 42f3d9fb..65cb507a 100644 --- a/omicverse/pl/_cpdb.py +++ b/omicverse/pl/_cpdb.py @@ -540,12 +540,12 @@ def cpdb_group_heatmap(adata, source_gene_pd=pd.DataFrame(index=cor.index) for source_cell in source_cells: - source_gene_pd[source_cell]=adata[adata.obs['cell_labels']==source_cell, + source_gene_pd[source_cell]=adata[adata.obs[celltype_key]==source_cell, [i.split('_')[0] for i in cor.index]].to_df().mean().values target_gene_pd=pd.DataFrame(index=cor.index) for target_cell in target_cells: - target_gene_pd[target_cell]=adata[adata.obs['cell_labels']==target_cell, + target_gene_pd[target_cell]=adata[adata.obs[celltype_key]==target_cell, [i.split('_')[1] for i in cor.index]].to_df().mean().values cor=pd.concat([source_gene_pd,target_gene_pd],axis=1) diff --git a/omicverse_guide/docs/Release_notes.md b/omicverse_guide/docs/Release_notes.md index 7615416b..6db2ce3e 100644 --- a/omicverse_guide/docs/Release_notes.md +++ b/omicverse_guide/docs/Release_notes.md @@ -414,3 +414,13 @@ Support Raw Windows platform - Fixed an error of `ov.pp.pca` when pcs smaller than 13. #102 - Added `COMPOSITE` in `ov.pp.qc`'s method to predicted doublet cells. #103 - Added `species` argument in `score_genes_cell_cycle` to calculate the cell phase without gene manual input + +## v 1.6.6 + +### Pl Module + +- Fixed the 'celltyep_key' error of `ov.pl.cpdb_group_heatmap` #109 + +### Bulk Module + +- Fiexed an key error in `ov.bulk.Matrix_ID_mapping` \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index e9d43122..f1bac8e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi" [project] name = "omicverse" -version = "1.6.5" +version = "1.6.6" description = "OmicVerse: A single pipeline for exploring the entire transcriptome universe" readme = "README.md" requires-python = ">=3.8"