Skip to content

Commit

Permalink
Fixed a return bugs in pp.regress_and_scale (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlitnightly committed Sep 21, 2024
1 parent 89190bf commit 6c15c09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion omicverse/pp/_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def regress_and_scale(adata):
raise KeyError('Regress out covariates first!')
adata_mock= adata.copy()
adata_mock.X = adata_mock.layers['regressed']
adata_mock = scale(adata_mock)
scale(adata_mock)
adata.layers['regressed_and_scaled'] = adata_mock.layers['scaled']

return adata
Expand Down
6 changes: 5 additions & 1 deletion omicverse_guide/docs/Release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,4 +477,8 @@ Support Raw Windows platform

### Bulk2Single Module

- Remove `_stat_axis` in `bulk2single_data_prepare` and use `index` instead of it (#160).
- Remove `_stat_axis` in `bulk2single_data_prepare` and use `index` instead of it (#160).

### PP Module

- Fixed a return bugs in `pp.regress_and_scale` (#156)

0 comments on commit 6c15c09

Please sign in to comment.