emvolz / treedater

Scalable relaxed clock phylogenetic dating
24 stars 11 forks source link

Units for meanRateLimits #17

Closed ksw9 closed 4 years ago

ksw9 commented 4 years ago

Hi,

Thanks for a great program. I'd just like to confirm that I'm correctly understanding the units in the dater function. omgeg0 should be in units of substituions/site and so should meanRateLimits, correct? Does the seqlen parameter include the full length of the genome, if an ML tree was inferred from a SNPs called from the full genome (with ascertainment bias correction for invariant sites)?

Thank you and best,

emvolz commented 4 years ago

Hi - The units are substitutions / site / unit time (usually years, depends on units in your sample time vector). Yes- Units are same for the omega0 and meanRateLimits parameters. The sequence length should match the data used to estimate the tree, so if you are using SNPs you would want to use the number of SNPs. Usually results aren't too sensitive to this and you can use the approximate number. Note you will estimate a higher clock rate for a tree based on SNPs than you would for whole-genome data.

ksw9 commented 4 years ago

Great - thank you for the clarification!