gxelab / psite

Model-based inference of P-site offsets for ribosome footprints
MIT License
3 stars 0 forks source link

Questions regarding training and applying offsets. #3

Closed ericmalekos closed 3 months ago

ericmalekos commented 3 months ago

Hi I have a few questions related to best practices here.

1) I have 5 replicates that I merged into 1 bam. The merged bam has ~300M alignments, including secondary alignments. Should I train on this entire bam or what percentage/#of reads should I train on? Should I discard secondary alignments first?

2) Based on the ribotish quality the 28nt reads have good periodicity, ~85% frame1, while the 27nt reads have bad periodicity, ~50% frame1 ~50% frame2. Should I add a uniform offset to the 28nt reads and learned offsets for the 27nt reads, or should I add learned offsets for all? I guess I would worry that since the 28nt reads are already good, adding variable offsets might dampen that signal.

3) If I want to use this for the Ribotish should I train on transcriptome alignment or genome alignment, or does it not matter?

thank you!

mt1022 commented 3 months ago

Hi, thanks for your interest.

  1. I suggest using all data for training. down-sample only when the training step takes too long to finish.
  2. The quality of your data seems exceptional. If most reads in you library are of 28 nt, it is fine to discard other read lengths and use a uniform offset for the 28 nt reads. Regarding your concerns, if the phase of that read length is already very high, proportion of in-frame reads will be similar after training based on our experience.
  3. Training is always performed with the transcriptome alignment, while prediction can be performed with either.
ericmalekos commented 3 months ago

Thank you for the help!

  1. The reads are split evenly between 28 nts with strong periodicity and 27 nts with 50% periodicity