-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 QuantScores #291
Comments
@enryH How did you run into the error? I can not replicate it. Are you on branch main? parse_settings is not a dict but a and we need the accessors because ParseModificationSettings and ParseSettings need to have the same interface
|
I ran into the error when I tried to integrate i2MassChroQ into the UI. I am not 100% sure why yet: #229 PR: #279 So I am working on that branch. I don't mind that it's implemented with methods to access the values. But you can then mask either the method or attribute depending on the execution order. Do you know who set this up intially? If we have methods, the attributes with the same name should have class ParseSettings:
"""Structure that contains all the parameters used to parse
the given benchmark run output depending on the software tool used."""
def __init__(self, parse_settings: dict[str, any], parse_settings_module: dict[str, any]):
self.mapper = parse_settings["mapper"]
self.condition_mapper = parse_settings["condition_mapper"]
self.run_mapper = parse_settings["run_mapper"]
self.decoy_flag = parse_settings["general"]["decoy_flag"]
self._species_dict = parse_settings["species_mapper"] `# # changed to start with _: self._species_dict
self.contaminant_flag = parse_settings["general"]["contaminant_flag"]
self.min_count_multispec = parse_settings_module["general"]["min_count_multispec"]
self._species_expected_ratio = parse_settings_module["species_expected_ratio"] # changed to start with _
def species_dict(self):
return self._species_dict # changed to start with _
def species_expected_ratio(self):
return self._species_expected_ratio # changed to start with _ Are both attributes set anywhere else in the code except the constructor? ( |
AFAIK they are only set in the constructor. I will add a _ to the attributes, give me time until lunch. |
Yes no hurry. I could also do it, but I think it's best to keep it a separate PR to highlight these changes. |
Then I run into an error related to QuantScores:
ProteoBench/proteobench/modules/dda_quant_ion/module.py
Lines 40 to 43 in 8284e9c
Which is probably due to an attribute and the corresponding method having the same name:
ProteoBench/proteobench/io/parsing/parse_settings_ion.py
Lines 43 to 63 in 8284e9c
which is also the case for the base class:
ProteoBench/proteobench/score/quant/quantscores.py
Lines 7 to 12 in bc72337
So I guess removing the assessor method for the dicts should be the best solution? @wolski what was you idea to create these?
The text was updated successfully, but these errors were encountered: