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

Fix ms2 transferlearning ms2 bug #407

Closed
wants to merge 1 commit into from

Conversation

mo-sameh
Copy link
Collaborator

@mo-sameh mo-sameh commented Dec 15, 2024

A fix for #406

This might be a good place to explain what was going on:

  • From my experiences, in peptdeep when using the prediction functionality directly from the model class (instead of using predict_all in the model manager), it expects the precursors to be sorted by nAA. If they aren’t sorted, you end up with an all-zero fragments dataframe. That’s why I added the df_refinement step in this PR to handle this issue.

  • When the precursors are sorted by nAA, PeptDeep drops the old fragment indices and reinitializes them (in-place) based on the refined precursors. This caused problems when trying to compare predictions with a ground truth. This part of the issue was already handled but I wanted to explain why we are doing multiple preprocessing steps before prediction, and this commit specifically fixes the nAA sorting-related problem.

This should address both issues and ensure things work as expected.

@mo-sameh mo-sameh changed the base branch from main to development December 15, 2024 01:43
@mo-sameh mo-sameh requested a review from GeorgWa December 15, 2024 15:59
@GeorgWa GeorgWa added the test:e2e End to end tests will be run on PRs that carry this label. label Dec 15, 2024
@GeorgWa GeorgWa changed the base branch from development to main December 15, 2024 19:00
@GeorgWa GeorgWa changed the base branch from main to development December 15, 2024 19:01
@GeorgWa
Copy link
Collaborator

GeorgWa commented Dec 15, 2024

Hi Mo, we got rid of development branch. Can you reopen the PR based of main?

@mo-sameh mo-sameh closed this Dec 15, 2024
@mo-sameh mo-sameh deleted the fix-ms2-transferlearning-ms2-bug branch December 15, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test:e2e End to end tests will be run on PRs that carry this label.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants