Skip to content

Commit

Permalink
- Fix: Fixed the filter of pvalue or padj option not work for functio…
Browse files Browse the repository at this point in the history
…nal redundancy analysis in T-Test part.
  • Loading branch information
byemaxx committed Oct 4, 2024
1 parent e7aad1f commit 349e3a6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
7 changes: 6 additions & 1 deletion Docs/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Version: 1.115.3
## Date: 2024-10-04
### Changes:
- Fix: Fixed the filter of pvalue or padj option not work for functional redundancy analysis in T-Test part.

# Version: 1.115.2
## Date: 2024-10-03
## Date: 2024-10-04
### Changes:
- New: added a new Normalization method: "Trace Shifting" for the data preprossing.

Expand Down
5 changes: 3 additions & 2 deletions metax/gui/main_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4881,12 +4881,13 @@ def t_test(self):
try:
self.pushButton_ttest.setEnabled(False)
group_list = [group1, group2]
table_names = []
table_names = [] # reset table_names as empty list
if df_type == 'Significant Taxa-Func'.lower():
p_value = self.doubleSpinBox_top_heatmap_pvalue.value()
p_value = round(p_value, 4)
p_type = self.comboBox_top_heatmap_p_type.currentText()

ttest_sig_tf_params = {'group_list': group_list, 'p_value': p_value, 'condition': condition}
ttest_sig_tf_params = {'group_list': group_list, 'p_value': p_value, 'condition': condition, "p_type": p_type}
self.run_in_new_window(self.tfa.CrossTest.get_stats_diff_taxa_but_func, callback= self.callback_after_ttest, **ttest_sig_tf_params)


Expand Down
2 changes: 1 addition & 1 deletion metax/taxafunc_analyzer/analyzer_utils/cross_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def get_stats_diff_taxa_but_func(self, group_list: list|None = None, p_value: fl
condition:list|None =None, p_type: str = 'padj'
) -> tuple:
p_col_name = 'pvalue' if p_type == 'pvalue' else 'padj'

print(f"Using [{p_col_name}] for filtering")
# calculate the test result if not given
if taxa_res_df is None or func_res_df is None or taxa_func_res_df is None:
print("No test result given, calculating the test result first")
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.115.2'
__version__ = '1.115.3'
API_version = '3'
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.115.2"
version = "1.115.3"
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 349e3a6

Please sign in to comment.