Skip to content

Commit c76cfc8

Browse files
committed
Made pp.adjmat return all features instead of subset
1 parent 3d81544 commit c76cfc8

3 files changed

Lines changed: 8 additions & 2 deletions

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = [ "hatchling" ]
44

55
[project]
66
name = "decoupler"
7-
version = "2.1.2"
7+
version = "2.1.3"
88
description = "Python package to perform enrichment analysis from omics data."
99
readme = "README.md"
1010
license = { file = "LICENSE" }

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)