Skip to content
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

Refactor readers x #252

Open
wants to merge 8 commits into
base: refactor_readers_IX
Choose a base branch
from
Open

Conversation

mschwoer
Copy link
Contributor

@mschwoer mschwoer commented Nov 20, 2024

move more responsibility to psm_reader.yaml

also, changed the structure of psm_reader.yaml: all modification_mappings are now gathered under one key and referenced by readers.. let me know what you think!

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@mschwoer mschwoer marked this pull request as ready for review November 21, 2024 08:46
@@ -262,3 +265,4 @@ sage:
'peptide_fdr': 'peptide_q'
'protein_fdr': 'protein_q'
'decoy': 'is_decoy'
modification_mapping_type: 'maxquant'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this has an effect. sage uses a different mapping method to my knowledge.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch .. this works because in sageReader, _translate_modifications() is overwritten .. will change the yaml

@@ -13,13 +13,8 @@ alphapept:
'raw_name': 'raw_name' #parse from `ms_data.hdf`` file
'fdr': 'q_value'
'decoy': 'decoy'
modification_mapping:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we shall show here that if search engines use unimod_id

@@ -119,8 +124,7 @@ pfind:
'uniprot_ids': 'Proteins'
'fdr': 'Q-value'
'decoy': ['Target/Decoy', 'Targe/Decoy']
modification_mapping:
'': ''
modification_mapping_type: 'maxquant'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pFind does not use MaxQuant-like PTM format? Did this pass the pFind tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch .. this works because in pFindReader, _translate_modifications() is overwritten .. will change the yaml

Copy link
Collaborator

@jalew188 jalew188 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pFind-specific testing result is required

@mschwoer mschwoer requested a review from jalew188 December 20, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants