Closed pbastide closed 6 years ago
We've decided to make it so that every lineage may have no more than one hybridization event in its past. We've added checks to verify that the user's flow diagram doesn't violate this.
Ok, new code now passes this check
Variance between hybrid descendants
Hi again, @bomeara and @djhwueng
This might be related to #13 and #14.
I tried a network with several hybridization events:
This gives the folowing variance matrix:
I think that the variance of R is not coherent with the model of trait evolution. If my computations are correct, we should have:
(Note that the covariances between R and Y and X might also have problems, see #14).
Browsing through the code, this might be linked with the fact that a new hybridization "erases" an older one in your algorithm. Indeed, all the computations are made using
V.original
, that do not take ancestral hybrids into account. Here, if there were only one hybridization (the second one), then we would have:which is the result given by
GetVModified
.I think this is a seperate problem from the two other ones, hence the new issue. Again, I'm sorry if I mis-used your functions or made mistakes, please correct me if I did.
Thanks !
Session infos: