diff --git a/metax/taxafunc_analyzer/analyzer_utils/razor_sum.py b/metax/taxafunc_analyzer/analyzer_utils/razor_sum.py index 6c9aa04..00e025e 100644 --- a/metax/taxafunc_analyzer/analyzer_utils/razor_sum.py +++ b/metax/taxafunc_analyzer/analyzer_utils/razor_sum.py @@ -80,8 +80,10 @@ def remove_proteins(proteins): df = self.df.copy() - df[self.column_map['target']] = df[self.column_map['target']].apply(remove_proteins) + tqdm.pandas(desc="Removing proteins") + df[self.column_map['target']] = df[self.column_map['target']].progress_apply(remove_proteins) + # remove the rows with NA protein of sellf.df self.df = self.df[df[self.column_map['target']] != ''] # print The number of proteins and peptides after removing the proteins with less than threshold peptides @@ -265,5 +267,5 @@ def _update_output_dict(self, target_list, sample_name, intensity): # res_df.to_csv('razor_protein_intensity.tsv', sep='\t') # or get minimum target set only - mini_target_set = sia.get_mini_target_set(greedy_method='heap') + # mini_target_set = sia.get_mini_target_set(greedy_method='heap') diff --git a/pyproject.toml b/pyproject.toml index 4353e18..02df8b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "MetaXTools" -version = "1.114.1" +version = "1.114.2" description = "MetaXTools is a novel tool for linking peptide sequences with taxonomic and functional information in Metaproteomics." readme = "README_PyPi.md" license = { text = "NorthOmics" }