8000 msci input format · Issue #203 · bpp/bpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

msci input format #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mprebus opened this issue Jan 14, 2025 · 2 comments
Open

msci input format #203

mprebus opened this issue Jan 14, 2025 · 2 comments

Comments

@mprebus
Copy link
mprebus commented Jan 14, 2025

Hello, I am attempting to run a complex introgression model, but I have run into issues specifying the extended Newick tree. The msci generator makes the tree without problems, but I am receiving an error message when I attempt to run it:

[ERROR] Parental nodes of hybridization b have an ancestor-descendent relation, but the ancestor has no tau paremeter (tau-parent=no)

msci.txt
bpp.ctl.txt

@xflouris
Copy link
Collaborator

Hi @mprebus ,
there is a problem with the introgression model you are trying to create.
You have the following definitions in the msci.txt file:

tree (R,((A,V)q,((T,(C,Y)r)s,((M,(P,D)n)u,(B,L)v)w)x)y)z;
hybridization x w, s T as a b tau = no, yes phi = 0.5
hybridization b T, w v as c d tau = no, yes phi = 0.5 
bidirection w u, x s as e f phi = 0.5, 0.5
bidirection x a, x f as g h phi = 0.5, 0.5

Now consider the picture below that depicts the binary tree and the first two hybridization commands:

image

The a->b introgression corresponds to: hybridization x w, s T as a b tau = no, yes phi = 0.5
and c->d to: hybridization b T, w v as c d tau = no, yes phi = 0.5

By introducing the first introgression (a->b) you explicitely indicate to the program that s is older than w.
The issue arises when you add the third event: bidirection w u, x s as e f phi = 0.5, 0.5.
This implies a bidirectional introgression between edges w-u and x-s. However, these two segments are not contemporary because based on a->b, s is always older than w.
This is what essentially the error message tells.

@mprebus
Copy link
Author
mprebus commented Jan 16, 2025

Thank you, that makes sense. Should have plotted it out myself!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0