[WIP] Decoy peptide from target peptide #558
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Working towards decoy on the fly. This pull request adds a function to PeptideWithSetMods to create a related decoy. The new function identifies proteolytic sites in the peptide and keeps those amino acids and attached mods in the same position in the decoy. N-terminal mods are also preserved. All other amino acids in the peptide are reversed. Mods on reversed amino acids go with the amino acid so they appear in a new position on the decoy.
Sometimes the above process returns the identical sequence. In this case, I added a new method that provides the mirror image. This reduces the incidence. But still there are some cases where a decoy still matches a target. This is from total palindrome (including cleavage motif) for example (RLEEEEELR). Oh well.
Traditional MetaMorpheus Protein reverse results in a higher number of decoys matching targets than this method by 5X.
Things to deal with: