Skip to content

Commit

Permalink
- Fix: Fixed the bug of when plot upset plot with slecetion, the item…
Browse files Browse the repository at this point in the history
…s with zero value was not removed.
  • Loading branch information
byemaxx committed Dec 5, 2024
1 parent 5759b06 commit 961f466
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Docs/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Version: 1.119.9
## Date: 2024-12-5
### Changes:
- Fix: Fixed the bug of when plot upset plot with slecetion, the items with zero value was not removed.


# Version: 1.119.8
## Date: 2024-12-5
Expand Down
2 changes: 2 additions & 0 deletions metax/taxafunc_ploter/basic_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,8 @@ def plot_upset(self, df, title_name='Table', width=12, height=6, font_size=10,
"""

df = df.copy()
# remove all zero rows
df = df.loc[(df != 0).any(axis=1)]

if plot_sample:
# Create a binary matrix (boolean format) with samples as groups
Expand Down
2 changes: 1 addition & 1 deletion metax/utils/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '1.119.8'
__version__ = '1.119.9'
API_version = '4'
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "MetaXTools"
version = "1.119.8"
version = "1.119.9"
description = "MetaXTools is a novel tool for linking peptide sequences with taxonomic and functional information in Metaproteomics."
readme = "README_PyPi.md"
license = { text = "NorthOmics" }
Expand Down

0 comments on commit 961f466

Please sign in to comment.