Also estimate an innovation rate to deal with empty families at the root #279
Replies: 3 comments 1 reply
|
CAFE works with explicit transition probabilities for its numbers, and I don't think the model you suggest would give us those. |
|
I would say that either of the methods you suggest would work well, though they are giving slightly different kinds of answers. You could also try just analyzing sub-trees of your species tree in which these families do exist at the root, if you want family-specific inferences (like ancestral states). |
|
Thanks both for the helpful responses. Analysing subtrees is what I was doing already, but even when working with such subtrees I still have a significant number of zero-root families, many of which with interesting biological functions. So that problem remains unfortunately... The specific problem I was analysing was looking at gene expansions and contractions across several independent origins of sociality in insects (the final analysis will have 250+ species). And so the smallest set I can prune my tree to would be a single origin of sociality plus some closely related solitary species. But even then many zero-root families remain, including many that are highly relevant to the evolution or elaboration of sociality (odorant receptor families etc). I should clarify that by innovation I meant a copy-independent gain/immigration term, with transition rates rather than an additional per-copy duplication rate. My understanding is that this standard linear birth–death–immigration process does have explicit transition probabilities. For example, even with equal duplication and loss rates, starting from zero gives a negative-binomial count distribution, with Transition probabilities for other starting counts can also be computed explicitly using generating functions and positive recurrences. This is an established model class, including in the work underlying [Count](https://doi.org/10.1093/bioinformatics/btq315) and the [gain–loss–duplication likelihood framework](https://arxiv.org/abs/0902.0970). Am I overlooking a restriction specific to CAFE’s implementation, rather than a lack of transition probabilities for this process? I now have a [research fork with an optional BDI implementation](https://github.com/tomwenseleers/CAFE5/tree/innovation-bdi), with the assumptions and calculations described in the [mathematical documentation](https://github.com/tomwenseleers/CAFE5/blob/innovation-bdi/docs/innovation_mathematics.md). Aside from allowing for a copy-independent innovation (gain) rate, it also allows for asymmetrical birth & death rates, as well as for gamma rate variation, observation error, and separate refitted-bootstrap significance calculations. I recognise that these additional components require their own assessment, particularly regarding root assumptions, ascertainment, and calibration. This was coded with the help of Codex/GPT 6-Astra. I also apply it to my example data, for which it is shown that a model with asymmetric birth & death rates and an innovation rate fits much better than the currently allowed CAFE models with symmetric birth & death rates & no innovation rate parameter. A Bayesian BDI model coded in cmdstanr would probably also be feasible. And aside from CAFE-type analyses I was thinking I could also use negative binomial phylogenetic mixed models to test if social species have more copies of a particular gene family than solitary ones (e.g. using brms), but not sure of the statistical power one would obtain. Would you be interested in reviewing a smaller, opt-in contribution focused initially on the BDI transition kernel and root-state support? If so, what scope and validation would you want for an upstream contribution? Alternatively, if this is outside CAFE’s intended scope, I could also develop it as an entirely separate package. What do you reckon could be best? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I was wondering if instead of fitting a birth-death model it would be possible to allow for fitting a birth-death-innovation model to also explicitly allow for gene families with zero members at the root. I keep on running into problems where all the gene families that are of interest of me get kicked out because of being empty at the root. I know about the option --zero_root but that doesn't seem to fundamentally solve the problem and in the documentation is explicitly advised against. Or if an extra innovation rate parameter cannot be introduced, would you have suggestions for alternatives that can fit such models or deal better with empty families at the root? Maybe https://github.com/csurosm/count or https://github.com/ssolo/recount-public?
All reactions