Skip to content

Commit

Permalink
MQ files and new nan
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbinBouwmeester committed Jan 23, 2025
1 parent 0e650ad commit 26cc09f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 58 deletions.
6 changes: 3 additions & 3 deletions proteobench/io/params/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def __init__(
for key, value in kwargs.items():
print(key, value)
if hasattr(self, key) and value == "None":
setattr(self, key, np.NaN)
setattr(self, key, np.nan)
elif hasattr(self, key):
setattr(self, key, value)

Expand All @@ -109,11 +109,11 @@ def __repr__(self):

def fill_none(self):
"""
Fill all None values with np.NaN
Fill all None values with np.nan
"""
for key, value in self.__dict__.items():
if value == "None":
setattr(self, key, np.NaN)
setattr(self, key, np.nan)


# Automatically initialize from fields.json if run directly
Expand Down
13 changes: 5 additions & 8 deletions test/params/mqpar1.5.3.30_MBR_sel.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"software_name": null,
"software_name": NaN,
"software_version": "1.5.3.30",
"search_engine": "Andromeda",
"search_engine_version": null,
"search_engine_version": "1.0",
"ident_fdr_psm": null,
"ident_fdr_peptide": 0.01,
"ident_fdr_protein": 0.01,
Expand All @@ -18,10 +18,7 @@
"max_mods": 5,
"min_precursor_charge": null,
"max_precursor_charge": 7,
"scan_window": null,
"quantification_method": null,
"second_pass": null,
"protein_inference": null,
"predictors_library": null,
"abundance_normalization_ions": null
"quantification_method": NaN,
"protein_inference": NaN,
"abundance_normalization_ions": NaN
}
13 changes: 5 additions & 8 deletions test/params/mqpar_MQ1.6.3.3_MBR_sel.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"software_name": null,
"software_name": NaN,
"software_version": "1.6.3.3",
"search_engine": "Andromeda",
"search_engine_version": null,
"search_engine_version": "1.0",
"ident_fdr_psm": null,
"ident_fdr_peptide": 0.01,
"ident_fdr_protein": 0.01,
Expand All @@ -18,10 +18,7 @@
"max_mods": 5,
"min_precursor_charge": null,
"max_precursor_charge": 7,
"scan_window": null,
"quantification_method": null,
"second_pass": null,
"protein_inference": null,
"predictors_library": null,
"abundance_normalization_ions": null
"quantification_method": NaN,
"protein_inference": NaN,
"abundance_normalization_ions": NaN
}
13 changes: 5 additions & 8 deletions test/params/mqpar_MQ2.1.3.0_noMBR_sel.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"software_name": null,
"software_name": NaN,
"software_version": "2.1.3.0",
"search_engine": "Andromeda",
"search_engine_version": null,
"search_engine_version": "1.0",
"ident_fdr_psm": null,
"ident_fdr_peptide": 0.01,
"ident_fdr_protein": 0.01,
Expand All @@ -18,10 +18,7 @@
"max_mods": 5,
"min_precursor_charge": null,
"max_precursor_charge": 7,
"scan_window": null,
"quantification_method": null,
"second_pass": null,
"protein_inference": null,
"predictors_library": null,
"abundance_normalization_ions": null
"quantification_method": NaN,
"protein_inference": NaN,
"abundance_normalization_ions": NaN
}
13 changes: 5 additions & 8 deletions test/params/mqpar_mq2.6.2.0_1mc_MBR_sel.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"software_name": null,
"software_name": NaN,
"software_version": "2.6.2.0",
"search_engine": "Andromeda",
"search_engine_version": null,
"search_engine_version": "1.0",
"ident_fdr_psm": null,
"ident_fdr_peptide": 0.01,
"ident_fdr_protein": 0.01,
Expand All @@ -18,10 +18,7 @@
"max_mods": 5,
"min_precursor_charge": null,
"max_precursor_charge": 7,
"scan_window": null,
"quantification_method": null,
"second_pass": null,
"protein_inference": null,
"predictors_library": null,
"abundance_normalization_ions": null
"quantification_method": NaN,
"protein_inference": NaN,
"abundance_normalization_ions": NaN
}
23 changes: 0 additions & 23 deletions test/test_proline.csv

This file was deleted.

0 comments on commit 26cc09f

Please sign in to comment.