Whilst trying to troubleshoot an issue with the signed p-values in the hdxdifference function, I noticed an issue with two peptides (one protected and one deprotected) that had a 2 residue overlap, and the overlapping residues had distinct p-values. Actually, these two peptides should be treated as non-overlapping regions, if we assume the first two residues of a peptide cannot retain deuterium due to back-exchange. I hadn't noticed this before because I had quite discrete regions of protection and deprotection.
I might be able to translate this issue to the HOIP dataset to explain. The first peptide in HOIP covers residues 1-7.
If I open up the R file and write the computeAverageMap function manually, I get the following peptide map:-
In fact, we want peptide 1 to be 3-7 in the residue map, if we assume that the first two residues of a peptide cannot retain deuterium, as is known in the literature.
I can force the desired sequence like this (though I don't know if this is the most robust for your script).
Likewise, this will be the same for the plotEpitopeMapResidue and hdxdifference functions. For plotEpitopeMap with the redundancy plot, I would preserve the native sequence.
You're right I kinda of skipped this for visualisations purposes but I can fix this because it could causes confusion. Should we also skip over prolines?
Whilst trying to troubleshoot an issue with the signed p-values in the hdxdifference function, I noticed an issue with two peptides (one protected and one deprotected) that had a 2 residue overlap, and the overlapping residues had distinct p-values. Actually, these two peptides should be treated as non-overlapping regions, if we assume the first two residues of a peptide cannot retain deuterium due to back-exchange. I hadn't noticed this before because I had quite discrete regions of protection and deprotection.
I might be able to translate this issue to the HOIP dataset to explain. The first peptide in HOIP covers residues 1-7.![image](https://user-images.githubusercontent.com/90684994/216394999-0107b749-d798-4e47-9d70-d969c906fc91.png)
If I open up the R file and write the computeAverageMap function manually, I get the following peptide map:-
So peptide 1 is actually 0-7.
In fact, we want peptide 1 to be 3-7 in the residue map, if we assume that the first two residues of a peptide cannot retain deuterium, as is known in the literature.
I can force the desired sequence like this (though I don't know if this is the most robust for your script).
Likewise, this will be the same for the plotEpitopeMapResidue and hdxdifference functions. For plotEpitopeMap with the redundancy plot, I would preserve the native sequence.