From 034b09fb3ed677fa71d58382bc43e1dd3cf9a9b9 Mon Sep 17 00:00:00 2001
From: Qing <44231502+byemaxx@users.noreply.github.com>
Date: Fri, 18 Oct 2024 13:34:08 -0400
Subject: [PATCH 1/2] - New: 1. Added Advanced Parameters for Peptide Annotator
2. Add [Fill Zero] method for handling missing values in the data preprossing
part.
---
Docs/ChangeLog.md | 6 +
metax/gui/main_gui.py | 20 +-
metax/gui/metax_gui/main_window.ui | 524 ++++++++++++------
metax/gui/metax_gui/ui_main_window.py | 153 +++--
metax/peptide_annotator/peptable_annotator.py | 72 ++-
metax/taxafunc_analyzer/analyzer.py | 9 +-
.../analyzer_utils/data_preprocessing.py | 6 +
metax/utils/version.py | 2 +-
pyproject.toml | 2 +-
9 files changed, 566 insertions(+), 228 deletions(-)
diff --git a/Docs/ChangeLog.md b/Docs/ChangeLog.md
index d33e688..c7897c3 100644
--- a/Docs/ChangeLog.md
+++ b/Docs/ChangeLog.md
@@ -1,3 +1,9 @@
+# Version: 1.116.0
+## Date: 2024-10-18
+### Changes:
+- New: 1. Added Advanced Parameters for Peptide Annotator 2. Add [Fill Zero] method for handling missing values in the data preprossing part.
+
+
# Version: 1.115.5
## Date: 2024-10-16
### Changes:
diff --git a/metax/gui/main_gui.py b/metax/gui/main_gui.py
index 7230595..5feea8c 100644
--- a/metax/gui/main_gui.py
+++ b/metax/gui/main_gui.py
@@ -796,7 +796,8 @@ def hide_plot_setting_groupbox(self):
groupbox_list = ["groupBox_basic_plot", "groupBox_basic_heatmap_plot_settings",
"groupBox_cross_heatmap_settings", "groupBox_deseq2_plot_settings",
"groupBox_co_expression_plot_settings", "groupBox_expression_trends_plot_settings",
- "groupBox_taxa_func_link_plot_settings", "groupBox_taxa_func_link_net_plot_settings"
+ "groupBox_taxa_func_link_plot_settings", "groupBox_taxa_func_link_net_plot_settings",
+ "groupBox_peptide_annotator_settings"
]
for groupbox_name in groupbox_list:
groupbox = getattr(self, groupbox_name)
@@ -2049,6 +2050,14 @@ def run_peptide2taxafunc(self):
final_peptide_path = f'''{self.lineEdit_final_peptide_path.text()}'''
peptide2taxafunc_outpath = f'''{self.lineEdit_peptide2taxafunc_outpath.text()}'''
threshold = float(self.doubleSpinBox_LCA_threshold.value())
+ genome_mode = self.checkBox_annotator_genome_mode.isChecked()
+ protein_separator = self.lineEdit_annotator_protein_separator.text()
+ protein_genome_separator = self.lineEdit_annotator_genome_separator.text()
+ peptide_col = self.lineEdit_annotator_peptide_col_name.text()
+ protein_col = self.lineEdit_annotator_protein_col_name.text()
+ sample_col_prefix = self.lineEdit_annotator_sample_col_prefix.text()
+ distinct_genome_threshold = self.spinBox_annotator_distinct_num_threshold.value()
+ exclude_protein_contains = self.lineEdit_annotator_exclude_protein_contains.text()
if db_path == '':
QMessageBox.warning(self.MainWindow, 'Warning', 'Please select database!')
@@ -2065,6 +2074,15 @@ def peptide2taxafunc_main_wrapper():
peptide_path = final_peptide_path,
output_path = peptide2taxafunc_outpath,
threshold=threshold,
+ genome_mode=genome_mode,
+ protein_separator=protein_separator,
+ protein_genome_separator=protein_genome_separator,
+ protein_col=protein_col,
+ peptide_col=peptide_col,
+ sample_col_prefix=sample_col_prefix,
+ distinct_genome_threshold=distinct_genome_threshold,
+ exclude_protein_contains = exclude_protein_contains
+
)
return instance.run_annotate()
self.run_in_new_window(peptide2taxafunc_main_wrapper, show_msg=True)
diff --git a/metax/gui/metax_gui/main_window.ui b/metax/gui/metax_gui/main_window.ui
index d780368..81c7523 100644
--- a/metax/gui/metax_gui/main_window.ui
+++ b/metax/gui/metax_gui/main_window.ui
@@ -245,8 +245,8 @@
0
0
- 391
- 80
+ 528
+ 534
@@ -726,6 +726,11 @@
multiple
+ -
+
+ FillZero
+
+
@@ -907,6 +912,11 @@
regression
+ -
+
+ FillZero
+
+
@@ -2779,7 +2789,7 @@
0
0
- 999
+ 621
150
@@ -7457,8 +7467,8 @@
0
0
- 620
- 65
+ 1016
+ 105
@@ -9278,8 +9288,8 @@
0
0
- 383
- 68
+ 1016
+ 141
@@ -9502,16 +9512,13 @@
-
- 1
+ 0
MAG
-
-
-
-
-
@@ -9519,34 +9526,174 @@
+ -
+
+
+ Open
+
+
+
+ -
+
+
+ ?
+
+
+
-
- -
-
+
-
+
- Database
+ ?
- -
-
+
-
+
- LCA Threshold
+ GO
- -
-
-
- Open
+
-
+
+
+ Annotating Settings
+
+
-
+
+
-
+
+
+ Proteins
+
+
+
+ -
+
+
+ Peptide Column Name
+
+
+
+ -
+
+
+ Protein Separator
+
+
+
+ -
+
+
+ Genome Separator in Protein ID
+
+
+
+ -
+
+
+ Proteins Group Column Name
+
+
+
+ -
+
+
+ Sequence
+
+
+
+ -
+
+
+ The separator between proteins in protein groups, e.g. ";" in MGYG000003683_00301;MGYG000000756_01431;MGYG000001490_01143
+
+
+ ;
+
+
+
+ -
+
+
+ The separator in protein ID to split the genome ID. e.g. "_" in MGYG000003683_00301
+
+
+ _
+
+
+
+ -
+
+
+ Prefix of Intensity Column
+
+
+
+ -
+
+
+ e.g. "Intensity" in Intensity_V2_05, Intensity_V2_06
+
+
+ Intensity
+
+
+
+ -
+
+
+ Filter Genome with Distinct peptide Number
+
+
+
+ -
+
+
+ 9999
+
+
+
+ -
+
+
+ Staring LCA level from Genome
+
+
+ true
+
+
+
+ -
+
+
+ Exclude Protein with
+
+
+
+ -
+
+
+ Remove the peptides which annoate to exclude proteins
+
+
+ REV_
+
+
+
+
+
+
- -
-
+
-
+
- ?
+ LCA Threshold
@@ -9557,17 +9704,17 @@
- -
-
+
-
+
- Open
+ Database
- -
-
+
-
+
- ?
+ Open
@@ -9597,6 +9744,9 @@
+ -
+
+
-
@@ -9604,10 +9754,10 @@
- -
-
+
-
+
- GO
+ Show Advanced Settings
@@ -9635,8 +9785,8 @@
0
0
- 313
- 41
+ 1044
+ 493
@@ -10273,7 +10423,7 @@
0
0
1122
- 23
+ 21