Skip to content

Commit 06bd0df

Browse files
authored
Merge pull request #253 from scverse/fix_adjm_targets
Made pp.adjmat return all features instead of subset
2 parents 49c7e22 + c76cfc8 commit 06bd0df

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning][].
88
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
99
[semantic versioning]: https://semver.org/spec/v2.0.0.html
1010

11+
## 2.1.3
12+
13+
### Changes
14+
- `pp.adjmat` now returns the same features as used as input instead of the subset of `net`.
15+
16+
1117
## 2.1.2
1218

1319
### Added

src/decoupler/pp/net.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def adjmat(
192192
adjm = _order(features, targets, adjm)
193193
m = f"Network adjacency matrix has {targets.size} unique features and {sources.size} unique sources"
194194
_log(m, level="info", verbose=verbose)
195-
return sources, targets, adjm
195+
return sources, features, adjm
196196

197197

198198
@docs.dedent

0 commit comments

Comments
 (0)