LabTranslationalArchitectomics / riboWaltz

optimization of ribosome P-site positioning in ribosome profiling data
MIT License
46 stars 12 forks source link

wired metaplot using meta profile_psite #78

Closed trista1115 closed 7 months ago

trista1115 commented 7 months ago

Hi Fabio,

I'm attempting to create a metaplot using the metaprofile_psite function. In the figure below, the last blue sample for the 3nt appears to have shifted to the left. Do you have any insights into this?

image

Any insights or suggestions would be greatly appreciated. Thank you in advance for your help!

Trista

fabiolauria commented 7 months ago

H i Trista, thank you for using riboWaltz. I think that shift is likely caused by the "wrong" identification of the P-site. In the past, I observed this trend when, for some read lengths, the signal related to the start codon was lower than the signal on a codon downstream (often the 5th codon). It looks like this also in your profile, where you have higher peaks at the beginning of the coding sequence than on the start codon. Usually, the P-site offset computed for the sample showing the shift was greater (or smaller, depending on the optimal read extremity) than all the others. This is the reason why I introduced the flanking parameter in function psite. According to your metaprofile, I think you can try and increase the flanking region to 10 (default is 6). Might be too much, but the idea is to exclude the possibility that reads which are supposed not to have their P-site on the start codon are incorrectly used are reference.

Let me know if this trick works or not.

Best Fabio

trista1115 commented 7 months ago

Thank you for your prompt response! It worked perfectly. I appreciate your help!

image

Best Trista

fabiolauria commented 7 months ago

Good! I'll close this issue then. Feel free to open new ones if needed.

Best Fabio