MultiTypeTree icon indicating copy to clipboard operation
MultiTypeTree copied to clipboard

Time-calibrated tree

Open amymariecampbell opened this issue 2 years ago • 4 comments

Hi there,

I've been running a structured coalescent using the MultiTypeTree template, tip locations and dates etc.. All ESS values > 200, but when I make my final tree, the x axis looks strange (from 0.99ish to 1), and the node positioning isn't in time-order, if that makes sense.

How can I calibrate this so the node positioning corresponds to time, and have the real dates on the x axis? Not sure if I'm missing a step.

Thanks!

amymariecampbell avatar Jul 07 '22 15:07 amymariecampbell

Dear Amy,

That does indeed sound strange. You're not missing a step, although it sounds the tree portion of the state has either (a) not reached equilibrium (perhaps this posterior is difficult for the algorithm to sample) or (b) that there is some explicit or implicit constraint on the ages of the tree events.

How did you include the time information in the analysis in the first place?

Tim

tgvaughan avatar Jul 10 '22 23:07 tgvaughan

Hi there,

I added in tip dates into the analysis. In some previous analysis where I was testing the workflow on ~10 samples, the nodes were in time order, and the heights were numbers that realistically corresponded to going back in years (e.g. 1-14) but for some reason it hasn't worked this time and I'm getting small decimal numbers. Posterior ESS is 239 currently.

Thank you Tim!

amymariecampbell avatar Jul 14 '22 19:07 amymariecampbell

Hi Amy, did the tip dates help?

tgvaughan avatar Jul 14 '22 23:07 tgvaughan

No unfortunately not- though I've just realised the heights also look wrong (small decimals) in the untyped start tree I am providing in the xml- so perhaps this could be the source of the problem instead? I will go and amend this and see if it helps!

amymariecampbell avatar Jul 15 '22 09:07 amymariecampbell