From 961f466a86d7c638f8caa8892134d32a4c2ea18b Mon Sep 17 00:00:00 2001 From: Qing Date: Thu, 5 Dec 2024 17:14:18 -0500 Subject: [PATCH] - Fix: Fixed the bug of when plot upset plot with slecetion, the items with zero value was not removed. --- Docs/ChangeLog.md | 5 +++++ metax/taxafunc_ploter/basic_plot.py | 2 ++ metax/utils/version.py | 2 +- pyproject.toml | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Docs/ChangeLog.md b/Docs/ChangeLog.md index 5d99a59..b55b232 100644 --- a/Docs/ChangeLog.md +++ b/Docs/ChangeLog.md @@ -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 diff --git a/metax/taxafunc_ploter/basic_plot.py b/metax/taxafunc_ploter/basic_plot.py index d5b44a7..2976aa6 100644 --- a/metax/taxafunc_ploter/basic_plot.py +++ b/metax/taxafunc_ploter/basic_plot.py @@ -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 diff --git a/metax/utils/version.py b/metax/utils/version.py index 50e924d..d65f69f 100644 --- a/metax/utils/version.py +++ b/metax/utils/version.py @@ -1,2 +1,2 @@ -__version__ = '1.119.8' +__version__ = '1.119.9' API_version = '4' \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 90a66cc..d2eef34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" }