xavierdidelot / ClonalFrameML

ClonalFrameML: Efficient Inference of Recombination in Whole Bacterial Genomes
GNU General Public License v3.0
109 stars 27 forks source link

R values for calculation of R*delta #132

Closed cbreusing closed 2 years ago

cbreusing commented 2 years ago

Dear Xavier,

I was wondering if it is possible to get separate values for R from the ClonalFrameML analyses (i.e., not the R/theta ratios but the actual values for R). We would like to include some estimates of R*delta in a manuscript we are currently preparing to confirm the robustness of the results, given that the ClonalFrameML paper mentions that this factor is the main indicator for the reliability of the inferences. It is currently not clear to me how I can get to these values with the parameters that are reported. I have looked through the plots and they look fine (no straight blue lines), but it would be great to have some actual values for the supplement.

I hope you can give me some advice on this.

Thank you, Corinna

xavierdidelot commented 2 years ago

Dear Corinna,

Indeed ClonalFrameML does not estimate R separately. If you want to do this, you will need to multiply the value of R/theta with an estimate of theta. You could use the Watterson estimator which is given by: theta=L*G/An where L is the sum of the branch lengths in the recombination-corrected tree, G is the length of the alignment and An is the sum of the 1/i for i ranging from 1 to n-1 with n being your number of genomes.

Best wishes, Xavier

cbreusing commented 2 years ago

Dear Xavier,

Thank you so much for your advice. This has helped me a lot.

Corinna

On 1. Aug 2022, at 04:43, Xavier Didelot @.***> wrote:

Closed #132 https://github.com/xavierdidelot/ClonalFrameML/issues/132 as completed.

— Reply to this email directly, view it on GitHub https://github.com/xavierdidelot/ClonalFrameML/issues/132#event-7099390921, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASNTQF54V3WVF5NTKTGKOJTVW6E3DANCNFSM546SL7DQ. You are receiving this because you authored the thread.