-
Notifications
You must be signed in to change notification settings - Fork 3
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
Change config handling #410
base: refactor_config
Are you sure you want to change the base?
Conversation
@@ -55,31 +66,31 @@ library_prediction: | |||
# also used for decoy channels | |||
custom_modifications: |
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.
alternatively: allow to add keys for the custom_modifications
key
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.
update: now that we can overwrite lists, the original format can be used again
e7f8988
to
6c8854b
Compare
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.
Looks good!
alphadia/cli.py
Outdated
cli_params_config = { | ||
ConfigKeys.RAW_PATHS: parse_raw_path_list(args, config), | ||
ConfigKeys.LIBRARY_PATH: args.library, | ||
ConfigKeys.FASTA_PATHS: args.fasta, |
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.
The output path is not here because it’s the only strictly required parameter I guess?
alphadia/constants/multistep.yaml
Outdated
@@ -12,6 +12,7 @@ transfer: | |||
enabled: True | |||
|
|||
# override settings that could have been set by the user: | |||
quant_dir: null |
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.
Is this necessary ?
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.
yes, to overwrite anything the user was setting
mbr_step_extra_config = ( | ||
self._multistep_config[MBR_STEP_NAME] | optimized_values_config | ||
self._multistep_config[MBR_STEP_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.
Is this a way to update dicts?🤔
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.
*merge dicts
@@ -52,7 +54,7 @@ def __init__( | |||
""" | |||
self._instance_name: str = instance_name | |||
self._parent_path: str = quant_path or os.path.join( |
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.
Maybe we should rename the parent_path. That’s indeed quite confusing.
alphadia/workflow/config.py
Outdated
@@ -33,7 +33,9 @@ | |||
|
|||
logger = logging.getLogger() | |||
|
|||
USER_DEFINED = "user defined" | |||
USER_DEFINED_CLI = "user defined (cli)" |
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 is also what gui users will see. I guess it’s fine 🤷🏻♂️
alphadia/workflow/config.py
Outdated
return new_value | ||
|
||
# If the default config is a list, then we need to update each item in the list | ||
# If the default config is a list, then we overwrite all items in the list. The latest experiment wins. |
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 like this! This is totally sufficient and simpler.
@@ -153,3 +153,7 @@ multistep_search: | |||
transfer_step_enabled: True | |||
mbr_step_enabled: True | |||
``` | |||
|
|||
In case the multistep search fails at some step, you can restart the failed step by | |||
using the `full_config.yaml` that is stored in the respective subfolder. You can of course edit |
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.
Is this applicable to GUI users?
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.
not yet
ea3c760
to
25c4bc0
Compare
70560fa
to
82dfe46
Compare
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.
LGTM
modifications
sectionSee the updated docs for the motivation :-)