-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use metadata params for submission #158
Conversation
…h has local dev set to true
…om/Proteobench/ProteoBench into use-metadata-params-for-submission
|
||
if input_format == "MaxQuant": | ||
params = maxquant.extract_params(input_file) | ||
# elif input_format == "AlphaPept": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also availabe. Would you like to have a dictionary of extract_params
functions in the module preteobench.io.params
? Then you could avoid the long block of if/else statements and handle potential key-errros.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! Will change.
- Many variable names were changed, among others renamed search engine to software - This means that results.json has new entries, see Proteobot/Results_quant_ion_DDA#117 - TODO: still need to adapt the tests and template to the new variable names
This branch only works if you use the results.json from Proteobot/Results_quant_ion_DDA#117 locally (save it and point to it in DDA_QUANT_RESULTS_PATH and uncomment the two places where it is used in module.py). |
@RobbinBouwmeester I think it is pretty much done. Tests should work once the results.json in the repo is replaced. Note that the biggest change comes from using |
@@ -343,6 +359,8 @@ def clone_pr( | |||
current_datapoint = temporary_datapoints.iloc[-1] | |||
current_datapoint["is_temporary"] = False | |||
for k, v in datapoint_params.__dict__.items(): | |||
if k == "software_name": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, fixed in a (hopefully) more elegant way.
@@ -380,6 +398,8 @@ def write_json_local_development(self, temporary_datapoints, datapoint_params): | |||
|
|||
# Update parameters based on parsed params | |||
for k, v in datapoint_params.__dict__.items(): | |||
if k == "software_name": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are good to go. Maybe @enryH can have a final look as an independent observer?
No description provided.