Skip to content

Commit

Permalink
Fixed the 'celltyep_key' error of ov.pl.cpdb_group_heatmap #109
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlitnightly committed Jul 17, 2024
1 parent 52874ad commit 975d2e1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions omicverse/pl/_cpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 10 additions & 0 deletions omicverse_guide/docs/Release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 975d2e1

Please sign in to comment.