-
Notifications
You must be signed in to change notification settings - Fork 13
add defaults to psm_reader.yaml #349
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
base: main
Are you sure you want to change the base?
Conversation
…ardcoded charge column name in _pre_process() to instead use the configuration yaml
| available_charge_columns = load_yaml( | ||
| Path(CONST_FILE_FOLDER) / PSM_READER_YAML_FILE_NAME | ||
| )[self._reader_type]["column_mapping"]["charge"] | ||
|
|
||
| self.precursor_charge_column = "PrecursorCharge" | ||
| for charge_col in available_charge_columns: | ||
| if charge_col in df.columns: | ||
| self.precursor_charge_column = charge_col | ||
| break |
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.
why is this extra logic required? isn't this covered by _translate_columns?
| fixed_C57: False | ||
| column_mapping: | ||
| 'raw_name': 'ReferenceRun' | ||
| 'raw_name': ['ReferenceRun', 'R.Label'] |
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 here: please indicate the version (for those columns you know by heart right now ;-))
What?
To accomodate for newer spectronaut version column names, fix hardcoded charge column name in _pre_process() to instead use the configuration yaml. In particular, adding to the spectronaut/column_mapping key in the psm_reader.yaml:
And to spectronaut/mod_seq_columns: