Repository navigation
[Feature] Add xtandem cleavage rules - #3059
Conversation
|
Related to #2497 |
| { // '0' is included in cleavage_positions, so starting fragments will be found as well | ||
| spec_n = true; | ||
| } | ||
| else if (allow_random_asp_pro_cleavage && (sequence[pos-1] == 'D') && (sequence[pos] == 'P')) |
There was a problem hiding this comment.
Yes but then it would be found in the first "if case" since 0 is always included in the cleavage_positions. I hope this assumption is not too loose.
| { | ||
| spec_c = true; | ||
| } | ||
| else if (allow_random_asp_pro_cleavage && (sequence[end-1] == 'D') && (sequence[end] == 'P')) |
There was a problem hiding this comment.
no, see line 139. length >=1 and end = pos + length
|
@cbielow Can you have a look if this is already correctly used in PeptideIndexer or if it needs changes? |
|
|
||
| /// Returns true if the fragment starting at position @p pos with length @p length within the sequence @p sequence could be generated by the current model | ||
| bool isValidProduct(const String& sequence, Size pos, Size length, bool ignore_missed_cleavages = true) const; | ||
| bool isValidProduct(const String& sequence, Size pos, Size length, bool ignore_missed_cleavages = true, bool allow_random_asp_pro_cleavage = false) const; |
There was a problem hiding this comment.
Hmm so we have this also in the base class
There was a problem hiding this comment.
Yes unfortunately that is the only place where I had access to the needed data. To avoid this, bigger restructuring would be necessary I guees.
There was a problem hiding this comment.
@hendrikweisser any idea how we can get this hin without making the current design obsolete?
|
|
||
| /// Returns true if the fragment starting at position @p pos with length @p length within the sequence @p sequence could be generated by the current model | ||
| bool isValidProduct(const String& sequence, Size pos, Size length, bool ignore_missed_cleavages = true) const; | ||
| bool isValidProduct(const String& sequence, Size pos, Size length, bool ignore_missed_cleavages = true, bool allow_random_asp_pro_cleavage = false) const; |
There was a problem hiding this comment.
this should not be in the base class of RNases and Proteases
There was a problem hiding this comment.
Ok, we discussed some changes for this offline. Wait for update.
|
Please check again. |
|
Only Percolator fails, fixed in other Pr. |
|
+1 |
| /// Variant of EnzymaticDigestion::isValidProduct() with support for methionine cleavage | ||
| bool isValidProduct(const String& protein, Size pep_pos, Size pep_length, bool ignore_missed_cleavages = true, bool methionine_cleavage = false) const; | ||
| /// Variant of EnzymaticDigestion::isValidProduct() with support for n-term protein cleavage and random D|P cleavage | ||
| bool isValidProduct(const String& protein, Size pep_pos, Size pep_length, bool ignore_missed_cleavages = true, bool allow_nterm_protein_cleavage = false, bool allow_random_asp_pro_cleavage = true) const; |
There was a problem hiding this comment.
one last question.... is allow_random_asp_pro_cleavage = true a sensible default?
There was a problem hiding this comment.
I dont think so, better to make it false by default
|
Julianus and I had a quick chat and we came to the conclusion that the allow_random_asp_pro_cleavage option might lead to unexpected results for non-xtandem searches (if enabled by default). We will see if we need another take on that issue and maybe just enable the allow_random_asp_pro_cleavage if a XTandem search is indexed in PeptideIndexer |
|
Changing defaults right now: What about the second AA at protein n-term. Should this be standard with allow_nterm_cleavage? |
|
In conjunction with enzymes that cut after D it works, too. |
|
Any complaints on the defaults? |
|
looks good and seems to be well covered by tests +1 |
Extends allow_methionine_cleavage to allow_nterm_protein_cleavage which also considers cleavage of the second AA (which can be X), following the XTandem standards.
Adds default option to allow for non-"missed cleavages affecting" random D|P cleavages, also following the observations from the XTandem author(s).